On Tuesday 13 February 2001 17:53, Avi Schwartz wrote:
Hi,
Almost every KDE2 program I am trying to build fails during compilation for one reason or another (usually mismatch between method calls and what the compiler finds in the header files). I would like to hear from other people if they had more luck then I did and if they are using the SuSE RPMS or installed KDE2 from sources. If I would like to install from source, do I have to remove KDE1 and KDE2 from my system first? Any tips would be appreciated.
Avi
Avi, It really depends what you seek. If you want to do it just to get the very latest KDE, it may not be worth it. As Ben suggested the 2.1Beta is pretty nice. It takes me the better part ot a siderial day to compile the entire CVS tree. The last two I did, broke. I believe that was due to my not having compiled the QT with all the switches thrown. You should be able to get by with the QT from SuSE's RPM. If you have a box with at least a 300Mhz chip and 64 Meg of RAM you may be able to get the entire tree to build before the sun rises twice. Of course you _don't_ need to build _all_ the stuff from the "snapshots" directory. There is a good script in that directory called something like "compile_script.sh." As Stefan has suggested you can build into a different directory. Indeed you can have each KDE on your box use a different QT. Herein is another good reason to snag the betas from SuSE (out on the KDE site). They have provided a wonderful /opt/kde2/bin/startkde script which you can hack to your liking. In order to get the new build to be seen by the KDM you are running, crack open the /opt/kde*/share/config/kdmrc and add a unique string to the SessionTypes variable identifying your new version. Then (assuming you put your build in /opt/kde21, and called it KDE21 in the /opt/kde*/share/config/kdmrc) do: ln -s /opt/kde21/bin/startkde /usr/X11R6/bin/KDE21 The KDM you are using is determined by the /usr/sbin/rcxdm. The default is /opt/kde/bin/kdm. I use the startkde from SuSE - which I copy to my build - to set the environment for my KDE21 session. I believe they do some magic to make both QT versions available in that environment. Now, in the great Norse tradition, since you have the prose version here's the poetic version: - Get the source form: ftp://ftp.kde.org/pub/kde/unstable/CVS/snapshots/current - Edit the compile_script and hack it to match your system ( This determines, among other things, where the make install puts the finished build as well as what actual tarballs get built.) (NB: non-beta and some of the other non-core stuff probably will _not_ compile correctly. - Run the script (it does all the uncompressing, untarring, configurring, making and installing for you) - Wait 10 to 24 hours for it to build - Edit the rcxdm to determine which kdm you will be using - Edit the corresponding /opt/kde*/share/config/kdmrc and add a unique ID for your build to the SessionTypes variable - Copy SuSE's startkde script from their beta to the corresponding location in your build and hack accordingly. (i.e. change the pointers from /opt/kde2 to /opt/kde2.1) - Symlink the startkde to /usr/X11R6/bin using the unique ID from the kdmrc as the file name of the symlink.( ln -s /opt/kde21/bin/startkde /usr/X11R6/bin/KDE21 ) - Run rcxdm restart from a tty console - Log in to the new kde by selecting it from the pick list in the kdm. - Let me know if I omitted anything major. HTH Steve