PDA

View Full Version : Qt 4.5- cannot compile lphonon ( media module) application



varunmagical
21st September 2009, 15:17
I am trying to compile media player sample application in qt 4.5 sdk using qtcreator. I cannot compile them in windows as well as linux, in case of linux, this is the error:
Starting: /home/varun/qtsdk-2009.03/qt/bin/qmake /home/varun/qtsdk-2009.03/qt/examples/phonon/musicplayer/musicplayer.pro -spec linux-g++ -r
Exited with code 0.
Starting: /usr/bin/make -w
make: Entering directory `/home/varun/qtsdk-2009.03/qt/examples/phonon/musicplayer'
g++ -Wl,-O1 -Wl,-rpath,/home/varun/qtsdk-2009.03/qt/lib -o musicplayer main.o mainwindow.o moc_mainwindow.o -L/home/varun/qtsdk-2009.03/qt/lib -lphonon -lQtGui -L/home/varun/qtsdk-2009.03/qt/lib -L/usr/X11R6/lib -pthread -lfreetype -lgobject-2.0 -lSM -lICE -pthread -pthread -lXrender -lfontconfig -lXext -lX11 -lQtCore -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
/usr/bin/ld: cannot find -lphonon
collect2: ld returned 1 exit status
make: *** [musicplayer] Error 1
make: Leaving directory `/home/varun/qtsdk-2009.03/qt/examples/phonon/musicplayer'
Exited with code 2.
Error while building project musicplayer
When executing build step 'Make'
In case of windows, missing thing is lphonond, rest error message is sampe

I am trying to build multimedia encoder in Qt, please help me resolve this error! :)