tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kio build problem - cmake magic





On 01/03/16 23:38, Mark Davies wrote:
I'm trying to build wip/kio on NetBSD-7.0_STABLE/amd64 and the build
dies with:

[ 34%] Linking CXX shared module kcookiejar.so
CMakeFiles/kded_kcookiejar.dir/kcookieserver.cpp.o: In function
`KdedCookieServerFactory::~KdedCookieServerFactory()':
kcookieserver.cpp:(.text+0x3): undefined reference to `vtable for
KdedCookieServerFactory'

Coming back to this, turns out the actual problem was somewhat earlier:


[ 14%] Automatic moc for target kded_kcookiejar
Generating kcookieserver.moc
/src/work/pkgsrc/wip/kio/work.x86_64/kio-5.21.0/src/ioslaves/http/kcookiejar/kcookieserver.cpp:0: Note: No relevant classes found. No output generated.

resulting in a zero length kcookieserver.moc

After some probing worked out that what cmake was running to generate kcookieserver.moc was:

/usr/pkg/qt5/bin/moc -I/src/work/pkgsrc/wip/kio/work.x86_64/kio-5.21.0/_KDE_build/src/ioslaves/http/kcookiejar -I/src/work/pkgsrc/wip/kio/work.x86_64/kio-5.21.0/src/ioslaves/http/kcookiejar -I/usr/pkg/include/KF5/KWindowSystem -I/usr/pkg/include -I/usr/pkg/include/KF5 -I/usr/pkg/qt5/include -I/usr/pkg/qt5/include/QtWidgets -I/usr/pkg/qt5/include/QtGui -I/src/work/pkgsrc/wip/kio/work.x86_64/.buildlink/include -I/usr/pkg/qt5/include/QtCore -I/usr/pkg/qt5/./mkspecs/netbsd-g++ -I/usr/pkg/include/KF5/KService -I/usr/pkg/include/KF5/KConfigCore -I/usr/pkg/include/KF5/KCoreAddons -I/usr/pkg/include/KF5/KDBusAddons -I/usr/pkg/qt5/include/QtDBus -I/usr/pkg/include/KF5/KI18n -I/usr/pkg/include/KF5/KWidgetsAddons -I/usr/include -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DTRANSLATION_DOMAIN="kio5" -D_LARGEFILE64_SOURCE -o /src/work/pkgsrc/wip/kio/work.x86_64/kio-5.21.0/_KDE_build/src/ioslaves/http/kcookiejar/kcookieserver.moc /src/work/pkgsrc/wip/kio/work.x86_64/kio-5.21.0
/src/ioslaves/http/kcookiejar/kcookieserver.cpp

and that if I run the same command with the "-I/usr/pkg/include" removed then it works.

However there is too much magic processing going on within cmake to work out how to fix this within the package. Can't see where the "-I/usr/pkg/include" is coming from (same package under Linux doesn't add it). Can't see how to modify the arguments to moc or which moc to run.

Any suggestions?

cheers
mark


Home | Main Index | Thread Index | Old Index