{{warning|This page is yet to be reviewed for changes required by the migration to Git. Information and commands on this page may no longer be valid and should be used with care. Please see the [[Development/Git|KDE Git hub page]] for more details. }}

{{warning|This page is yet to be reviewed for changes required by the migration to Git. Information and commands on this page may no longer be valid and should be used with care. Please see the [[Development/Git|KDE Git hub page]] for more details. }}

Your distribution packages should be sufficient for this requirement. If you need to build your own copy using the Easy or Full Recipe then either download a tarball form the project home page or use the following subversion command:

+

Your distribution packages should be sufficient for this requirement. If you need to build your own copy using the Easy or Full Recipe then either download a tarball form the project home page or use the following bazaar command:

−

git clone git://gitorious.org/dbusmenu/dbusmenu-qt.git

+

bzr branch lp:libdbusmenu-qt

You need json to build the tests.

You need json to build the tests.

Latest revision as of 15:53, 31 July 2012

Warning

This page is yet to be reviewed for changes required by the migration to Git. Information and commands on this page may no longer be valid and should be used with care. Please see the KDE Git hub page for more details.

Contents

This page details the build requirements for Qt and some related packages. For most of these requirements it is preferable to use your distribution supplied packages, however in some case you will need to build some requirements yourself and this page will also explain how to do so.

It is a part of the kdesdk module and, while optional, is strongly recommended when building KDE modules. If you have kdesdk installed on your system then this version should be sufficient, but r1215872 is recommended when working with Git.

To install it download via WebSVN and install into your path somewhere, preferably ~/.bin. Once you have built kdesdk from source you should then remove this copy.

Most distributions package a recent enough Qt to build KDE, although you may need to add an extra repository to do so. Building Qt can take a long time, so packages are preferred for a quick start.

At some stage, KDE master may switch to relying on a development version of Qt, or may require patches to Qt for bug-fixes that have not yet been released by Qt. In this case you may need to build your own copy of Qt to build KDE against. You can choose use either the main Qt repository on Gitorious or the KDE copy of Qt. You can choose to overwrite your system Qt install when doing so but this is not recommended. You are advised to set your build environment $QTDIR install directory to a local folder different to $KDEDIR to allow easy switching between Qt versions.

If ./configure produces errors about missing headers, run the following command before trying again:

QTDIR=`pwd` bin/syncqt

Make sure which qmake delivers something out of $QTDIR, e.g. /home/kde-devel/qt-kde/bin/qmake

If you get "error: X11/Xlib.h: No such file or directory", install the devel package of xorg (the actual name may vary between operating systems, for example it is xorg-dev on Ubuntu based systems such as Kubuntu).

If you get an error in the configure step about missing defines, check the value of $QMAKESPEC. Some distributions set this to point directly to the system-installed Qt. If unset QMAKESPEC solves the problem, you probably want to add it to the ~/.bashrc script.

If you get an error ".pch/debug-shared/QtCore", this is because Qt-4.3 enables precompiled headers if your gcc supports it, but for some reason it doesn't work for you. If you use distcc, configure qt with -no-pch. If you use icecream, update to the latest icecream from svn trunk.

Your distribution packages should be sufficient for this requirement. If you need to build your own copy using the Easy or Full Recipe then either download a tarball form the project home page or use the following bazaar command: