Results 1 to 4 of 4

Thread: phonon-compilation error

  1. #1
    Join Date
    Jun 2008
    Posts
    16
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default phonon-compilation error

    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

  2. #2
    Join Date
    Jan 2007
    Posts
    68
    Thanks
    9
    Thanked 8 Times in 8 Posts

    Default Re: phonon-compilation error

    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

  3. #3
    Join Date
    Dec 2011
    Posts
    1
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: phonon-compilation error

    Quote Originally Posted by darksaga View Post
    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 ?

  4. #4
    Join Date
    Jun 2010
    Posts
    102
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: phonon-compilation error

    Quote Originally Posted by darksaga View Post
    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
    Contact: Skype: sonnh89
    Yahoo: nhs_0702@yahoo.com

    Liên hệ SKype: sonnh89

Similar Threads

  1. nmake error during .pro compiling
    By mattia in forum Installation and Deployment
    Replies: 5
    Last Post: 18th June 2008, 10:15
  2. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  3. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  4. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  5. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.