KDE TechBase
  • Page
  • Discussion
  • Edit
  • History
KDE TechBase is a Wiki - You can help! Please contribute! Questions?
Please ask development related questions in the KDE Community Forum.

Getting Started/Build/KDE4/Generic

< Getting Started | Build | KDE4
Revision as of 11:00, 27 October 2009 by Tusooa (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)

This article describes how to get a build environment for kdelibs from KDE 4 generically, i.e. not bound to a specific distribution.

Contents

  • 1 The user kde-devel
  • 2 CMake
  • 3 DBUS
  • 4 Qt
    • 4.1 The recipe
    • 4.2 What is happening
    • 4.3 TroubleShooting
  • 5 kdesupport
  • 6 kdelibs
    • 6.1 What happens here
  • 7 kdepimlibs

[edit] The user kde-devel

useradd -m kde-devel
passwd kde-devel

Put the special .bashrc into kde-devel's home dir.

cd ~kde-devel
echo "export DBUSDIR=/usr" >> .bashrc
echo "alias make=make" >> .bashrc

[edit] CMake

cd
wget http://www.cmake.org/files/v2.6/cmake-2.6.1.tar.gz
tar -zxf cmake-2.6.1.tar.gz
mkdir cmake-build
cd cmake-build 
../cmake-2.6.1/bootstrap
make -j4
sudo make install # or su -c 'make install'

[edit] 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 # or su -c '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 # or su -c 'make install'
cd
sudo chown -R kde-devel:kde-devel * || sudo chown -R kde-devel:users *

[edit] Qt

[edit] The recipe

cd
svn co svn://anonsvn.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

Watch out that "success" is printed, otherwise you will need to correct your build. After this is done, make sure qdbus works correctly, e.g. it should look like this:

tweedleburg:~ # qdbus
:1.0
org.freedesktop.DBus
tweedleburg:~ #

[edit] 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.

[edit] TroubleShooting

If you get an error message that libdbus-0.62 is missing, install dbus-0.62 and try again.

[edit] kdesupport

cs
svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport
cd kdesupport 
cmakekde

[edit] kdelibs

cs
mkdir -p kde/src
cd kde/src
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs
cd kdelibs
cmakekde

[edit] 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.

[edit] kdepimlibs

cs
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdepimlibs
cd kdepimlibs
cmakekde
Retrieved from "http://techbase.kde.org/Getting_Started/Build/KDE4/Generic"

Navigation

  • Home
  • Help
  • Recent changes

Sections

  • Getting started
  • Development
  • Schedules
  • Policies
  • Contribute
  • Projects

Toolbox

  • What links here
  • Related changes
  • Special pages
  • Printable version
  • Permanent link

Personal tools

  • 38.107.191.98
  • Talk for this IP
  • Log in / create account
  • Login with OpenID
Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal