PDA

View Full Version : phonon-compilation error



qwakaw
1st August 2008, 15:30
hi,

I am trying to compile phonon as well as phonon-gstreamer.. but i am unable to compile it using make

/home/qvantel/Phonon/phonon-devel/lib/phonon_backend/libphonon_gstreamer.so: undefined reference to `gst_property_probe_get_type'
/home/qvantel/Phonon/phonon-devel/lib/phonon_backend/libphonon_gstreamer.so: undefined reference to `gst_x_overlay_get_type'
/home/qvantel/Phonon/phonon-devel/lib/phonon_backend/libphonon_gstreamer.so: undefined reference to `gst_audio_sink_get_type'
/home/qvantel/Phonon/phonon-devel/lib/phonon_backend/libphonon_gstreamer.so: undefined reference to `gst_x_overlay_set_xwindow_id'
/home/qvantel/Phonon/phonon-devel/lib/phonon_backend/libphonon_gstreamer.so: undefined reference to `gst_x_overlay_expose'
/home/qvantel/Phonon/phonon-devel/lib/phonon_backend/libphonon_gstreamer.so: undefined reference to `gst_base_src_get_type'
/home/qvantel/Phonon/phonon-devel/lib/phonon_backend/libphonon_gstreamer.so: undefined reference to `gst_property_probe_get_property'
/home/qvantel/Phonon/phonon-devel/lib/phonon_backend/libphonon_gstreamer.so: undefined reference to `gst_video_sink_get_type'
/home/qvantel/Phonon/phonon-devel/lib/phonon_backend/libphonon_gstreamer.so: undefined reference to `gst_property_probe_probe_and_get_values'
collect2: ld returned 1 exit status
make: *** [audio_player] Error 1


here is what i am doing...

My sam.pro
---------------

PHONON_SDK = /home/qvantel/Phonon/phonon-devel
TEMPLATE = app
TARGET = audio_player
DEPENDPATH += .
INCLUDEPATH += . $${PHONON_SDK}/include

#LIBS += -lphonon -lphonon_gstreamer -L$${PHONON_SDK}/lib -L$${PHONON_SDK}/lib/phonon_backend

LIBS += -lphonon -L$${PHONON_SDK}/lib -L$${PHONON_SDK}/lib/phonon_backend -lphonon_gstreamer
#LIBS += -lphonon -lphonon_gstreamer
# Input
SOURCES += Main.cpp

--------------------------------------------------

The contents of your phonon-devel directory should look like this.
/home/user/Phonon/phonon-devel/lib
/home/user/Phonon/phonon-devel/lib/libphonon.so
/home/user/Phonon/phonon-devel/lib/libphonon_gstreamer.so.1
/home/user/Phonon/phonon-devel/lib/libphonon_gstreamer.so.1.0.0
/home/user/Phonon/phonon-devel/lib/libphonon.so.1.0
/home/user/Phonon/phonon-devel/lib/phonon_backend/libphonon_gstreamer.so
/home/user/Phonon/phonon-devel/lib/phonon_backend/libphonon.so.1
/home/user/Phonon/phonon-devel/lib/phonon_backend/libphonon.so.1.0.0
/home/user/Phonon/phonon-devel/lib/phonon_backend/libphonon_gstreamer.so.1.0
/home/user/Phonon/phonon-devel/include
/home/user/Phonon/phonon-devel/include/phonon
/home/user/Phonon/phonon-devel/include/phonon/backendinterface.h
/home/user/Phonon/phonon-devel/include/phonon/videoplayer.h
/home/user/Phonon/phonon-devel/include/phonon/abstractmediastream.h
/home/user/Phonon/phonon-devel/include/phonon/volumefaderinterface.h
/home/user/Phonon/phonon-devel/include/phonon/audiooutputinterface.h
/home/user/Phonon/phonon-devel/include/phonon/effect.h
/home/user/Phonon/phonon-devel/include/phonon/factory.h
/home/user/Phonon/phonon-devel/include/phonon/videowidgetinterface.h
/home/user/Phonon/phonon-devel/include/phonon/effectinterface.h
/home/user/Phonon/phonon-devel/include/phonon/audiooutput.h
/home/user/Phonon/phonon-devel/include/phonon/platformplugin.h
/home/user/Phonon/phonon-devel/include/phonon/addoninterface.h
/home/user/Phonon/phonon-devel/include/phonon/mediaobject.h
/home/user/Phonon/phonon-devel/include/phonon/seekslider.h
/home/user/Phonon/phonon-devel/include/phonon/effectwidget.h
/home/user/Phonon/phonon-devel/include/phonon/objectdescriptionmodel.h
/home/user/Phonon/phonon-devel/include/phonon/effectparameter.h

darksaga
1st August 2008, 19:18
here is what i did to phonon support under a linux environment:

first you need to compile gstreamer, in order to compile gstreamer you need the liboil library

the files I downloaded:
- liboil
- gstreamer
- gstreamer-plugins-base
- gstreamer-plugins-good
- gstreamer-ffmpeg
- qt 4.4.x for linux

1.
compile & install liboil

2.
compile & install gstreamer
configuration example to compile gstreamer:

PKG_CONFIG_PATH=/home/bin/qt/liboil/lib/pkgconfig/:/home/bin/qt/gstreamer/lib/pkgconfig/ ./configure --prefix=/home/bin/qt/gstreamer/

add gstreamer to your .bashrc

3.
compile & install qt
configuration example to compile qt with phonon support:
./configure -platform linux-g++-32 -prefix /home/bin/qt/qt44/ -qt-gif -qt-sql-sqlite -phonon -I /home/bin/qt/gstreamer/include/gstreamer-0.10/ -L /home/bin/qt/gstreamer/lib/

add qt to your .bashrc

this is how I compiled it without any problems to have phonon support....
hope it helps a little

greetz

RichardHuynh911
14th December 2011, 13:24
here is what i did to phonon support under a linux environment:

first you need to compile gstreamer, in order to compile gstreamer you need the liboil library

the files I downloaded:
- liboil
- gstreamer
- gstreamer-plugins-base
- gstreamer-plugins-good
- gstreamer-ffmpeg
- qt 4.4.x for linux

1.
compile & install liboil

2.
compile & install gstreamer
configuration example to compile gstreamer:

PKG_CONFIG_PATH=/home/bin/qt/liboil/lib/pkgconfig/:/home/bin/qt/gstreamer/lib/pkgconfig/ ./configure --prefix=/home/bin/qt/gstreamer/

add gstreamer to your .bashrc

3.
compile & install qt
configuration example to compile qt with phonon support:
./configure -platform linux-g++-32 -prefix /home/bin/qt/qt44/ -qt-gif -qt-sql-sqlite -phonon -I /home/bin/qt/gstreamer/include/gstreamer-0.10/ -L /home/bin/qt/gstreamer/lib/

add qt to your .bashrc

this is how I compiled it without any problems to have phonon support....
hope it helps a little

greetz

Could you give me more detail please ?

Thành Viên Mới
3rd February 2012, 07:52
here is what i did to phonon support under a linux environment:

first you need to compile gstreamer, in order to compile gstreamer you need the liboil library

the files I downloaded:
- liboil
- gstreamer
- gstreamer-plugins-base
- gstreamer-plugins-good
- gstreamer-ffmpeg
- qt 4.4.x for linux

1.
compile & install liboil

2.
compile & install gstreamer
configuration example to compile gstreamer:

PKG_CONFIG_PATH=/home/bin/qt/liboil/lib/pkgconfig/:/home/bin/qt/gstreamer/lib/pkgconfig/ ./configure --prefix=/home/bin/qt/gstreamer/

add gstreamer to your .bashrc

3.
compile & install qt
configuration example to compile qt with phonon support:
./configure -platform linux-g++-32 -prefix /home/bin/qt/qt44/ -qt-gif -qt-sql-sqlite -phonon -I /home/bin/qt/gstreamer/include/gstreamer-0.10/ -L /home/bin/qt/gstreamer/lib/

add qt to your .bashrc

this is how I compiled it without any problems to have phonon support....
hope it helps a little

greetz

can you share full guide