cmake and linking issues
Giorgos Tsiapaliokas
terietor at gmail.com
Wed Oct 30 10:33:16 UTC 2013
Hello,
I have came across to some buildsystem issues.
if I don't have the KDE4Support and KDELibs4 with this *exact*
order, cmake will fail. Without this order cmake fails in plasma-framework
and in plasmate. I have attached the output from cmake.
find_package(KDE4Support REQUIRED NO_MODULE)
find_package(KDELibs4 REQUIRED NO_MODULE)
So should the find_package be written like this?
Is it normal to fail otherwise?
The second issue is in plasmate[frameworks-scratch] we have a KDateTime
linking error,
I have attached the error.
thanks
--
Giorgos Tsiapaliokas (terietor)
terietor.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20131030/0de65f77/attachment.html>
-------------- next part --------------
[ 12%] Automoc for target plasmaengineexplorer
Generating engineexplorer.moc
/home/tsiapaliokas/src/kf5/plasmate/engineexplorer/engineexplorer.cpp:0: Note: No relevant classes found. No output generated.
Generating moc_ktreeviewsearchline.cpp
Generating serviceviewer.moc
/home/tsiapaliokas/src/kf5/plasmate/engineexplorer/serviceviewer.cpp:0: Note: No relevant classes found. No output generated.
Generating moc_engineexplorer.cpp
Generating moc_serviceviewer.cpp
[ 12%] Built target plasmaengineexplorer_automoc
Scanning dependencies of target plasmaengineexplorer
[ 25%] [ 37%] [ 50%] [ 62%] [ 75%] Building CXX object engineexplorer/CMakeFiles/plasmaengineexplorer.dir/engineexplorer.cpp.o
Building CXX object engineexplorer/CMakeFiles/plasmaengineexplorer.dir/main.cpp.o
Building CXX object engineexplorer/CMakeFiles/plasmaengineexplorer.dir/ktreeviewsearchline.cpp.o
Building CXX object engineexplorer/CMakeFiles/plasmaengineexplorer.dir/serviceviewer.cpp.o
Building CXX object engineexplorer/CMakeFiles/plasmaengineexplorer.dir/plasmaengineexplorer_automoc.cpp.o
Linking CXX executable plasmaengineexplorer
/usr/bin/ld: CMakeFiles/plasmaengineexplorer.dir/engineexplorer.cpp.o: undefined reference to symbol '_ZN9KDateTimeC1ERKS_'
/usr/bin/ld: note: '_ZN9KDateTimeC1ERKS_' is defined in DSO /opt/kf5/lib64/libKDE4Support.so.5 so try adding it to the linker command line
/opt/kf5/lib64/libKDE4Support.so.5: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [engineexplorer/plasmaengineexplorer] Error 1
make[1]: *** [engineexplorer/CMakeFiles/plasmaengineexplorer.dir/all] Error 2
make: *** [all] Error 2
-------------- next part --------------
CMake Error at CMakeLists.txt:61 (find_package):
Found package configuration file:
/opt/kf5/lib64/cmake/KDELibs4/KDELibs4Config.cmake
but it set KDELibs4_FOUND to FALSE so package "KDELibs4" is considered to
be NOT FOUND. Reason given by package:
The following imported targets are referenced, but are missing:
KF5::KDE4Support
-- Configuring incomplete, errors occurred!
More information about the Kde-frameworks-devel
mailing list