Results 1 to 2 of 2

Thread: How to use phonon on Ubuntu

  1. #1
    Join Date
    Jul 2012
    Thanked 1 Time in 1 Post
    Qt products
    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)" from
    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
    Graz, Austria
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    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.


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, 08:41
  2. Phonon endless stream - any phonon expert out there?
    By derektmm in forum Qt Programming
    Replies: 1
    Last Post: 23rd September 2011, 16:11
  3. Phonon error Disconnected: OK on Ubuntu 9.10
    By IanC in forum Qt Programming
    Replies: 0
    Last Post: 18th August 2010, 01:28
  4. Ubuntu 10.04 and Qt 4.62
    By fulin in forum Newbie
    Replies: 2
    Last Post: 25th May 2010, 16:42
  5. phonon does't work fine in debian/kubuntu/ubuntu
    By skhaz in forum Qt Programming
    Replies: 2
    Last Post: 9th February 2009, 13:01

Tags for this Thread


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.