Can't detect Qt4

Thiago Macieira thiago at kde.org
Tue May 29 19:01:36 CEST 2007


Clarence Dang wrote:
>$ echo $QTDIR
>/home/kde4/celerysvn/qt-copy
>
>I've compiled qt-copy but did not "make install", as usual.  $QTDIR/bin
> is in my path.

make install is not necessary if you compiled Qt with -prefix $PWD.

But it is mandatory if you didn't.

>In kdelibs/build:
>$ cmake -DCMAKE_INSTALL_PREFIX=$KDEDIR -DCMAKE_BUILD_TYPE=debug ../
>-- 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?

It doesn't have to.

Remove your CMakeCache.txt and try again. If it fails, take a look at the 
error log (CMakeFiles/CMakeError.log).

>qdbuscpp2xml: could not execute moc! Aborting.

qdbuscpp2xml searches for moc at its install dir. moc must be there.

So, either make install or choose another prefix.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20070529/32963fb8/attachment.pgp 


More information about the Kde-buildsystem mailing list