invitation: try compiling kdelibs using cmake

Winfried winfried_mb2 at casema.nl
Sun Jan 29 15:10:12 CET 2006


Ales, here is the error when compiling kdecore without the QtXml:


kde4 at linux:~/kde4_trunk/kdelibs/kdecore> make
cd /home/kde4/kde4_trunk/kdelibs && make -f CMakeFiles/Makefile2 
kdecore/directorystart
make[1]: Entering directory `/home/kde4/kde4_trunk/kdelibs'
/usr/local/bin/cmake -H/home/kde4/kde4_trunk/kdelibs 
-B/home/kde4/kde4_trunk/kdelibs --check-build-system 
CMakeFiles/Makefile.cmake 0
make -f CMakeFiles/Makefile2 kdecore/directory
make[2]: Entering directory `/home/kde4/kde4_trunk/kdelibs'
make -f dcop/CMakeFiles/DCOP.dir/build.make dcop/CMakeFiles/DCOP.dir/depend
make[3]: Entering directory `/home/kde4/kde4_trunk/kdelibs'
make[3]: Nothing to be done for `dcop/CMakeFiles/DCOP.dir/depend'.
make[3]: Leaving directory `/home/kde4/kde4_trunk/kdelibs'
make -f dcop/CMakeFiles/DCOP.dir/build.make dcop/CMakeFiles/DCOP.dir/build
make[3]: Entering directory `/home/kde4/kde4_trunk/kdelibs'
make[3]: Nothing to be done for `dcop/CMakeFiles/DCOP.dir/build'.
make[3]: Leaving directory `/home/kde4/kde4_trunk/kdelibs'
make -f kdecore/CMakeFiles/kdecore.dir/build.make 
kdecore/CMakeFiles/kdecore.dir/depend
make[3]: Entering directory `/home/kde4/kde4_trunk/kdelibs'
make[3]: Nothing to be done for `kdecore/CMakeFiles/kdecore.dir/depend'.
make[3]: Leaving directory `/home/kde4/kde4_trunk/kdelibs'
make -f kdecore/CMakeFiles/kdecore.dir/build.make 
kdecore/CMakeFiles/kdecore.dir/build
make[3]: Entering directory `/home/kde4/kde4_trunk/kdelibs'
Linking CXX shared library ../lib/libkdecore.so
cd /home/kde4/kde4_trunk/kdelibs/kdecore && /usr/local/bin/cmake -E remove 
-f ../lib/libkdecore.a ../lib/libkdecore.so.4.2.0 ../lib/libkdecore.so.4 ../lib/libkdecore.so
cd /home/kde4/kde4_trunk/kdelibs/kdecore && /usr/bin/c++  -fPIC 
-Wl,--fatal-warnings -avoid-version -Wl,--no-undefined -lc -shared 
-Wl,-soname,libkdecore.so.4 -o ../lib/libkdecore.so.4.2.0 
"CMakeFiles/kdecore.dir/kapplication.o" 
"CMakeFiles/kdecore.dir/kauthorized.o" 
"CMakeFiles/kdecore.dir/ktoolinvocation_x11.o" 
"CMakeFiles/kdecore.dir/kdebug.o" "CMakeFiles/kdecore.dir/netwm.o" 
"CMakeFiles/kdecore.dir/kconfigbase.o" "CMakeFiles/kdecore.dir/kconfig.o" 
"CMakeFiles/kdecore.dir/ksimpleconfig.o" 
"CMakeFiles/kdecore.dir/kconfigbackend.o" 
"CMakeFiles/kdecore.dir/kmanagerselection.o" 
"CMakeFiles/kdecore.dir/kdesktopfile.o" 
"CMakeFiles/kdecore.dir/kstandarddirs.o" "CMakeFiles/kdecore.dir/kpty.o" 
"CMakeFiles/kdecore.dir/kprocess.o" "CMakeFiles/kdecore.dir/kprocctrl.o" 
"CMakeFiles/kdecore.dir/klocale.o" "CMakeFiles/kdecore.dir/krfcdate.o" 
"CMakeFiles/kdecore.dir/kiconeffect.o" "CMakeFiles/kdecore.dir/kicontheme.o" 
"CMakeFiles/kdecore.dir/kiconloader.o" "CMakeFiles/kdecore.dir/kwin.o" 
"CMakeFiles/kdecore.dir/kwinmodule.o" "CMakeFiles/kdecore.dir/krootprop.o" 
"CMakeFiles/kdecore.dir/kcharsets.o" "CMakeFiles/kdecore.dir/kckey.o" 
"CMakeFiles/kdecore.dir/kshortcut.o" 
"CMakeFiles/kdecore.dir/kkeynative_x11.o" 
"CMakeFiles/kdecore.dir/kkeyserver_x11.o" 
"CMakeFiles/kdecore.dir/kaccelaction.o" 
"CMakeFiles/kdecore.dir/kshortcutmenu.o" 
"CMakeFiles/kdecore.dir/kaccelbase.o" "CMakeFiles/kdecore.dir/kaccel.o" 
"CMakeFiles/kdecore.dir/kglobalaccel_x11.o" 
"CMakeFiles/kdecore.dir/kglobalaccel.o" "CMakeFiles/kdecore.dir/kstdaccel.o" 
"CMakeFiles/kdecore.dir/kshortcutlist.o" "CMakeFiles/kdecore.dir/kcrash.o" 
"CMakeFiles/kdecore.dir/kurl.o" "CMakeFiles/kdecore.dir/kglobal.o" 
"CMakeFiles/kdecore.dir/kglobalsettings.o" 
"CMakeFiles/kdecore.dir/kallocator.o" "CMakeFiles/kdecore.dir/kvmallocator.o" 
"CMakeFiles/kdecore.dir/kmimesourcefactory.o" 
"CMakeFiles/kdecore.dir/kinstance.o" "CMakeFiles/kdecore.dir/kpalette.o" 
"CMakeFiles/kdecore.dir/kipc.o" "CMakeFiles/kdecore.dir/klibloader.o" 
"CMakeFiles/kdecore.dir/ktempfile.o" 
"CMakeFiles/kdecore.dir/kuniqueapplication.o" 
"CMakeFiles/kdecore.dir/kacceleratormanager.o" 
"CMakeFiles/kdecore.dir/ksavefile.o" 
"CMakeFiles/kdecore.dir/krandomsequence.o" 
"CMakeFiles/kdecore.dir/kstringhandler.o" 
"CMakeFiles/kdecore.dir/kcompletion.o" 
"CMakeFiles/kdecore.dir/kcmdlineargs.o" "CMakeFiles/kdecore.dir/kaboutdata.o" 
"CMakeFiles/kdecore.dir/kcompletionbase.o" 
"CMakeFiles/kdecore.dir/knotifyclient.o" 
"CMakeFiles/kdecore.dir/kaudioplayer.o" 
"CMakeFiles/kdecore.dir/kdcoppropertyproxy.o" 
"CMakeFiles/kdecore.dir/netsupp.o" "CMakeFiles/kdecore.dir/kprocio.o" 
"CMakeFiles/kdecore.dir/krandom.o" "CMakeFiles/kdecore.dir/kpixmapprovider.o" 
"CMakeFiles/kdecore.dir/ktoolinvocation.o" "CMakeFiles/kdecore.dir/kcodecs.o" 
"CMakeFiles/kdecore.dir/ksocks.o" "CMakeFiles/kdecore.dir/fakes.o" 
"CMakeFiles/kdecore.dir/ksycoca.o" "CMakeFiles/kdecore.dir/ksycocadict.o" 
"CMakeFiles/kdecore.dir/ksycocafactory.o" 
"CMakeFiles/kdecore.dir/kxmessages.o" "CMakeFiles/kdecore.dir/kstartupinfo.o" 
"CMakeFiles/kdecore.dir/kcatalog.o" "CMakeFiles/kdecore.dir/kstaticdeleter.o" 
"CMakeFiles/kdecore.dir/kappdcopiface.o" 
"CMakeFiles/kdecore.dir/kclipboard.o" 
"CMakeFiles/kdecore.dir/kcheckaccelerators.o" 
"CMakeFiles/kdecore.dir/kdeversion.o" 
"CMakeFiles/kdecore.dir/kdebugdcopiface.o" 
"CMakeFiles/kdecore.dir/kcalendarsystem.o" 
"CMakeFiles/kdecore.dir/kcalendarsystemgregorian.o" 
"CMakeFiles/kdecore.dir/kcalendarsystemhijri.o" 
"CMakeFiles/kdecore.dir/kcalendarsystemhebrew.o" 
"CMakeFiles/kdecore.dir/kcalendarsystemfactory.o" 
"CMakeFiles/kdecore.dir/kmacroexpander.o" "CMakeFiles/kdecore.dir/kidna.o" 
"CMakeFiles/kdecore.dir/ktempdir.o" "CMakeFiles/kdecore.dir/kshell.o" 
"CMakeFiles/kdecore.dir/kmountpoint.o" 
"CMakeFiles/kdecore.dir/kcalendarsystemjalali.o" 
"CMakeFiles/kdecore.dir/kprotocolinfo_kdecore.o" 
"CMakeFiles/kdecore.dir/kprotocolinfofactory.o" 
"CMakeFiles/kdecore.dir/kxerrorhandler.o" "CMakeFiles/kdecore.dir/kuser.o" 
"CMakeFiles/kdecore.dir/kconfigskeleton.o" 
"CMakeFiles/kdecore.dir/klockfile.o" "CMakeFiles/kdecore.dir/ktimezones.o" 
"CMakeFiles/kdecore.dir/ktzfiletimezone.o" 
"CMakeFiles/kdecore.dir/kdatetime.o" "CMakeFiles/kdecore.dir/kmath.o" 
"CMakeFiles/kdecore.dir/kfilterbase.o" "CMakeFiles/kdecore.dir/kfilterdev.o" 
"CMakeFiles/kdecore.dir/kgzipfilter.o" 
"CMakeFiles/kdecore.dir/kbzip2filter.o" "CMakeFiles/kdecore.dir/kdedmodule.o" 
"CMakeFiles/kdecore.dir/kresolver.o" 
"CMakeFiles/kdecore.dir/kresolvermanager.o" 
"CMakeFiles/kdecore.dir/kresolverworkerbase.o" 
"CMakeFiles/kdecore.dir/ksocketaddress.o" 
"CMakeFiles/kdecore.dir/kresolverstandardworkers.o" 
"CMakeFiles/kdecore.dir/kreverseresolver.o" 
"CMakeFiles/kdecore.dir/ksocketdevice.o" 
"CMakeFiles/kdecore.dir/ksocketbase.o" 
"CMakeFiles/kdecore.dir/kclientsocketbase.o" 
"CMakeFiles/kdecore.dir/kstreamsocket.o" 
"CMakeFiles/kdecore.dir/kserversocket.o" 
"CMakeFiles/kdecore.dir/kdatagramsocket.o" 
"CMakeFiles/kdecore.dir/khttpproxysocketdevice.o" 
"CMakeFiles/kdecore.dir/ksockssocketdevice.o" 
"CMakeFiles/kdecore.dir/kbufferedsocket.o" 
"CMakeFiles/kdecore.dir/ksocketbuffer.o" 
"CMakeFiles/kdecore.dir/knetworkinterface.o" 
"CMakeFiles/kdecore.dir/malloc.o" "CMakeFiles/kdecore.dir/ltdl.o" 
"CMakeFiles/kdecore.dir/svgicons/ksvgiconengine.o" 
"CMakeFiles/kdecore.dir/svgicons/ksvgiconpainter.o" 
"CMakeFiles/kdecore.dir/ksycoca_skel.o" 
"CMakeFiles/kdecore.dir/kappdcopiface_skel.o" 
"CMakeFiles/kdecore.dir/kdebugdcopiface_skel.o" 
"CMakeFiles/kdecore.dir/kdedmodule_skel.o"  
-L/home/kde4/kde4_trunk/kdelibs/lib -L/home/kde4/qt4/lib -L/usr/X11R6/lib 
-L/usr/local/lib -lQtCore -lpthread -lQt3Support -lQtGui -lz -lSM -lICE -lSM 
-lICE -lX11 -lXext -lX11 -lXext -lutil -lDCOP -lidn -lbz2 -lagg -lQtCore 
-lpthread 
-Wl,-rpath,/home/kde4/kde4_trunk/kdelibs/lib:/home/kde4/qt4/lib:/usr/X11R6/lib:/usr/local/lib
CMakeFiles/kdecore.dir/svgicons/ksvgiconengine.o: In function 
`KSVGIconEngine::load(int, int, QString const&)':
ksvgiconengine.cpp:(.text+0x5a7): undefined reference to 
`QDomDocument::QDomDocument(QString const&)'
ksvgiconengine.cpp:(.text+0x6ba): undefined reference to 
`QDomDocument::~QDomDocument()'
ksvgiconengine.cpp:(.text+0x7fe): undefined reference to 
`QDomDocument::setContent(QIODevice*, QString*, int*, int*)'
ksvgiconengine.cpp:(.text+0x810): undefined reference to `QDomNode::isNull() 
const'
ksvgiconengine.cpp:(.text+0x87f): undefined reference to 
`QDomNode::namedItem(QString const&) const'
ksvgiconengine.cpp:(.text+0x8a5): undefined reference to `QDomNode::isNull() 
const'
ksvgiconengine.cpp:(.text+0x8c1): undefined reference to 
`QDomNode::~QDomNode()'
ksvgiconengine.cpp:(.text+0x8e0): undefined reference to 
`QDomDocument::~QDomDocument()'
ksvgiconengine.cpp:(.text+0x913): undefined reference to 
`QDomDocument::setContent(QByteArray const&, QString*, int*, int*)'
ksvgiconengine.cpp:(.text+0xa1d): undefined reference to 
`QDomNode::isElement() const'
ksvgiconengine.cpp:(.text+0xa43): undefined reference to 
`QDomNode::toElement() const'
ksvgiconengine.cpp:(.text+0xacf): undefined reference to 
`QDomElement::hasAttribute(QString const&) const'
ksvgiconengine.cpp:(.text+0xb5b): undefined reference to 
`QDomElement::hasAttribute(QString const&) const'
ksvgiconengine.cpp:(.text+0xc71): undefined reference to 
`QDomElement::hasAttribute(QString const&) const'
ksvgiconengine.cpp:(.text+0xd04): undefined reference to 
`QDomElement::attribute(QString const&, QString const&) const'
ksvgiconengine.cpp:(.text+0xee7): undefined reference to 
`QDomElement::hasAttribute(QString const&) const'
ksvgiconengine.cpp:(.text+0xf1c): undefined reference to 
`QDomNode::firstChild() const'
ksvgiconengine.cpp:(.text+0xf4e): undefined reference to 
`QDomNode::nextSibling() const'
ksvgiconengine.cpp:(.text+0xf5e): undefined reference to 
`QDomNode::operator=(QDomNode const&)'
ksvgiconengine.cpp:(.text+0xf6d): undefined reference to 
`QDomNode::~QDomNode()'
ksvgiconengine.cpp:(.text+0xfa7): undefined reference to 
`QDomNode::~QDomNode()'
ksvgiconengine.cpp:(.text+0xfb3): undefined reference to `QDomNode::isNull() 
const'
ksvgiconengine.cpp:(.text+0xfcd): undefined reference to 
`QDomNode::toElement() const'
ksvgiconengine.cpp:(.text+0xfd9): undefined reference to `QDomNode::isNull() 
const'
ksvgiconengine.cpp:(.text+0x100a): undefined reference to 
`QDomElement::QDomElement(QDomElement const&)'
ksvgiconengine.cpp:(.text+0x1031): undefined reference to 
`QDomNode::~QDomNode()'
ksvgiconengine.cpp:(.text+0x1085): undefined reference to 
`QDomNode::~QDomNode()'
ksvgiconengine.cpp:(.text+0x1092): undefined reference to 
`QDomNode::~QDomNode()'
ksvgiconengine.cpp:(.text+0x11ac): undefined reference to 
`QDomElement::attribute(QString const&, QString const&) const'
ksvgiconengine.cpp:(.text+0x1293): undefined reference to 
`QDomElement::attribute(QString const&, QString const&) const'
ksvgiconengine.cpp:(.text+0x13e2): undefined reference to 
`QDomElement::attribute(QString const&, QString const&) const'
CMakeFiles/kdecore.dir/svgicons/ksvgiconengine.o: In function 
`QList<QDomNamedNodeMap>::free(QListData::Data*)':
ksvgiconengine.cpp:
(.gnu.linkonce.t._ZN5QListI16QDomNamedNodeMapE4freeEPN9QListData4DataE[QList<QDomNamedNodeMap>::free(QListData::Data*)]+0x54): 
undefined reference to `QDomNamedNodeMap::~QDomNamedNodeMap()'
CMakeFiles/kdecore.dir/svgicons/ksvgiconengine.o: In function 
`QList<QDomNamedNodeMap>::detach_helper()':
ksvgiconengine.cpp:
(.gnu.linkonce.t._ZN5QListI16QDomNamedNodeMapE13detach_helperEv[QList<QDomNamedNodeMap>::detach_helper()]+0x74): 
undefined reference to `QDomNamedNodeMap::QDomNamedNodeMap(QDomNamedNodeMap 
const&)'
CMakeFiles/kdecore.dir/svgicons/ksvgiconengine.o: In function 
`KSVGIconEngineHelper::parseGradientStops(gradient_rendering_properties*, 
QDomElement)':
ksvgiconengine.cpp:
(.gnu.linkonce.t._ZN20KSVGIconEngineHelper18parseGradientStopsEP29gradient_rendering_properties11QDomElement[KSVGIconEngineHelper::parseGradientStops(gradient_rendering_properties*, 
QDomElement)]+0x2a): undefined reference to `QDomNode::firstChild() const'
ksvgiconengine.cpp

