Another attempt: building KDE 4 option 2
There also an easier way to get KDE 4 which I used myself. For this one, you don’t need to change your .bashrc or anything else. Just checkout sources wherever you want and you’re done ( of course you must install dependencies first ).
after you checkout SVNs in ‘/home/KDE4devel/SRCs/KDE/’ you can just make another folder, let’s say ‘/home/KDE4devel/Build/KDE/’
open Terminal/Konsole and then type:
su -
cd /home/KDE4devel/Build/KDE
cd kdelibs
cmake && make && make install
cd ..
cd kdepimlibs
cmake && make && make install
cd ..
cd kdebase
cmake && make && make install
cd ..
cd “yourmodule”
cmake && make && make install
OR if you have changed your .bashrc, you can do for each one:
cd /home/KDE4devel/SRCs/KDE/4.0/yourmodule
cmakekde
(it MIGHT work, I just made it up right now
)
WARNING: THIS WILL REPLACE YOUR KDE 3.5 DESKTOP.
WARNING: YOU WILL NEED ROOT PRIVILEGES.
If you try this one, leave comment for me whether if it worked for you or not. Thanks
Another attempt: building KDE 4 option 1
now we get to really build KDE 4.
first of all, you should change you ~/.bashrc file and I’ll tell you how and what to change.
go to your home directory and
View > Show hidden files
now if you look closely, you’ll find a file called “.bashrc” among the hidden files.
open that with a text editor ( in 99% cases just double click it )
copy the .bashrc in you original home ( /home/username/ ) into your KDE4devel account ( /home/KDE4devel/ ) it should replace it.
copy/paste the contents of this .bashrc into your .bashrc, after “#user-specified commands” ( or something like that ).
now you’re ready to go. By the way, this .bashrc you just did, was only to make life easier but it is in fact necessary and you HAVE TO do it
Building kdelibs
the first module ( package ) you should make/compile, is kdelibs. You SHOULD make this first of all.
to compile kdelibs, just do this:
cd
cs
mkdir KDE && cd KDE
svn checkout svn://anonsvn.kde.org/home/kde/branches/KDE/4.0/kdelibs
cd kdelibs
cmakekde
note: cs is not a typo. you made this command available by editing your .bashrc file, look into that for more info.
for troubleshooting stuff look into here.
Building kdepimlibs
next comes the kdepimlibs. the recipe is this:
cs KDE
svn checkout svn://anonsvn.kde.org/home/kde/branches/KDE/4.0/kdepimlibs
cd kdepimlibs
cmakekde
again, for troubleshooting stuff go here.
Building kdebase
next goes to kdebase.
recipe:
cs KDE
svn checkout svn://anonsvn.kde.org/home/kde/branches/KDE/4.0/kdebase
cd kdebase
cmakekde
troubleshooting stuff -> here.
from now, you can build all of the modules you want with the same fashion. For a minimal KDE 4 session you only needed those 3 modules and that’s all.
after you finished compiling all the modules you want, you just log out, and log in again, hopefully everything will be fine and you will have your KDE 4 session
Good Luck with your building
( building as in compiling
)
note: I got this information from here.
Another attempt: building KDE 4 SVN checkout
NOTE: LOOK AT Another attempt: building KDE 4 part 3 AND part 4 TO SEE WHICH ONE YOU’RE INTERESTED IN DOING. YOU WILL NOT NEED THIS IF YOU’RE GOING TO USE THE SAFER PART 3.
ok, here we have all the dependencies ready to go and there just remains our time to be spent on compiling KDE 4 itself ![]()
WARNING: THIS STEP MUST BE DONE IN ONLY NORMAL USER. NO ROOT USER PLEASE. IF IT NEEDS YOU TO ENTER ROOT PASSWORD, REVIEW AND SEE WHAT YOU HAVE DONE WRONG.
first thing you should do, is that you should make a new user account to be used by KDE 4 ( just in case ).
to do it, go to ( for KDE ) Kmenu > system > users and groups ( for GNOME ) System > Administration > users and groups
make a new account and login to that account ( simply log out, and then log in again )
make a new folder wherever you want ( definitely not in root folder ) that you put your sources in it.
for this “tutorial” I will use /home/KDE4devel/SRCs/
go to that folder and open a Terminal/Konsole which points to that folder by using this command
cd /home/KDE4devel/SRCs/KDE/
now, you should download the sources of KDE 4 into this folder you just created. if you want to use fancy names, call it check out SVNs ( es-vi-enz )
to do this, just open Terminal/Konsole and type:
1) svn co -N svn://anonsvn.kde.org/home/kde/trunk/KDE
2) svn co -N svn://anonsvn.kde.org/home/kde/branches/KDE/4.0
if you want it really new and cutting edge, go for the first one, but if you prefer to back down a little bit ( not really much difference though ) go for the second one. But generally I’d suggest second one
now just type:
cd 4.0
svn list
svn up kdebase kdepimlibs kdelibs
if you want other packages also to be checked out, you can just put them in svn up. for example if you want to also checkout kdemultimedia and kdegraphics, you just type
svn up kdebase kdepimlibs kdelibs kdemultimedia kdegraphics (etc.)
wait for quite a long time till it finishes
you have just downloaded the source code of KDE 4. Next post, will be about compiling KDE 4.
Good luck
Another attempt: building KDE 4 dependencies
right now I decided to give it another try. I’m now installing the dependencies I need for compiling KDE 4. The list I gathered so far is as follows:
alsa-lib-devel aspell-devel avahi-devel boost-devel bzip2-devel cdparanoia cdparanoia-devel cmake cups cups-devel cyrus-sasl-devel dbus-devel doxygen enchant-devel fontconfig-devel freetype-devel gamin-devel gettext-devel giflib-devel glib2-devel gpgme-devel hal-devel imake krb5-devel libacl-devel libart_lgpl-devel libattr-devel libfontenc-devel mesa-libGLU-devel libICE-devel libjpeg-devel libmng-devel libpng-devel libraw1394-devel libsmbclient-devel libSM-devel libtiff-devel libusb-devel libXcomposite-devel libXcursor-devel libXdamage-devel libXext-devel libXfixes-devel libXinerama-devel libxklavier-devel libxml2-devel libXpm-devel libXrandr-devel libXrender-devel libXres-devel libXScrnSaver-devel libxslt-devel libXt-devel libXtst-devel libXxf86misc-devel lm_sensors-devel mysql-devel nas-devel NetworkManager-devel OpenEXR-devel openldap-devel openssl-devel pam-devel pcre-devel pkgconfig postgresql-devel samba shared-mime-info soprano-devel sqlite-devel strigi-devel unixODBC-devel xorg-x11-font-utils xorg-x11-proto-devel zlib-devel sane-backends-devel exiv2-devel lcms-devel ruby-devel qt4-devel libXft-devel blitz blitz-devel qimageblitz-devel xine-lib xine-lib-devel mesa-libGL mesa-libGL-devel libxkbfile-devel libXxf86vm-devel gcc gcc-c++ svn
just do a Ctrl+C and then in Terminal/Konsole, do a yum install and paste this thing into the Terminal/Konsole after yum install:
yum install “Ctrl+Shift+V”
and then [ENTER]
it will install everything you need to compile KDE 4 successfully!
Next post will be about the compiling itself ( the good and loooooooooong part