Qt includes question (was Re: invitation: try compiling kdelibs using cmake)

Thiago Macieira thiago at kde.org
Thu Jan 26 09:44:02 CET 2006


Tanner Lovelace wrote:
>Question about includes in Qt4: Are the includes in an X11 version of
>Qt 4 in a subdirectory called "Qt/" or have they been broken up now
>into specific subdirectories like "QtCore/", "QtGui/" etc..?  

Yes. (In reply to an "or" question) :-)

Actually, you can include using three different forms, provided all 
applications are build with -I$QTDIR/include -I$QTDIR/include/Qt

#include <qstring.h>
#include <QtCore/qstring.h>
#include <QtCore/QString>

>The reason I ask is that I'm attempting to get kdelibs compiled on OS X
>using Alex's cmake work and it's failing because source files do things
>like
>
>#include <Qt/qglobal.h>

This one is looks possible too on X11, but shouldn't be used.

>instead of
>
>#include <QtCore/qglobal.h>
>
>The second form works perfectly when Qt4 has been configured
>as OS X frameworks while the first fails.  It would be cool if there
>would be one format that would work on all platforms.


-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

1. On frumscafte, hwonne time_t wæs náht, se scieppend þone circolwyrde 
wundorcræftlíge cennede and seo eorðe wæs idel and hit wæs gód.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060126/0f2e4131/attachment.pgp 


More information about the Kde-buildsystem mailing list