<cut, many more similar errors>

(.gnu.linkonce.t._ZN20KSVGIconEngineHelper18parseGradientStopsEP29gradient_rendering_properties11QDomElement[KSVGIconEngineHelper::parseGradientStops(gradient_rendering_properties*, 
QDomElement)]+0x92): undefined reference to `QDomNode::~QDomNode()'
ksvgiconengine.cpp:
ksvgiconpainter.cpp:
(.gnu.linkonce.t._ZNK21KSVGIconPainterHelper13applyGradientEP11KSVGAggDataRN3agg13renderer_baseINS2_18pixel_formats_rgbaINS2_12blender_rgbaINS2_5rgba8ENS2_10order_bgraEEEjEEEEbRK7QString[KSVGIconPainterHelper::applyGradient(KSVGAggData*, 
agg::renderer_base<agg::pixel_formats_rgba<agg::blender_rgba<agg::rgba8, 
agg::order_bgra>, unsigned int> >&, bool, QString const&) const]+0xf0a): 
undefined reference to `QDomElement::setAttribute(QString const&, QString 
const&)'
ksvgiconpainter.cpp:
(.gnu.linkonce.t._ZNK21KSVGIconPainterHelper13applyGradientEP11KSVGAggDataRN3agg13renderer_baseINS2_18pixel_formats_rgbaINS2_12blender_rgbaINS2_5rgba8ENS2_10order_bgraEEEjEEEEbRK7QString[KSVGIconPainterHelper::applyGradient(KSVGAggData*, 
agg::renderer_base<agg::pixel_formats_rgba<agg::blender_rgba<agg::rgba8, 
agg::order_bgra>, unsigned int> >&, bool, QString const&) const]+0xfcd): 
undefined reference to `QDomElement::tagName() const'
collect2: ld returned 1 exit status
make[3]: *** [lib/libkdecore.so.4.2.0] Error 1
make[3]: Leaving directory `/home/kde4/kde4_trunk/kdelibs'
make[2]: *** [kdecore/CMakeFiles/kdecore.dir/all] Error 2
make[2]: Leaving directory `/home/kde4/kde4_trunk/kdelibs'
make[1]: *** [kdecore/directorystart] Error 2
make[1]: Leaving directory `/home/kde4/kde4_trunk/kdelibs'
make: *** [all] Error 2

Hope that gives you the info you need, if not let me know
Winfried


More information about the Kde-buildsystem mailing list