(→Install) |
|||
| Line 40: | Line 40: | ||
./bootstrap && make -j2 && make install | ./bootstrap && make -j2 && make install | ||
| − | == | + | == Qt == |
cd | cd | ||
svn co https://svn.kde.org/home/kde/trunk/qt-copy | svn co https://svn.kde.org/home/kde/trunk/qt-copy | ||
This describes how to set up a virtual machine running KDE from trunk on Linux.
Throughout the tutorial we use VMWare for virtualization and SUSE Linux 11.1 as distribution. Other combinations should work same or similar.
We use VMWare because I think compiling is faster with it.
Contents |
Install a VMWare virtual machine with SUSE Linux 11.1 as per default. KDE 4 fits into 10 GB harddisk space. But as you start getting fun out of it, you will be happy about additional space. I recommend 40GB. To be able to log in to your VM, disable the firewall:
rcSuSEfirewall2 stop
Inside the VM, install some needed packages:
yast -i subversion gcc-c++ libqt4-devel boost-devel libbz2-devel libxml2-devel pcre-devel libxslt-devel giflib-devel libQtWebKit-devel libgpgme-devel libical-devel
If and only if you have a /lib64 path, you are on an x64 distribution.
Make sure you have the needed environment variables and alias set by having a file /root/.bashrc.
export KDEDIR=/usr/local alias cmakekde="cmake . -DCMAKE_INSTALL_PREFIX=$KDEDIR -DLIB_SUFFIX=64 -DCMAKE_BUILD_TYPE=debugfull && make -j2 && make install" alias cmakekdelibs="cmake ../kdelibs -DCMAKE_INSTALL_PREFIX=$KDEDIR -DLIB_SUFFIX=64 -DCMAKE_BUILD_TYPE=debugfull && make -j2 && make install"
Now activate this file
. /root/.bashrc
Make sure you have the needed environment variables and alias set by having a file /root/.bashrc.
export KDEDIR=/usr/local alias cmakekde="cmake . -DCMAKE_INSTALL_PREFIX=$KDEDIR -DCMAKE_BUILD_TYPE=debugfull && make -j2 && make install" alias cmakekdelibs="cmake ../kdelibs -DCMAKE_INSTALL_PREFIX=$KDEDIR -DCMAKE_BUILD_TYPE=debugfull && make -j2 && make install"
Now activate this file
. /root/.bashrc
You need cmake 2.6.2, so go to http://www.cmake.org/cmake/resources/software.html and download the latest version, in this example we choose 2.6.2:
cd wget http://www.cmake.org/files/v2.6/cmake-2.6.2.tar.gz tar xvzf cmake-2.6.2.tar.gz cd cmake-2.6.2 ./bootstrap && make -j2 && make install
cd svn co https://svn.kde.org/home/kde/trunk/qt-copy cd qt-copy ./configure && make -j2 && make install
cd svn co https://svn.kde.org/home/kde/trunk/kdesupport cd kdesupport cmakekde
KDELIBS requires an out-of-source build, that is why it is more complicated to build:
cd svn co https://svn.kde.org/home/kde/trunk/KDE/kdelibs mkdir kdelibs-build cd kdelibs-build cmakekdelibs
cd svn co https://svn.kde.org/home/kde/trunk/KDE/kdepimlibs cd kdepimlibs cmakekde
cd svn co https://svn.kde.org/home/kde/trunk/KDE/kdebase cd kdebase cmakekde
Now stop your running display manager:
/etc/init.d/xdm stop
And start your self-compiled display manager:
kdm
To enable automated startup of your kdm, you need to change some SUSE-specific paths in /etc/init.d/xdm:
KDM_BIN=/usr/local/bin/kdm KDM4_BIN=/usr/local/bin/kdm