<!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>
&gt; &gt; Hum, strange error. For me, "qatomic_arch.h" contains a list of #ifdef,<br>
&gt; &gt; and my architecture is defined in "QtCore/qglobal.h" that way:<br>
&gt; &gt;<br>
&gt; &gt; #ifndef QT_BOOTSTRAPPED<br>
&gt; &gt; # define QT_ARCH_I386<br>
&gt; &gt; #else<br>
&gt; &gt; # define QT_ARCH_I386<br>
&gt; &gt; #endif<br>
&gt; &gt;<br>
&gt; &gt; Is Qt on FreeBSD expecting the arch to be define by a cmake flag that<br>
&gt; &gt; would be missing in koffice ?<br>
&gt;<br>
&gt; Yep, have a same way in /usr/local/include/qt4/QtCore/global.h<br>
&gt;<br>
&gt; Dnd have a reason for failed build - koffice use wrong order in includes<br>
&gt; 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>&gt; /usr/local/include (defined directly or by depended packages) goes BEFORE<br>
&gt; QT_INCLUDES, which is wrong and leads to fails while qt3 coexist alongside<br>
&gt; qt4 in the system.<br>
&gt;<br>
&gt; KOffice 2.0.1 can be build with redefined path with cmake args, but KOffice<br>
&gt; 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&amp;view=markup<br>
-- <br>
Cyrille Berger</p></body></html>