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

how to link phonon using cmake

Tags: None
(comma "," separated)
User avatar
battler
Registered Member
Posts
5
Karma
0
OS

how to link phonon using cmake

Sat Jan 09, 2010 5:45 pm
hi, i'm hacking together my first kde4 app and am trying to link against phonon. I followed the tutorials 1 to 4 on techbase to get the basics of windowing and after adding the relevant phonon code, updated my CMakeLists.txt with:

Code: Select all
target_link_libraries(tutorial4 ${KDE4_KDEUI_LIBS}
                                ${KDE4_KIO_LIBS}
                                ${PHONON})


this is obviously wrong because when i run make, the only errors i get are linking errors related to phonon. what is the proper way to link phonon using cmake?

thanks all.
User avatar
ComaWhite
KDE Developer
Posts
100
Karma
0
OS
It's ${KDE4_PHONON_LIBS} not ${PHONON}


Image
KDE Version: 4.6 (Beta 2) | Qt Version: 4.7.1
Aki IRC Developer http://www.akiirc.org/
User avatar
battler
Registered Member
Posts
5
Karma
0
OS

Re: how to link phonon using cmake

Fri Jan 15, 2010 2:27 am
brilliant, thanks!


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]