Missing linker path in nepomuk-core

Torgny Nyblom nyblom at kde.org
Thu Jan 5 17:03:46 UTC 2012


Hi,

I'm having an issue with building nepomuk-core in jenkins.

The issue seems to be that the path to where kdelibs installs its libraries
to is missing from the linker include paths generated by cmake.

Below is the command that is generated and the resulting error.

------------
Linking CXX shared library ../lib/libnepomukcore.so
cd /srv/workspace/nepomuk-core_master/build/libnepomukcore && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/nepomukcore.dir/link.txt --verbose=1
/usr/lib/ccache/c++  -fPIC  -Wnon-virtual-dtor -Wno-long-long -ansi -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 -g -DNDEBUG -DQT_NO_DEBUG -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc   -shared -Wl,-soname,libnepomukcore.so.4 -o ../lib/libnepomukcore.so.4.8.0 CMakeFiles/nepomukcore.dir/nepomukcore_automoc.o CMakeFiles/nepomukcore.dir/resource/variant.o CMakeFiles/nepomukcore.dir/resource/resourcedata.o CMakeFiles/nepomukcore.dir/resource/resourcemanager.o CMakeFiles/nepomukcore.dir/resource/resourcefiltermodel.o CMakeFiles/nepomukcore.dir/resource/nepomukmainmodel.o CMakeFiles/nepomukcore.dir/resource/resource.o CMakeFiles/nepomukcore.dir/resource/thing.o CMakeFiles/nepomukcore.dir/resource/file.o CMakeFiles/nepomukcore.dir/resource/tag.o CMakeFiles/nepomukcore.dir/resource/nepomukservice.o CMakeFiles/nepomukcore.dir/resource/graphwrapper.o CMakeFiles/nepomukcore.dir/misc/utils.o CMakeFiles/nepomukcore.dir/misc/nepomukversion.o CMakeFiles/nepomukcore.dir/types/entity.o CMakeFiles/nepomukcore.dir/types/ontology.o CMakeFiles/nepomukcore.dir/types/class.o CMakeFiles/nepomukcore.dir/types/property.o CMakeFiles/nepomukcore.dir/types/literal.o CMakeFiles/nepomukcore.dir/types/entitymanager.o CMakeFiles/nepomukcore.dir/query/term.o CMakeFiles/nepomukcore.dir/query/negationterm.o CMakeFiles/nepomukcore.dir/query/orterm.o CMakeFiles/nepomukcore.dir/query/andterm.o CMakeFiles/nepomukcore.dir/query/comparisonterm.o CMakeFiles/nepomukcore.dir/query/simpleterm.o CMakeFiles/nepomukcore.dir/query/groupterm.o CMakeFiles/nepomukcore.dir/query/resourceterm.o CMakeFiles/nepomukcore.dir/query/literalterm.o CMakeFiles/nepomukcore.dir/query/resourcetypeterm.o CMakeFiles/nepomukcore.dir/query/optionalterm.o CMakeFiles/nepomukcore.dir/query/query.o CMakeFiles/nepomukcore.dir/query/filequery.o CMakeFiles/nepomukcore.dir/query/queryparser.o CMakeFiles/nepomukcore.dir/query/dateparser.o CMakeFiles/nepomukcore.dir/query/result.o CMakeFiles/nepomukcore.dir/query/queryserviceclient.o CMakeFiles/nepomukcore.dir/query/dbusoperators.o CMakeFiles/nepomukcore.dir/query/queryserializer.o CMakeFiles/nepomukcore.dir/query/standardqueries.o CMakeFiles/nepomukcore.dir/queryserviceinterface.o CMakeFiles/nepomukcore.dir/queryinterface.o CMakeFiles/nepomukcore.dir/datamanagement/abstracttimeoutdbusinterface.o CMakeFiles/nepomukcore.dir/datamanagement/datamanagement.o CMakeFiles/nepomukcore.dir/datamanagement/dbustypes.o CMakeFiles/nepomukcore.dir/datamanagement/genericdatamanagementjob.o CMakeFiles/nepomukcore.dir/datamanagement/simpleresource.o CMakeFiles/nepomukcore.dir/datamanagement/createresourcejob.o CMakeFiles/nepomukcore.dir/datamanagement/datamanagementinterface.o CMakeFiles/nepomukcore.dir/datamanagement/describeresourcesjob.o CMakeFiles/nepomukcore.dir/datamanagement/resourcewatcher.o CMakeFiles/nepomukcore.dir/datamanagement/simpleresourcegraph.o CMakeFiles/nepomukcore.dir/datamanagement/storeresourcesjob.o CMakeFiles/nepomukcore.dir/resourcewatcherconnectioninterface.o CMakeFiles/nepomukcore.dir/resourcewatchermanagerinterface.o CMakeFiles/nepomukcore.dir/stuff-to-remove-for-kdelibs-5.0/kdbusconnectionpool.o CMakeFiles/nepomukcore.dir/nie.o CMakeFiles/nepomukcore.dir/nfo.o CMakeFiles/nepomukcore.dir/ncal.o CMakeFiles/nepomukcore.dir/nco.o CMakeFiles/nepomukcore.dir/nmo.o CMakeFiles/nepomukcore.dir/nmm.o CMakeFiles/nepomukcore.dir/nexif.o CMakeFiles/nepomukcore.dir/pimo.o CMakeFiles/nepomukcore.dir/tmo.o CMakeFiles/nepomukcore.dir/nuao.o CMakeFiles/nepomukcore.dir/ndo.o -L/srv/install/deps/master/lib -L/srv/install/qt/4.8/lib /srv/install/deps/master/lib/libsoprano.so /srv/install/deps/master/lib/libsopranoclient.so /srv/install/qt/4.8/lib/libQtCore.so -lpthread /srv/install/qt/4.8/lib/libQtGui.so /srv/install/qt/4.8/lib/libQtDBus.so -lkdecore -lkdeui -Wl,-rpath,/srv/install/deps/master/lib:/srv/install/qt/4.8/lib::::::::::::::: 
/usr/bin/ld: cannot find -lkdecore
/usr/bin/ld: cannot find -lkdeui
collect2: ld returned 1 exit status
make[2]: *** [lib/libnepomukcore.so.4.8.0] Error 1
make[2]: Leaving directory `/srv/workspace/nepomuk-core_master/build'
make[1]: *** [libnepomukcore/CMakeFiles/nepomukcore.dir/all] Error 2
make[1]: Leaving directory `/srv/workspace/nepomuk-core_master/build'
make: *** [all] Error 2
-----------

The part of the cmake file is this:
----------
project(libnepomukcore)
[...]
kde4_add_library(nepomukcore SHARED ${nepomuk_LIB_SRCS})

target_link_libraries(nepomukcore
  ${SOPRANO_LIBRARIES}
  ${SOPRANO_CLIENT_LIBRARIES}
  ${QT_QTCORE_LIBRARY}
  ${QT_QTGUI_LIBRARY}
  ${QT_QTDBUS_LIBRARY}
  kdecore
  kdeui
)

target_link_libraries(nepomukcore
  LINK_INTERFACE_LIBRARIES
  kdecore
  ${SOPRANO_LIBRARIES})


set_target_properties(nepomukcore PROPERTIES
   VERSION ${GENERIC_LIB_VERSION}
   SOVERSION ${GENERIC_LIB_SOVERSION}
)
--------------

Anyone who knows what is wrong?

/Regards
Torgny


More information about the Kde-buildsystem mailing list