<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;">CCing kde-buildsystem to see if someone has better cmake knowledge than me and know what might trigger a wrong order of include directories.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>On Tuesday 15 September 2009, Dima Panov wrote:<br>
> > Hum, strange error. For me, "qatomic_arch.h" contains a list of #ifdef,<br>
> > and my architecture is defined in "QtCore/qglobal.h" that way:<br>
> ><br>
> > #ifndef QT_BOOTSTRAPPED<br>
> > # define QT_ARCH_I386<br>
> > #else<br>
> > # define QT_ARCH_I386<br>
> > #endif<br>
> ><br>
> > Is Qt on FreeBSD expecting the arch to be define by a cmake flag that<br>
> > would be missing in koffice ?<br>
><br>
> Yep, have a same way in /usr/local/include/qt4/QtCore/global.h<br>
><br>
> Dnd have a reason for failed build - koffice use wrong order in includes<br>
> search path.<br>
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 .<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>> /usr/local/include (defined directly or by depended packages) goes BEFORE<br>
> QT_INCLUDES, which is wrong and leads to fails while qt3 coexist alongside<br>
> qt4 in the system.<br>
><br>
> KOffice 2.0.1 can be build with redefined path with cmake args, but KOffice<br>
> 2.1 not affected by this trick. :(<br>
Hum, what trick ?<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>[1] http://websvn.kde.org/trunk/koffice/CMakeLists.txt?revision=1019835&view=markup<br>
-- <br>
Cyrille Berger</p></body></html>