KOffice 2.1 Beta 2

Dima Panov Fluffy at fluffy.khv.ru
Tue Sep 15 13:06:51 CEST 2009


On Tuesday 15 September 2009 21:04:34 Cyrille Berger wrote:
> 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 .

At FreeBSD we don't have non-system includes in /usr/include. 
So paths looks like this:
/usr/local/include - qt3/kde3 includes (with qtglobal.h, yes)
/usr/local/include/qt4 - qt4 includes tree
/usr/local/kde4/include - kde4 includes tree.

same for libraries.

> > /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 ?

from area51 svn trunk (test kde/qt tree for kde/freebsd team) :

ports/editors/koffice-kde4/Makefile:

CMAKE_ARGS+=  \
         -DCMAKE_EXE_LINKER_FLAGS:STRING="-L${KDE4_PREFIX}/lib -L${LOCALBASE}/lib"  \
         -DCMAKE_MODULE_LINKER_FLAGS:STRING="-L${KDE4_PREFIX}/lib -L${LOCALBASE}/lib" \
         -DCMAKE_SHARED_LINKER_FLAGS:STRING="-L${KDE4_PREFIX}/lib -L${LOCALBASE}/lib"

> 
> [1]
> http://websvn.kde.org/trunk/koffice/CMakeLists.txt?revision=1019835&view=ma
> rkup
> 



-- 
Dima "Red Fox" Panov @ Home | C73E 2B72 1FFD 61BD E206 1234 A626 76ED 93E3 B018
Khabarovsk, Russia          | 2D30 2CCB 9984 130C 6F87 BAFC FB8B A09D D539 8F29
KDE at FreeBSD Team | FreeBSD committer since 10.08.2009 | FreeBSD since Sept 1995
Twitter.com:fluffy_khv | Skype:dima.panov | Jabber.org:fluffy.khv | ICQ:1745024
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20090915/dbc4b512/attachment-0001.sig 


More information about the Kde-buildsystem mailing list