KOffice 2.1 Beta 2
Cyrille Berger
cberger at cberger.net
Tue Sep 15 12:04:34 CEST 2009
CCing kde-buildsystem to see if someone has better cmake knowledge than me and
know what might trigger a wrong order of include directories.
On Tuesday 15 September 2009, Dima Panov wrote:
> > Hum, strange error. For me, "qatomic_arch.h" contains a list of #ifdef,
> > and my architecture is defined in "QtCore/qglobal.h" that way:
> >
> > #ifndef QT_BOOTSTRAPPED
> > # define QT_ARCH_I386
> > #else
> > # define QT_ARCH_I386
> > #endif
> >
> > Is Qt on FreeBSD expecting the arch to be define by a cmake flag that
> > would be missing in koffice ?
>
> Yep, have a same way in /usr/local/include/qt4/QtCore/global.h
>
> Dnd have a reason for failed build - koffice use wrong order in includes
> search path.
Ah I see, it would be a good explanation. As far as I can see, the first thing
that KOffice's CMakeLists.txt [1] includes is the KDE/Qt definitions. So I would
expect them to appears in first position. On my system (debian), when I do a
'VERBOSE="1" make', the first include dir are koffice dirs, followed by
/usr/include/KDE, then qt4 things, then /usr/include/OpenEXR .
> /usr/local/include (defined directly or by depended packages) goes BEFORE
> QT_INCLUDES, which is wrong and leads to fails while qt3 coexist alongside
> qt4 in the system.
>
> KOffice 2.0.1 can be build with redefined path with cmake args, but KOffice
> 2.1 not affected by this trick. :(
Hum, what trick ?
[1]
http://websvn.kde.org/trunk/koffice/CMakeLists.txt?revision=1019835&view=markup
--
Cyrille Berger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-buildsystem/attachments/20090915/4dfc25dc/attachment.htm
More information about the Kde-buildsystem
mailing list