Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#37952 closed defect (invalid)

library not foud to link my project with kdepimlibs and akonadi

Reported by: mparchet@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: sharky@…, NicosPavlov
Port: kdepimlibs4 akonadi kdelibs4

Description

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

Change History (5)

comment:1 Changed 12 years ago by NicosPavlov

For what I can say, the issue does not seem to come from the extract, unless some variables have been changed.

Furthermore, I have the strong impression this issue has nothing to do with Macports, is it ?

comment:2 Changed 12 years ago by jmroot (Joshua Root)

Keywords: kdepimlib akonadi kdelibs removed
Port: kdepimlibs4 kdelibs4 added; kdepimlib kdelibs removed
Type: requestdefect

comment:3 Changed 12 years ago by mparchet@…

Hello,

I tried different variables but I have allwase this error.

ld: library not found for -lKDE4__kdeui

Could you tell me if this is implemented or not ?

Best regards

mparchet

comment:4 Changed 12 years ago by NicosPavlov

Resolution: invalid
Status: newclosed

I am not sure to understand the question, but one thing which is sure is that this library is not supposed to exist, as it is not a standard naming convention for KDE. You perhaps mean libkdeui.dylib.

Closing as it is not related to Macports.

comment:5 Changed 12 years ago by mparchet@…

Hello,

In witch package is libkdeui.dylib ?

Is it kdesdk ?

Thanks for your answer.

Best regards

mparchet

Note: See TracTickets for help on using tickets.