This forum has been archived. All content is frozen. Please use KDE Discuss instead.

linking to amarok

Tags: None
(comma "," separated)
User avatar
giucam
KDE Developer
Posts
62
Karma
1
OS

linking to amarok

Tue Sep 16, 2008 8:07 pm
Hi! I'm trying to write some code using "Amarok.h" and "EngineController.h". in CMakeLists.txt i added in "include_directories" the path of the sources of amarok, but i still get undefined references when linking. what does my CMakeLists.txt misses?
Error:
Code: Select all
Linking CXX shared module lib/plasma_applet_am4rok.so                                                                         
CMakeFiles/plasma_applet_am4rok.dir/player_controller.o: In function `PlayerController::forceUpdateInfos()':                  
/home/giulio/programmi/tarballs/amarok/src/context/applets/plasma-am4rok/player_controller.cpp:296: undefined reference to `The::engineController()'                                                                                                         
/home/giulio/programmi/tarballs/amarok/src/context/applets/plasma-am4rok/player_controller.cpp:296: undefined reference to `EngineController::currentTrack() const'                                                                                          
collect2: ld returned 1 exit status                                                                                           
make[2]: *** [lib/plasma_applet_am4rok.so] Error 1                                                                            
make[1]: *** [CMakeFiles/plasma_applet_am4rok.dir/all] Error 2                                                                
make: *** [all] Error 2                                                                    
User avatar
giucam
KDE Developer
Posts
62
Karma
1
OS

Re: linking to amarok

Tue Sep 16, 2008 8:18 pm
i answer by myself :p i had to put "amaroklib" in the "target_link_libraries" section.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, sandyvee, Sogou [Bot]