kdelibs build fails with installed Qt

Matt Rogers mattr at kde.org
Sun May 14 00:00:45 BST 2006

On Saturday 13 May 2006 17:31, David Jarvie wrote:
> I've been getting a cmake error trying to build the latest snapshot. It
> turns out that the problem is that I *installed* Qt after building it,
> rather than simply using it in the build tree, and the kdelibs cmake system
> doesn't cope with that.

It certainly does handle that, as I do it all the time.

> I had to fiddle things a bit to try to get it to work, so I don't know
> exactly what is necessary to fix the build. But the kdelibs cmake build
> process seems to use at least two Qt components which are currently not
> installed in the Qt install process. (I used the following command line to
> install Qt, so as to omit the Qt examples:
> make sub-src-install_subtargets sub-tools-install_subtargets
> install_htmldocs

you need to add 'install_mkspecs' and 'install_qmake' to that as well so that 
your installation becomes:

'make sub-src-install_subtargets sub-tools-install_subtargets install_htmldoc 
install_mkspecs install_qmake'

> I couldn't find any other install target to rectify things.)

grep 'install' Makefile from the toplevel qt-copy directory works quite well 
for finding those. :)

> The missing Qt components are:
> - the mkspecs directory (or perhaps just the relevant part of it?).
> - qmake.


More information about the kde-core-devel mailing list