[Karmic] Phonon includes NOT found!

Bug #386742 reported by FriedChicken
72
This bug affects 13 people
Affects Status Importance Assigned to Milestone
cmake (Ubuntu)
Invalid
Undecided
Unassigned
Declined for Karmic by C de-Avillez
phonon (Ubuntu)
Won't Fix
Undecided
Unassigned
Declined for Karmic by C de-Avillez

Bug Description

On trying to cmake digiKam or BaKet (trunk):

[...]
-- Phonon includes NOT found!
CMake Error at /usr/share/kde4/apps/cmake/modules/FindPhonon.cmake:63 (message):
  Phonon library or includes NOT found!
Call Stack (most recent call first):
  /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:553 (find_package)
  /usr/share/cmake-2.6/Modules/FindKDE4.cmake:81 (FIND_PACKAGE)
  CMakeLists.txt:37 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!

libphonon-dev, libphonon4, libqt4-phonon, libqt4-phonon-dev, libqtscript4-phonon, phonon, phonon-backend-gstreamer, phonon-backend-xine and python-qt4-phonon are installed.

FriedChicken (domlyons)
description: updated
Revision history for this message
FriedChicken (domlyons) wrote :

This also happens on trying building the original Karmic package of digiKam with dpkg-buildpackage. So it's defintitely a cmake- or phonon-problem.

tags: removed: basket digikam
Revision history for this message
Castalia (castalia) wrote :

The Phonon includes are also not found in the Qt4 phonon examples (/usr/lib/qt4/examples/phonon) build. There is a /usr/include/qt4/phonon link to /usr/include/phonon, but the source code is not looking for these. I found the required included files in /usr/include/KDE/Phonon, so by providing a /usr/include/qt4/Phonon (note capitalization) to this directory satisfied the Qt4 phonon examples build.

Revision history for this message
Mentis (mentis-by) wrote :

I can confirm this. I updated to karmic and cant compile amarok from source now =(

CMake Error at /usr/share/kde4/apps/cmake/modules/FindPhonon.cmake:63 (message):
  Phonon library or includes NOT found!
Call Stack (most recent call first):
  /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:553 (find_package)
  /usr/share/cmake-2.6/Modules/FindKDE4.cmake:81 (FIND_PACKAGE)
  CMakeLists.txt:48 (find_package)

Revision history for this message
Paul (paulestebanms) wrote :

I got the same error trying to compile KOffice (It worked in Jaunty but now I have problems to build with karmic):

-- Found Qt-Version 4.5.2 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- Phonon includes NOT found!
CMake Error at /usr/share/kde4/apps/cmake/modules/FindPhonon.cmake:63 (message):
  Phonon library or includes NOT found!
Call Stack (most recent call first):
  /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:553 (find_package)
  /usr/share/cmake-2.6/Modules/FindKDE4.cmake:81 (FIND_PACKAGE)
  CMakeLists.txt:77 (find_package)

Revision history for this message
kalyan (kallu-be) wrote :

Got this error when compiling bespin theme.

-- Found Qt-Version 4.5.2 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- Unable to find Phonon
-- KDE4 not found, because Phonon was not found
-- Found X11: /usr/lib/libX11.so
-- WARNING: *** KDE4 not found, just the style will be built ***
-- INFO: XRender was found - kwin deco & FX via GPU available!
-- Configuring done
-- Generating done

Revision history for this message
Mentis (mentis-by) wrote :

Maybe somebody now workaround?

Revision history for this message
kalyan (kallu-be) wrote :

Try reinstalling libqt4-phonon-dev, it worked for me.

Revision history for this message
Mentis (mentis-by) wrote :

Reinstalling libqt4-phonon-dev helped! Thx!

Revision history for this message
BongoMan (pascal-bongosoft) wrote :

I ran into the same issue while compiling a qt4 app and reinstalling libqt4-phonon-dev did the trick here too :)

Revision history for this message
SKAL (sir-kalot) wrote :

kalyan (#7) is right! reinstalling it helped me with the same problem...
if you want check http://kde-apps.org/content/show.php?content=107645

Leo

Revision history for this message
confiq (confiq) wrote :

yeah... reinstalling did the trick too here :)
thanks for a tip

Revision history for this message
hipitihop (denis-johnson) wrote :

I think I'm having a related problem and removing and re-installing hasn't helped me, see bellow:

-- Found Portaudio: /usr/lib/libportaudio.so
-- Found ZLIB: /usr/lib/libz.so
-- Found Qt-Version 4.5.2 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
CMake Error at /usr/share/kde4/apps/cmake/modules/FindPhonon.cmake:19 (file):
  file Internal CMake error when trying to open file:
  /usr/include/phonon/phononnamespace.h for reading.
Call Stack (most recent call first):
  /usr/share/kde4/apps/cmake/modules/FindPhonon.cmake:45 (_phonon_find_version)
  /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:559 (find_package)
  /usr/share/cmake-2.6/Modules/FindKDE4.cmake:81 (FIND_PACKAGE)
  CMakeLists.txt:277 (find_package)

-- Found KDE 4.3 include dir: /usr/include
-- Found KDE 4.3 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found Portaudio: /usr/lib/libportaudio.so
-- Found Portaudio: /usr/lib/libportaudio.so
-- Found Portaudio: /usr/lib/libportaudio.so
-- Configuring incomplete, errors occurred!
-- Found Portaudio: /usr/lib/libportaudio.so
-- Found ZLIB: /usr/lib/libz.so
-- Found Qt-Version 4.5.2 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
CMake Error at /usr/share/kde4/apps/cmake/modules/FindPhonon.cmake:19 (file):
  file Internal CMake error when trying to open file:
  /usr/include/phonon/phononnamespace.h for reading.
