showstoppers

Benjamin Reed rangerrick at befunk.com
Thu Nov 3 19:18:25 CET 2005


So I've actually gotten through building libkdecore on Mac OS X, and now 
I'm stuck...

It looks like indirect libraries are not being handled; I seem to recall 
there being some discussion on such things previously, but I can't find 
it at the moment.

For example, libkde3support doesn't link, it wants libDCOP but can't 
find it because it isn't in the rpath that's described inside the 
library (eg, "can't open dynamic library" below):

---(snip!)---
g++ -o build/kde3support/libkde3support.dylib -dynamiclib \
...buncha .os files...
build/kde3support/kparts/dockmainwindow3.os -Lbuild/kdecore -Lkdecore \
-Lkdecore -Lbuild/kdeui -Lkdeui -Lkdeui -Lbuild/kmdi -Lkmdi \
-Lbuild/kparts -Lkparts -Lkparts -Lbuild/kio -Lkio -Lkio -Lbuild/dcop \
-Ldcop -Ldcop -L. -Lbuild/kde3support/build -Lkde3support/build \
-L/opt/qt-mac/lib -lkdecore -F/opt/qt-mac/lib -framework QtCore \
-framework QtGui -framework QtNetwork -framework QtSql -framework \
QtXml -framework Qt3Support
ld: warning -L: directory name (build/kmdi) does not exist
ld: warning -L: directory name (kmdi) does not exist
ld: warning -L: directory name (build/kde3support/build) does not exist
ld: warning -L: directory name (kde3support/build) does not exist
ld: warning can't open dynamic library: /usr/lib/libDCOP.6.dylib 
referenced from: build/kdecore/libkdecore.dylib (checking for undefined 
symbols may be affected) (No such file or directory, errno = 2)
---(snip!)---


Adding dcop to the libs gets farther, but I still have tons of undefined 
symbols:

---(snip!)---
g++ -o build/kde3support/libkde3support.dylib -dynamiclib \
...buncha .os files...
build/kde3support/kparts/dockmainwindow3.os -Lbuild/kdecore -Lkdecore \
-Lkdecore -Lbuild/kdeui -Lkdeui -Lkdeui -Lbuild/kmdi -Lkmdi \
-Lbuild/kparts -Lkparts -Lkparts -Lbuild/kio -Lkio -Lkio -Lbuild/dcop \
-Ldcop -Ldcop -L. -Lbuild/kde3support/build -Lkde3support/build \
-L/opt/qt-mac/lib -lkdecore -ldcop -F/opt/qt-mac/lib -framework QtCore \
-framework QtGui -framework QtNetwork -framework QtSql -framework \
QtXml -framework Qt3Support
ld: warning -L: directory name (build/kmdi) does not exist
ld: warning -L: directory name (kmdi) does not exist
ld: warning -L: directory name (build/kde3support/build) does not exist
ld: warning -L: directory name (kde3support/build) does not exist
ld: Undefined symbols:
__ZN24KDictSpellingHighlighterC1EP10Q3TextEditbbRK6QColorbS4_S4_S4_S4_P12KSpellConfig
__ZN6KSpellC1EP7QWidgetRK7QStringP7QObjectPKcP12KSpellConfigbb
__ZN7KCursor17setAutoHideCursorEP7QWidgetbb
__ZN11KMainWindow10closeEventEP11QCloseEvent
__ZN11KMainWindow10guiFactoryEv
__ZN11KMainWindow10paintEventEP11QPaintEvent
__ZN11KMainWindow10queryCloseEv
__ZN11KMainWindow10setCaptionERK7QString
__ZN11KMainWindow10setCaptionERK7QStringb
__ZN11KMainWindow11finalizeGUIEP13KXMLGUIClient
__ZN11KMainWindow11qt_metacallEN11QMetaObject4CallEiPPv
__ZN11KMainWindow11qt_metacastEPKc
__ZN11KMainWindow11resizeEventEP12QResizeEvent
__ZN11KMainWindow12virtual_hookEiPv
__ZN11KMainWindow15setPlainCaptionERK7QString
__ZN11KMainWindow16slotStateChangedERK7QString
__ZN11KMainWindow16staticMetaObjectE
__ZN11KMainWindow20readGlobalPropertiesEP7KConfig
__ZN11KMainWindow20saveGlobalPropertiesEP7KConfig
...and so on...
---(snip!)---

Are these things that should be coming from libkde3support's subdirectories?


More information about the Kde-buildsystem mailing list