Page 1 of 2 12 LastLast
Results 1 to 20 of 29

Thread: How to install phonon on qtx11-4.5.2 in linux..?

  1. #1
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default How to install phonon on qtx11-4.5.2 in linux..?

    Hi,

    I want to install phonon on Qt in linux. In order to use that I have to install gstreamer in linux for phonon backend.

    But i dunno what i shoul do next.. Kindly answer me for the questions i have:

    1. What gstreamer (plugin_base or devel etc..) i should download and how to install or configure that in my linux.?

    2. What is the configure script for installing phonon on qtx11-4.5.2?

    Kindly help me.. If i am not in a right forum then kindly let me know where i can get answer..

    Thanks in advance

    Balaji

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Quote Originally Posted by balajir View Post
    Hi,

    I want to install phonon on Qt in linux. In order to use that I have to install gstreamer in linux for phonon backend.

    But i dunno what i shoul do next.. Kindly answer me for the questions i have:

    1. What gstreamer (plugin_base or devel etc..) i should download and how to install or configure that in my linux.?
    Most of Linux distributions provide packages of GStreamer. You should find these in your distribution's package repository. If not, download the latest source and build it, it should be straight fwd.

    Quote Originally Posted by balajir View Post
    2. What is the configure script for installing phonon on qtx11-4.5.2?
    Just configure and build Qt with phonon support, it will find out the beckend for gstreamer automatically.

  3. #3
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Thanks..

    so fedora 9 already contains gstreamer support right?

    ./configure -phonon

    Is this correct?

    Thanks,
    Balaji.S.R

  4. #4
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Yes , Go ahead. Better refer INSTALL, README. For all possible config options, so only one time configuration is required.

  5. The following user says thank you to yogeshgokul for this useful post:

    balajir (27th July 2009)

  6. #5
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    When i configure using

    ./configure -phonon

    it configured for few minutes and showing some report.. I dunno what to do.. Kindly check it and help me..

    It is showing..

    Phonon support cannot be enabled due to functionality tests!
    Turn on verbose messaging (-v) to ./configure to see the final report.
    If you believe this message is in error you may use the continue
    switch (-continue) to ./configure to continue.
    [root@localhost qt-x11-opensource-src-4.5.2]#


    Kindly help

    Thanks,
    Balaji.S.R

  7. #6
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Try installing packages gstreamer-devel and gstreamer-plugins-base-devel or similar.
    J-P Nurmi

  8. #7
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Hi,

    Where can i get these packages.. In gstreamer download site the gstreamer and gs_plugin_base is available but devel is not there..

    After getting that where i should install these packages.. Is it must to install in any specific folder?

    Thanks,
    Balaji.S.R

  9. #8
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Use the package manager of your distribution?
    J-P Nurmi

  10. #9
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    I dont understand..

    I am using fedora 9....

    I am new to linux.. Today only i started working on it.

    Also i can get the devel of gstreamer and plugins in that site..

    Kindly help me if possible..

    Thanks in advance,
    Balaji

  11. #10
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Then perhaps you should learn the basics of your distribution before you try to start programming there?

    I don't use Fedora myself but I'd guess it's more or less something like this:
    Qt Code:
    1. sudo yum install gstreamer-devel gstreamer-plugins-base-devel
    To copy to clipboard, switch view to plain text mode 
    or use the graphical front end. I'm not even 100% sure about the package names, use the tools of your distribution to search for them.
    J-P Nurmi

  12. #11
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Hi,

    k but where did you get the gstreamer-devel and gstreamer plugin_base-devel..

    Kindly pass me the link if you have..

    Thanks,
    Balaji

  13. #12
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Let me Google a link for you. Here you go: http://fedoraproject.org/wiki/User_G...aging_Software
    J-P Nurmi

  14. #13
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Hi,

    Thanks.. I will check it and tell..

    Regards,
    Balaji

  15. #14
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Installed gstreamer-devel and gstreamer plugin base-devel successfully..

    Also now configured qt with phonon, gmake and gmake-install successfully..

    also set environment variable by

    PATH=/usr/local/Trolltech/Qt-4.5.2/bin:$PATH
    export PATH

    Now i dont know how to run sample phonon example in linux..?

    I went to the example directory say "musicplayer" and tried these things

    qmake -project
    qmake
    make
    when i give make it is showing error

    Qt Code:
    1. [root@localhost musicplayer]# ls
    2. main.cpp mainwindow.cpp mainwindow.h Makefile musicplayer musicplayer.debug musicplayer.pro
    3. [root@localhost musicplayer]# qmake -project
    4. [root@localhost musicplayer]# qmake
    5. [root@localhost musicplayer]# make
    6. g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../mkspecs/linux-g++ -I. -I../../../include/QtCore -I../../../include/QtGui -I../../../include -I. -I. -o main.o main.cpp
    7. In file included from main.cpp:43:
    8. mainwindow.h:46:18: error: Phonon: No such file or directory
    9. mainwindow.h:47:30: error: Phonon/AudioOutput: No such file or directory
    10. mainwindow.h:48:29: error: Phonon/SeekSlider: No such file or directory
    11. mainwindow.h:49:30: error: Phonon/MediaObject: No such file or directory
    12. mainwindow.h:50:31: error: Phonon/VolumeSlider: No such file or directory
    13. mainwindow.h:51:38: error: Phonon/BackendCapabilities: No such file or directory
    14. In file included from main.cpp:43:
    15. mainwindow.h:78: error: âPhononâ has not been declared
    16. mainwindow.h:78: error: expected â,â or â...â before ânewStateâ
    17. mainwindow.h:80: error: expected â,â or â...â before â::â token
    18. mainwindow.h:80: error: ISO C++ forbids declaration of âPhononâ with no type
    19. mainwindow.h:81: error: âPhononâ has not been declared
    20. mainwindow.h:81: error: expected â,â or â...â before ânewStateâ
    21. mainwindow.h:92: error: âPhononâ has not been declared
    22. mainwindow.h:92: error: ISO C++ forbids declaration of âSeekSliderâ with no type
    23. mainwindow.h:92: error: expected â;â before â*â token
    24. mainwindow.h:93: error: âPhononâ has not been declared
    25. mainwindow.h:93: error: ISO C++ forbids declaration of âMediaObjectâ with no type
    26. mainwindow.h:93: error: expected â;â before â*â token
    27. mainwindow.h:94: error: âPhononâ has not been declared
    28. mainwindow.h:94: error: ISO C++ forbids declaration of âMediaObjectâ with no type
    29. mainwindow.h:94: error: expected â;â before â*â token
    30. mainwindow.h:95: error: âPhononâ has not been declared
    31. mainwindow.h:95: error: ISO C++ forbids declaration of âAudioOutputâ with no type
    32. mainwindow.h:95: error: expected â;â before â*â token
    33. mainwindow.h:96: error: âPhononâ has not been declared
    34. mainwindow.h:96: error: ISO C++ forbids declaration of âVolumeSliderâ with no type
    35. mainwindow.h:96: error: expected â;â before â*â token
    36. mainwindow.h:97: error: âPhononâ was not declared in this scope
    37. mainwindow.h:97: error: template argument 1 is invalid
    38. make: *** [main.o] Error 1
    39. [root@localhost musicplayer]# ls
    40. main.cpp mainwindow.cpp mainwindow.h Makefile musicplayer musicplayer.debug musicplayer.pro
    41. [root@localhost musicplayer]#
    To copy to clipboard, switch view to plain text mode 

    Kindly help me what i should do..

    Thnaks,
    Balaji.S.R

  16. #15
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    You should have NOT run "qmake -project". The example already had a properly working .pro file. Restore the original .pro file from the tarball and leave out the "qmake -project" step this time.
    J-P Nurmi

  17. #16
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    How to restore the original .pro file from the tarball?

    How to run phonon on Qt examples?
    Last edited by balajir; 28th July 2009 at 12:12.

  18. #17
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Quote Originally Posted by balajir View Post
    How to restore the original .pro file from the tarball?
    Or you just add
    Qt += phonon
    in your .pro file.

    Quote Originally Posted by balajir View Post
    How to run phonon on Qt examples?
    run ??

    If you want to add phonon module, just add above line.

  19. #18
    Join Date
    Jul 2009
    Posts
    22
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Even basic examples are not running properly(not phonon)

    .pro is already created in QT examples..

    I just did

    qmake application.pro
    qmake
    ./application

    But when i give ./application to run, it throws an error that

    "Cannot connect to the X server"

    Kindly help me..

    Balaji.S.R

  20. #19
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Why 2 times, you are calling "qmake" ?
    "qmake" never builds your project.
    Would have called "make".
    Please, refer QtAssistant, I think you require some basics.

  21. #20
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to install phonon on qtx11-4.5.2 in linux..?

    Quote Originally Posted by balajir View Post
    "Cannot connect to the X server"
    This means you are not using qmake from Qt/X11 4.5.2 as you claim, but from Qt for Embedded Linux. What does "qmake -v" output?
    J-P Nurmi

Similar Threads

  1. Replies: 4
    Last Post: 1st April 2009, 17:28
  2. Replies: 3
    Last Post: 13th December 2008, 11:33
  3. How to install Qt/Qtopia on embeded linux?
    By atil in forum Qt for Embedded and Mobile
    Replies: 7
    Last Post: 13th December 2007, 23:03
  4. Error install at linux red hat
    By Colx007 in forum Installation and Deployment
    Replies: 2
    Last Post: 8th October 2007, 17:47
  5. Cannot Install KDEdevel packages on linux
    By wirajr in forum KDE Forum
    Replies: 12
    Last Post: 5th February 2006, 22:01

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.