Phonon-4.8.3

Introduction to Phonon

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.

Package Information

Phonon Dependencies

Required

CMake-3.4.3, GLib-2.46.2, and Qt-4.8.7 or Qt-5.5.1

Optional

PulseAudio-8.0 and QZeitgeist

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/phonon

Installation of 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:

[Note]

Note

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

Command Explanations

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.

Contents

Installed Programs: None
Installed Libraries: libphonon.so, libphonon4qt5.so libphononexperimental.so, and libphonon4qt5experimental.so
Installed Directories: /usr/include/KDE/Phonon, /usr/include/phonon, /usr/include/phonon4qt5, /usr/lib/cmake/phonon, /usr/lib/cmake/phonon4qt5, /usr/share/phonon. amd /usr/share/phonon4qt5

Last updated on 2016-02-24 19:22:02 -0800