Incorrect Phonon location when used with Qt4 and CMake

Bug #893170 reported by Félix C. Morency on 2011-11-21
This bug affects 2 people
Affects Status Importance Assigned to Milestone
phonon (Ubuntu)

Bug Description

Ubuntu 11.10-64

CMake FindQt4 module is unable to find phonon.

The CMake module tries to find phonon in the Qt4 library path


while phonon is located in


The CMake NO_DEFAULT_PATH parameter is given while looking for the phonon library and therefore the FindQt4 module never search in /usr/lib.

Related branches

Félix C. Morency (colibry10) wrote :
description: updated
tags: added: phonon
tags: added: cmake qt4
description: updated
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in phonon (Ubuntu):
status: New → Confirmed
Alan Boudreault (aboudreault) wrote :

I confirm the issue here to. Fresh installation of Kubuntu 11.10 with libphonon-dev and libqt4-dev installed.

Jonathan Riddell (jr) wrote :

Ubuntu uses the independently released phonon library rather than the version included with Qt. So using FindQt4 to find phonon is probably incorrect. I recommend using FindPhonon.cmake which is part of kdelibs5-dev

Félix C. Morency (colibry10) wrote :

I tested your solution and it is not portable to Windows. Version number and Debug/Release dll subtleties are not taken into account in the FindPhonon script (but they are in the FindQt4 script).

André Caron (andre-l-caron) wrote :


Phonon is in integral part of the Qt [1]. The CMakeLists provided by Félix works fine on Debian with libqt4-dev[2] and libqt4-phonon[3] packages. It also works on Arch linux and with both the latest pre-built and from-source Qt4 packages for Windows.

FindQt4 is a reliable way to find Phonon for Qt4 applications except on Ubuntu. Given where it is maintained (KDE), I doubt the FindPhonon script [4] will ever get Windows support. We can rely on much better support from FindQt4 given that it's part of CMake itself.

Seems to me like this is a problem with the way Ubuntu distributes Phonon.


Launchpad Janitor (janitor) wrote :

This bug was fixed in the package phonon - 4:4.7.0really4.5.1-0ubuntu2

phonon (4:4.7.0really4.5.1-0ubuntu2) precise; urgency=low

  * Build for multiarch. (LP: #893170)
    - Switch to debhelper compat level v9.
    - Change phonon to arch:any and multi-arch:same.
    - Update no_rpath.patch to include multiarch lib paths.
    - Fix debconf prompt to cope with multi-arch:same phonon package.
  * Drop libphonon4-designer transitional package, it's not needed anymore.
 -- Felix Geyer <email address hidden> Thu, 15 Dec 2011 21:40:54 +0100

Changed in phonon (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers