Can't detect Qt4

Clarence Dang dang at
Tue May 29 15:22:08 CEST 2007

I can't get strigi nor kdelibs to detect Qt4.  My checkouts of qt-copy and 
kdelibs are from today.

$ cmake --version
cmake version 2.4-patch 6

$ echo $QTDIR

I've compiled qt-copy but did not "make install", as usual.  $QTDIR/bin is in 
my path.

In kdelibs/build:
-- Check for working C compiler: /usr/lib/ccache/bin/gcc
-- Check for working C compiler: /usr/lib/ccache/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/lib/ccache/bin/c++
-- Check for working CXX compiler: /usr/lib/ccache/bin/c++ -- works
CMake Error: Could NOT find QtGlobal header
-- Configuring done

This setup used to work 1 or 2 months ago, when I last built kdelibs.  I 
suspect the problem is that $QTDIR has to equal $KDEDIR now?

If I override with:

-DQT_BINARY_DIR=$QTDIR/bin -DQT_DOC_DIR=/home/kde4/celerysvn/qt-copy/doc 

it configures but the make fails part way through:

[  7%] Built target kmimetypetest
[  7%] Generating org.kde.KWallet.xml
qdbuscpp2xml: could not execute moc! Aborting.
make[2]: *** [kdeui/org.kde.KWallet.xml] Error 1
make[1]: *** [kdeui/CMakeFiles/kdeui.dir/all] Error 2
make: *** [all] Error 2

Clarence [please CC me on replies]

More information about the Kde-buildsystem mailing list