#37952: library not foud to link my project with kdepimlibs and akonadi -------------------------------------+------------------------------------- Reporter: mparchet@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: kdepimlib, akonadi, | Port: kdepimlib, akonadi, kdelibs | kdelibs -------------------------------------+------------------------------------- Hello, I work on mac os 10.8.2 I try to use the kdepimlibs and akonadi macport version of package in a qt project which compile with cmake. After reading of the following documentation ( http://techbase.kde.org/Development/Tutorials/Akonadi/Application) and several google search, I still have the bellow issue. when I try to compile I get this link error. {{{ Linking CXX executable release/myprojectname ld: library not found for -lKDE4__kdeui clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [release/myprojectname] Error 1 make[1]: *** [CMakeFiles/myprojectname.dir/all] Error 2 make: *** [all] Error 2 }}} Here an extract of my cMakeList.txt file project. {{{ find_package ( Qt4 REQUIRED ) find_package(KdepimLibs REQUIRED) FIND_PACKAGE( Akonadi REQUIRED ) include_directories ( ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${QT_QTCORE_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR} ${QT_QTCORE_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR} ${KDEPIMLIBS_INCLUDE_DIRS} ${AKONADI_INCLUDE_DIR} ) #${KDE4_INCLUDES} link_directories( ${KDE4_LIB_DIR} ${KDEPIMLIBS_LIB_DIR} ) TARGET_LINK_LIBRARIES( ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${KDEPIMLIBS_AKONADI_LIBS} ${KDEPIMLIBS_KABC_LIBS} ) }}} Could you help me please ? Best regards mparchet -- Ticket URL: <https://trac.macports.org/ticket/37952> MacPorts <http://www.macports.org/> Ports system for Mac OS