[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Can't build KDELibs-4 (SVN TRUNK)
From:       Thiago Macieira <thiago () kde ! org>
Date:       2006-03-28 9:30:50
Message-ID: 200603281130.50813.thiago () kde ! org
[Download RAW message or body]


James Richard Tyrer wrote:
>Building CXX object dcop/CMakeFiles/DCOP.dir/dcopclient.o
>/usr/local/bin/g++   -DDCOP_EXPORTS -march=k6-3 -mtune=k6-3 -O2
>-Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align
>-Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings
>-Wformat-security -fno-exceptions -fno-check-new -fno-common -g3
>-fno-inline -fPIC -I/usr/SVN/trunk/KDE/kdelibs.build/dcop
>-I/usr/SVN/trunk/KDE/kdelibs/dcop -I/usr/local/include
>-I/usr/SVN/trunk/KDE/kdelibs -I/usr/SVN/trunk/KDE/kdelibs.build
>-I/usr/local/Trolltech/Qt-4.1.0/include
>-I/usr/local/Trolltech/Qt-4.1.0/include/Qt
>-I/usr/local/Trolltech/Qt-4.1.0/include/QtCore
>-I/usr/local/Trolltech/Qt-4.1.0/include/QtGui
>-I/usr/local/Trolltech/Qt-4.1.0/include/Qt3Support
>-I/usr/local/Trolltech/Qt-4.1.0/include/QtAssistant
>-I/usr/local/Trolltech/Qt-4.1.0/include/QtDesigner
>-I/usr/local/Trolltech/Qt-4.1.0/include/QtNetwork
>-I/usr/local/Trolltech/Qt-4.1.0/include/QtOpenGL
>-I/usr/local/Trolltech/Qt-4.1.0/include/QtSql
>-I/usr/local/Trolltech/Qt-4.1.0/include/QtXml
>-I/usr/local/Trolltech/Qt-4.1.0/include/QtSvg
>-I/usr/local/Trolltech/Qt-4.1.0/include/QtTest   -D_XOPEN_SOURCE=500
>-D_BSD_SOURCE -D_GNU_SOURCE -DQT3_SUPPORT -DQT_NO_STL
>-DQT_NO_CAST_TO_ASCII -D_REENTRANT -DQT3_SUPPORT_WARNINGS
>-DKDE_DEPRECATED_WARNINGS -DHAVE_CONFIG_H=1 -DICE_t -DTRANS_SERVER
>-DTRANS_CLIENT -DANSICPP -DUNIXCONN -o
>dcop/CMakeFiles/DCOP.dir/dcopclient.o -c
>/usr/SVN/trunk/KDE/kdelibs/dcop/dcopclient.cpp
>
>And I also wonder why it we have the extra dozen Trolltech includes:
>
>-I/usr/local/Trolltech/Qt-4.1.0/include/Qt*

They're supposed to be there.

>Shouldn't the "Qt*" be in the code so all we need is the first one:
>
>-I/usr/local/Trolltech/Qt-4.1.0/include

That's what I recommend, but that's not what the Qt docs say. The docs say 
you can do:

#include <QClass>

but that in turn requires you do have those dozen includes.

However, all publically-installed headers must include in the form:

#include <QtModule/QClass>
or
#include <QtModule/qclass.h>

-- 
Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
  thiago.macieira (AT) trolltech.com     Trolltech AS
    GPG: 0x6EF45358                   |  Sandakerveien 116,
    E067 918B B660 DBD1 105C          |  NO-0402
    966C 33F5 F005 6EF4 5358          |  Oslo, Norway

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic