Results 1 to 2 of 2

Thread: How to use phonon on Ubuntu

  1. #1
    Join Date
    Jul 2012
    Posts
    53
    Thanks
    16
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to use phonon on Ubuntu

    I'm using Ubuntu 10.4 to compile my project. Since the installed Qt is 4.6, I reinstalled Qt 4.8. But when I try to compile my program, it gives me the error "cannot find 'phonon' no such file or directory".

    The steps I did are:
    1. Dowload "Qt libraries 4.8.4 for Linux/X11 (225 MB)" fromhttp://qt-project.org/downloads
    2. Decompress the package and run "./configure" in the directory.
    3. Run "make" and then run "sudo make install", Qt 4.8 is installed into "/usr/local/Trolltech". I checked the new installed "lib" folder but there's no "phonon" inside.
    4. Use "sudo apt-get install libphonon-dev phonon-backend-gstreamer" to install the phonon libraries.
    5. Going to my project, make sure the .pro file contains "QT += phonon" and compile the program.

    The problem is when I use the 4.6 qamke (in /usr/share/) to compile, there's no phonon missing error.
    But when I use 4.8, the error raises.

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to use phonon on Ubuntu

    You are obvioulsy missing some build dependencies for Phonon, so configure detects that it can't build Phonon and skips it.

    Try installing the GStreamer development packages before running configure.

    apt-get build-dep phonon-backend-gstreamer

    might do the correct thing.

    Cheers,
    _

Similar Threads

  1. Qt on Ubuntu 10.04 from Ubuntu packages?
    By teele in forum Installation and Deployment
    Replies: 5
    Last Post: 28th March 2012, 09:41
  2. Phonon endless stream - any phonon expert out there?
    By derektmm in forum Qt Programming
    Replies: 1
    Last Post: 23rd September 2011, 17:11
  3. Phonon error Disconnected: OK on Ubuntu 9.10
    By IanC in forum Qt Programming
    Replies: 0
    Last Post: 18th August 2010, 02:28
  4. Ubuntu 10.04 and Qt 4.62
    By fulin in forum Newbie
    Replies: 2
    Last Post: 25th May 2010, 17:42
  5. phonon does't work fine in debian/kubuntu/ubuntu
    By skhaz in forum Qt Programming
    Replies: 2
    Last Post: 9th February 2009, 14:01

Tags for this Thread

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.