- I'm running Kubuntu Karmic, that's the KDE Ubuntu 9.10
- I pulled the latest Choqok on Gitorious which is where I hit my issue.
The concepts will likely work elsewhere, but not within the nice packages provided in aptitude. The Problem
~/Code/choqok/build$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` .. -- 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:559 (find_package) /usr/share/cmake-2.6/Modules/FindKDE4.cmake:81 (FIND_PACKAGE) CMakeLists.txt:3 (find_package) -- Configuring incomplete, errors occurred!
Short Fix Use aptitude
~/Code/choqok/build$ sudo aptitude reinstall libqt4-phonon-dev Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Writing extended state information... Done The following packages will be REINSTALLED: libqt4-phonon-dev 0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 0B/57.7kB of archives. After unpacking 3,441kB will be freed. Do you want to continue? [Y/n/?] y Writing extended state information... Done (Reading database ... 264392 files and directories currently installed.) Processing triggers for man-db ... Processing triggers for desktop-file-utils ... Processing triggers for hicolor-icon-theme ... (Reading database ... 264183 files and directories currently installed.) Preparing to replace libqt4-phonon-dev 4.5.3really4.5.2-0ubuntu1 (using .../libqt4-phonon-dev_4.5.3really4.5.2-0ubuntu1_i386.deb) ... Unpacking replacement libqt4-phonon-dev ... Setting up libqt4-phonon-dev (4.5.3really4.5.2-0ubuntu1) ... Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Writing extended state information... Done
Long Fix Use apt-get
~/Code/choqok/build$ sudo apt-get remove libqt4-phonon-dev Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: kdelibs5-dev libphonon-dev libqt4-phonon-dev 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded. After this operation, 13.6MB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 264392 files and directories currently installed.) Removing kdelibs5-dev ... Removing libphonon-dev ... Removing libqt4-phonon-dev ... Processing triggers for man-db ...
Now, reinstall the libraries that were uninstalled.
~/Code/choqok/build$ sudo apt-get install kdelibs5-dev libphonon-dev libqt4-phonon-dev Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: kdelibs5-dev libphonon-dev libqt4-phonon-dev 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/1,229kB of archives. After this operation, 13.6MB of additional disk space will be used. Selecting previously deselected package libqt4-phonon-dev. (Reading database ... 262408 files and directories currently installed.) Unpacking libqt4-phonon-dev (from .../libqt4-phonon-dev_4.5.3really4.5.2-0ubuntu1_i386.deb) ... Selecting previously deselected package kdelibs5-dev. Unpacking kdelibs5-dev (from .../kdelibs5-dev_4%3a4.3.2-0ubuntu7.2_i386.deb) ... Selecting previously deselected package libphonon-dev. Unpacking libphonon-dev (from .../libphonon-dev_4%3a4.3.1-4ubuntu1_i386.deb) ... Processing triggers for man-db ... Setting up libqt4-phonon-dev (4.5.3really4.5.2-0ubuntu1) ... Setting up kdelibs5-dev (4:4.3.2-0ubuntu7.2) ... Setting up libphonon-dev (4:4.3.1-4ubuntu1) ...
Fin
The basic idea here was to reinstall the libqt4-phonon-dev library. This made it so that the include files were back in place and I could compile source code. Now, you should be able to continue compiling your phonon based source. In this case, as stated above, I was compiling Choqok. But, I doubt this issue is relegated solely to Choqok compilations. I just haven't yet had the opportunity to compile other KDE4 based apps on Karmic Kubuntu.



0 Comments