Call Stack (most recent call first):
  /usr/share/kde4/apps/cmake/modules/FindPhonon.cmake:45 (_phonon_find_version)
  /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:559 (find_package)
  /usr/share/cmake-2.6/Modules/FindKDE4.cmake:81 (FIND_PACKAGE)
  CMakeLists.txt:277 (find_package)

-- Found KDE 4.3 include dir: /usr/include
-- Found KDE 4.3 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found Portaudio: /usr/lib/libportaudio.so
-- Found Portaudio: /usr/lib/libportaudio.so
-- Found Portaudio: /usr/lib/libportaudio.so
-- Configuring incomplete, errors occurred!
make: *** [cmake_check_build_system] Error 1

Revision history for this message
Daniel Duan (daniel-duan) wrote :

Same problem here! Reinstalling libqt4-phonon-dev didn't help.

Revision history for this message
Tatu Lahtela (lahtela) wrote :

cmake for kdelibs svn trunk also fails because of this. It seems that is looks for the phonon includes from /usr/include/phonon, when in fact they are in /usr/include/qt4/phonon. Symlinking it to /usr/include will make cmake pass, but the compilation of kdebase then fails.

Revision history for this message
burned (burned) wrote :

reinstalling libqt4-phonon-dev helped here too!
thx

Revision history for this message
kioftes (thstyl2000) wrote :

Same here! Reinstallation of libqt4-phonon-dev did not help....here's the error:

CMake Error at /usr/share/kde4/apps/cmake/modules/FindPhonon.cmake:19 (file):
  file Internal CMake error when trying to open file:
  /usr/include/phonon/phononnamespace.h for reading.
Call Stack (most recent call first):
  /usr/share/kde4/apps/cmake/modules/FindPhonon.cmake:45 (_phonon_find_version)
  /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:559 (find_package)

Revision history for this message
Juan de la Figuera (juan-delafiguera) wrote :

Trying to compile toggle-compositing plasma widget. Reinstalling libqt4-phonon-dev worked like a charm.

Juan

Revision history for this message
christopher pijarski (kpijarski) wrote :

I had exactly the same problem when trying to compile digikam from source - reinstalling libqt4-phonon-dev worked perfectly! Thanks!

Revision history for this message
POG (pierreolivier-gaillard) wrote :

I had the same issue and I noted that phonon seems to have moved.
My setup (Karmic upgraded from Jaunty) is looking for:
  /usr/include/phonon/phononnamespace.h
But I only have:
/usr/include/qt4/Qt/phononnamespace.h
/usr/include/qt4/phonon/phononnamespace.h

I symlinked from the 2nd to what I needed an cmake .. completed for Basket.

I suppose the packages have a mistake or maybe some configuration got saved with Jaunty and it has become wrong with Karmic.

Revision history for this message
Christophe Olinger (olingerc) wrote :

-- Found Automoc4: /home/christophe/kde/bin/automoc4
-- Found Perl: /usr/bin/perl
-- Building kdelibs...
-- Phonon includes NOT found!
CMake Error at cmake/modules/FindPhonon.cmake:63 (message):
  Phonon library or includes NOT found!
Call Stack (most recent call first):
  cmake/modules/FindKDE4Internal.cmake:603 (find_package)
  CMakeLists.txt:36 (find_package)

-- Configuring incomplete, errors occurred!

I then reinstalled libqt4-phonon-dev and still get the same error? Did u do remove or purge?

Revision history for this message
kmkz2 (pgrahl) wrote :

Removing and reinstalling libqt4-phonon-dev worked for me.
Note that when removing libqt4-phonon-dev, apt-get also removed kdelibs5-dev and libphonon-dev, so I had to reinstall both again. The cmake worked fine.

Revision history for this message
Jeff Trull (jetrull) wrote :

This continues to be a problem. I discovered it while trying to compile the Akonadi resource template generated by kdevelop. To resolve the problem I followed the instructions here:

http://mail.kde.org/pipermail/digikam-users/2009-November.txt

(search for "Phonon library or includes")

Changed in phonon (Ubuntu):
status: New → Confirmed
Revision history for this message
Blackpaw (blackpaw) wrote :

Same problem when trying to build kdevelop from trunk. I had to symlink "/usr/incldue/qt4/phonon" => "/usr/incldue/phonon" to work around it. That allowed me to configure and compile.

Kubuntu 9.10 with the kde 4.4rc1

kde4-config --version
Qt: 4.6.0
KDE Development Platform: 4.3.90 (KDE 4.3.90 (KDE 4.4 RC1))
kde4-config: 1.0

Revision history for this message
Alexander Kabakow (alexzak) wrote :

Same problem when trying to compile krusader from trunk.

Comment #7 works as workaround.

Revision history for this message
Bill Kearney (wkearney99) wrote :

What worked for me was to completely remove the libphonon4 package and then reinstall the phonon. libphonon-dev, libqt4-phonon and libqt4-phonon-dev packages. Didn't dig into it further. Doing this allowed me to get the latest ktorrent version to build on karmic.

Revision history for this message
Craig Magina (craig.magina) wrote :

This is still present in a fully updated Lucid install. The problem lies with who sets this cmake variable: ${PHONON_INCLUDE_DIR}. I'm not very familiar with cmake, so not really sure where that is and with some limited searching didn't find it. If you add this define to your cmake build, you can get past it without having to create a link or re-install anything: -DPHONON_INCLUDE_DIR=/usr/include/qt4

C de-Avillez (hggdh2)
Changed in cmake (Ubuntu):
status: New → Invalid
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Karmic is no longer supported. This should not be an issue in fresh installs of newer releases.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.