|
|
| (16 intermediate revisions by 7 users not shown) |
| Line 1: |
Line 1: |
| − | This article describes how to get a build environment for kdelibs from KDE 4 generically, i.e. not bound to a specific distribution.
| + | #REDIRECT [[Getting_Started/Build]] |
| − | | + | |
| − | = The user kde-devel =
| + | |
| − | | + | |
| − | useradd -m kde-devel
| + | |
| − | passwd kde-devel
| + | |
| − | Put the [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc | special .bashrc]] into kde-devel's home dir.
| + | |
| − | | + | |
| − | = CMake =
| + | |
| − | | + | |
| − | wget http://www.cmake.org/files/v2.4/cmake-2.4.6.tar.gz
| + | |
| − | tar -zxf cmake-2.4.6.tar.gz
| + | |
| − | mkdir cmake-build
| + | |
| − | cd cmake-build
| + | |
| − | ../cmake-2.4.6/bootstrap
| + | |
| − | make
| + | |
| − | sudo make install
| + | |
| − | | + | |
| − | = DBUS =
| + | |
| − | | + | |
| − | cd
| + | |
| − | wget http://dbus.freedesktop.org/releases/dbus/dbus-1.0.2.tar.gz
| + | |
| − | tar -xvzf dbus-1.0.2.tar.gz
| + | |
| − | cd dbus-1.0.2/
| + | |
| − | ./configure --prefix=$DBUSDIR --localstatedir=/var
| + | |
| − | make
| + | |
| − | sudo make install
| + | |
| − | sudo dbus-uuidgen --ensure
| + | |
| − | cd
| + | |
| − | wget http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-0.74.tar.gz
| + | |
| − | tar -xvzf dbus-glib-0.74.tar.gz
| + | |
| − | cd dbus-glib-0.74/
| + | |
| − | ./configure --prefix=$DBUSDIR
| + | |
| − | make
| + | |
| − | sudo make install
| + | |
| − | cd
| + | |
| − | sudo chown -R kde-devel:kde-devel * || sudo chown -R kde-devel:users *
| + | |
| − | | + | |
| − | = Qt =
| + | |
| − | | + | |
| − | == The recipe ==
| + | |
| − | <code>
| + | |
| − | cd
| + | |
| − | svn co https://svn.kde.org/home/kde/trunk/qt-copy
| + | |
| − | cd qt-copy
| + | |
| − | ./apply_patches
| + | |
| − | ./configure -dbus -qt-gif -debug -fast \
| + | |
| − | -prefix $QTDIR -nomake examples -nomake demos && \
| + | |
| − | make -j4 && echo success
| + | |
| − | </code>
| + | |
| − | | + | |
| − | Watch out that "success" is printed, otherwise you will need to correct your build. After this is done, make sure qdbus works correctly.
| + | |
| − | | + | |
| − | == What is happening ==
| + | |
| − | This downloads the qt source code, applies some patches and configures the build. With -qdbus, it is asserted that the dbus module will be built.
| + | |
| − | | + | |
| − | == TroubleShooting ==
| + | |
| − | If you get an error message that libdbus-0.62 is missing, install dbus-0.62 and try again.
| + | |
| − | | + | |
| − | = kdesupport =
| + | |
| − | | + | |
| − | cd
| + | |
| − | svn co https://svn.kde.org/home/kde/trunk/kdesupport
| + | |
| − | cd kdesupport
| + | |
| − | cmakekde
| + | |
| − | | + | |
| − | = kdelibs =
| + | |
| − | | + | |
| − | cd
| + | |
| − | mkdir -p kde/src
| + | |
| − | cd kde/src
| + | |
| − | svn co https://svn.kde.org/home/kde/trunk/KDE/kdelibs
| + | |
| − | cd kdelibs
| + | |
| − | cmakekde
| + | |
| − | | + | |
| − | == What happens here ==
| + | |
| − | | + | |
| − | As kdelibs requires an out-of-source-build, we give it what it wants, the directories kde/src/kdelibs and kde/build/kdelibs. /kde/build/kdelibs will be created by cmakekde.
| + | |
| − | | + | |
| − | = kdepimlibs =
| + | |
| − | cd
| + | |
| − | svn co https://svn.kde.org/home/kde/trunk/KDE/kdepimlibs
| + | |
| − | cd kdepimlibs
| + | |
| − | cmakekde
| + | |