building kde4-baseapps

"René J.V. Bertin" rjvbertin at gmail.com
Sat Feb 22 09:59:05 PST 2014


I'd be interested to run certain KDE apps on my MBP, so I'm trying to install KDE. What's the status of building KDE in MacPorts? My build of kde4-baseapps fails on Dolphin, with the compiled code for the Panel class apparently not being available when linking:

:info:build Linking CXX executable dolphin.app/Contents/MacOS/dolphin
:info:build cd /Volumes/Debian/MacPorts/var/macports/build/_Volumes_Debian_MacPorts_var_macports_sources_rsync.macports.org_release_ports_kde_kde4-baseapps/kde4-baseapps/work/build/dolphin/src && /Volumes/Debian/MacPorts/bin/cmake -E cmake_link_script CMakeFiles/dolphin.dir/link.txt --verbose=1
:info:build /Volumes/Debian/MacPorts/bin/g++-mp-4.7   -Os -m64  -fno-common -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -O2 -DNDEBUG -DQT_NO_DEBUG -arch x86_64 -Wl,-search_paths_first -Wl,-headerpad_max_install_names  -Wl,-headerpad_max_install_names CMakeFiles/dolphin.dir/dolphin_automoc.o CMakeFiles/dolphin.dir/dolphin_dummy.o CMakeFiles/dolphin.dir/panels/terminal/terminalpanel.o  -o dolphin.app/Contents/MacOS/dolphin  -L/Volumes/Debian/MacPorts/var/macports/build/_Volumes_Debian_MacPorts_var_macports_sources_rsync.macports.org_release_ports_kde_kde4-baseapps/kde4-baseapps/work/build/lib  ../../lib/libkdeinit4_dolphin.dylib ../../lib/libdolphinprivate.4.12.2.dylib ../../lib/libkonq.5.12.2.dylib /Volumes/Debian/MacPorts/lib/libkfile.4.12.2.dylib /Volumes/Debian/MacPorts/lib/libkcmutils.4.12.2.dylib /Volumes/Debian/MacPorts/lib/libkparts.4.12.2.dylib -lknewstuff3 /Volumes/Debian/MacPorts/lib/libphonon.dylib /Volumes/Debian/MacPorts/lib/libnepomukwidgets.4.12.2.dylib /Volumes/Debian/MacPorts/lib/libnepomukcore.4.12.2.dylib /Volumes/Debian/MacPorts/lib/libkio.5.12.2.dylib /Volumes/Debian/MacPorts/lib/libsolid.4.12.2.dylib /Volumes/Debian/MacPorts/lib/libnepomukutils.4.12.2.dylib /Volumes/Debian/MacPorts/lib/libQtNetwork.dylib /Volumes/Debian/MacPorts/lib/libQtXml.dylib /Volumes/Debian/MacPorts/lib/libnepomuk.4.12.2.dylib /Volumes/Debian/MacPorts/lib/libkdeui.5.12.2.dylib /Volumes/Debian/MacPorts/lib/libQtGui.dylib /Volumes/Debian/MacPorts/lib/libQtSvg.dylib /Volumes/Debian/MacPorts/lib/libsoprano.dylib /Volumes/Debian/MacPorts/lib/libkactivities.6.2.0.dylib /Volumes/Debian/MacPorts/lib/libkdecore.5.12.2.dylib /Volumes/Debian/MacPorts/lib/libQtCore.dylib /Volumes/Debian/MacPorts/lib/libQtDBus.dylib -framework Carbon 
:info:build Undefined symbols for architecture x86_64:
:info:build   "Panel::~Panel()", referenced from:
:info:build       TerminalPanel::~TerminalPanel() in terminalpanel.o
:info:build       TerminalPanel::~TerminalPanel() in terminalpanel.o
:info:build   "Panel::Panel(QWidget*)", referenced from:
:info:build       TerminalPanel::TerminalPanel(QWidget*) in terminalpanel.o
:info:build       TerminalPanel::TerminalPanel(QWidget*) in terminalpanel.o
:info:build   "Panel::url() const", referenced from:
:info:build       TerminalPanel::urlChanged()       in terminalpanel.o
:info:build       TerminalPanel::slotKonsolePartCurrentDirectoryChanged(QString const&)  in terminalpanel.o
:info:build       TerminalPanel::showEvent(QShowEvent*)       in terminalpanel.o
:info:build   "Panel::qt_metacall(QMetaObject::Call, int, void**)", referenced from:
:info:build       TerminalPanel::qt_metacall(QMetaObject::Call, int, void**) in terminalpanel.o
:info:build   "Panel::qt_metacast(char const*)", referenced from:
:info:build       TerminalPanel::qt_metacast(char const*) in terminalpanel.o
:info:build   "typeinfo for Panel", referenced from:
:info:build       typeinfo for TerminalPanel in terminalpanel.o
:info:build   "Panel::sizeHint() const", referenced from:
:info:build       vtable for TerminalPanel in terminalpanel.o
:info:build   "Panel::readSettings()", referenced from:
:info:build       vtable for TerminalPanel in terminalpanel.o
:info:build   "Panel::staticMetaObject", referenced from:
:info:build       TerminalPanel::staticMetaObject        in terminalpanel.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build collect2: error: ld returned 1 exit status
:info:build make[2]: *** [dolphin/src/dolphin.app/Contents/MacOS/dolphin] Error 1
:info:build make[2]: Leaving directory `/Volumes/Debian/MacPorts/var/macports/build/_Volumes_Debian_MacPorts_var_macports_sources_rsync.macports.org_release_ports_kde_kde4-baseapps/kde4-baseapps/work/build'
:info:build make[1]: *** [dolphin/src/CMakeFiles/dolphin.dir/all] Error 2
:info:build make[1]: Leaving directory `/Volumes/Debian/MacPorts/var/macports/build/_Volumes_Debian_MacPorts_var_macports_sources_rsync.macports.org_release_ports_kde_kde4-baseapps/kde4-baseapps/work/build'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/Volumes/Debian/MacPorts/var/macports/build/


The class in question (in panel/panel.cpp) appears to be built and included in libkdeinit4_dolphin.dylib, and as far as I understand from nm's output everything is indeed there in that dylib. I get the same error using clang, but gcc outputs it in more readable form (and this is from a 10.6.8 host)

I'm a bit stuck on this one, ideas?

René




More information about the macports-users mailing list