Phonon is the multimedia API for KDE. It replaces the old aRts package. Phonon needs either the GStreamer or VLC backend.
This package is known to build and work properly using an LFS-7.9 platform.
Download (HTTP): http://download.kde.org/stable/phonon/4.8.3/src/phonon-4.8.3.tar.xz
Download (FTP): ftp://ftp.kde.org/pub/kde/stable/phonon/4.8.3/src/phonon-4.8.3.tar.xz
Download MD5 sum: 88bb9867261803eed61ff53a7c026338
Download size: 316 KB
Estimated disk space required: 11.7 MB
Estimated build time: 0.4 SBU
CMake-3.4.3, GLib-2.46.2, and Qt-4.8.7 or Qt-5.5.1
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/phonon
The Phonon libraries are used by both KDE4 and KF5, but they must be linked to Qt-4.8.7 and Qt-5.5.1 respectively. The two versions do not conflict with each other.
If building for KDE4, make sure Qt-4.8.7 has been built without the bundled Phonon library. This package provides a better implementation.
Install the qt4 based version of Phonon by running the following commands:
source /usr/bin/setqt4 && sed -i "s:BSD_SOURCE:DEFAULT_SOURCE:g" cmake/FindPhononInternal.cmake && mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_LIBDIR=lib \ -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=FALSE \ -DDBUS_INTERFACES_INSTALL_DIR=/usr/share/dbus-1/interfaces \ -Wno-dev .. && make
Now, as the root
user:
make install
Install qt5 based version ofPhonon by running the following commands:
If the extracted files of the package are still present from a qt4 version of the build, be sure to remove it and extract a fresh copy of the source files.
source /usr/bin/setqt5 && sed -i "s:BSD_SOURCE:DEFAULT_SOURCE:g" cmake/FindPhononInternal.cmake && mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_LIBDIR=lib \ -DPHONON_BUILD_PHONON4QT5=ON \ -D__KDE_HAVE_GCC_VISIBILITY=NO \ -Wno-dev .. && make
Now, as the root
user:
make install
sed ... cmake/FindPhononInternal.cmake: Silence a lot of warnings caused by the latest toolchain.
-DCMAKE_BUILD_TYPE=Release
:
This switch is used to apply higher level of the compiler
optimizations.
-DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=FALSE
:
This switch ensures that the plugins and mkspecs files get
installed in the correct location.
-DDBUS_INTERFACES_INSTALL_DIR=/usr/share/dbus-1/interfaces
:
This switch sets the correct installation path for the D-Bus interfaces file.
-DPHONON_BUILD_PHONON4QT5=ON
: This
switch is used to ensure that Qt5 version of the library is built
even if Qt4 is present.
-D__KDE_HAVE_GCC_VISIBILITY=NO
: This
switch is used to disable a check that would cause cmake to fail
when using Qt-5.4.2 and later.
Last updated on 2016-02-24 19:22:02 -0800