[0e25c32] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[632bfad] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
[0e25c32] | 5 | %general-entities;
|
---|
| 6 |
|
---|
[5bebacd] | 7 | <!ENTITY phonon-download-http "&kde-download-http;phonon/&phonon-version;/src/phonon-&phonon-version;.tar.xz">
|
---|
| 8 | <!ENTITY phonon-download-ftp "&kde-download-ftp;phonon/&phonon-version;/src/phonon-&phonon-version;.tar.xz">
|
---|
| 9 | <!ENTITY phonon-md5sum "88bb9867261803eed61ff53a7c026338">
|
---|
[a911ae7] | 10 | <!ENTITY phonon-size "316 KB">
|
---|
[5bebacd] | 11 | <!ENTITY phonon-buildsize "11.7 MB">
|
---|
[a911ae7] | 12 | <!ENTITY phonon-time "0.4 SBU">
|
---|
[0e25c32] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="phonon" xreflabel="phonon-&phonon-version;">
|
---|
| 16 | <?dbhtml filename="phonon.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Phonon-&phonon-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="phonon">
|
---|
| 26 | <primary sortas="a-phonon">phonon</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Phonon</title>
|
---|
| 31 |
|
---|
[632bfad] | 32 | <para><application>Phonon</application> is the multimedia API for KDE.
|
---|
[8e6f4f8] | 33 | It replaces the old <application>aRts</application> package.
|
---|
| 34 | Phonon needs either the GStreamer or VLC backend.</para>
|
---|
[0e25c32] | 35 |
|
---|
[f7a3a19] | 36 | &lfs78_checked;
|
---|
[0e25c32] | 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&phonon-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&phonon-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &phonon-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &phonon-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &phonon-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &phonon-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
| 60 | <bridgehead renderas="sect3">Phonon Dependencies</bridgehead>
|
---|
| 61 |
|
---|
| 62 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 63 | <para role="required">
|
---|
[d591de4] | 64 | <xref linkend="cmake"/>,
|
---|
[8e6f4f8] | 65 | <xref linkend="glib2"/>, and
|
---|
[632bfad] | 66 | <xref linkend="qt4"/> or <xref linkend="qt5"/>
|
---|
[0e25c32] | 67 | </para>
|
---|
| 68 |
|
---|
| 69 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 70 | <para role="optional">
|
---|
[8e6f4f8] | 71 | <xref linkend="pulseaudio"/> and
|
---|
[ba1e8dd] | 72 | <ulink url="http://projects.kde.org/projects/kdesupport/libqzeitgeist/">QZeitgeist</ulink>
|
---|
[0d7900a] | 73 | </para>
|
---|
| 74 |
|
---|
[0e25c32] | 75 | <para condition="html" role="usernotes">User Notes:
|
---|
| 76 | <ulink url="&blfs-wiki;/phonon"/></para>
|
---|
| 77 |
|
---|
| 78 | </sect2>
|
---|
| 79 |
|
---|
| 80 | <sect2 role="installation">
|
---|
| 81 | <title>Installation of Phonon</title>
|
---|
| 82 |
|
---|
[632bfad] | 83 | <para>The <application>Phonon</application> libraries are used by both KDE4
|
---|
| 84 | and KF5, but they must be linked to <xref linkend="qt4"/> and <xref
|
---|
[57a6033] | 85 | linkend="qt5"/> respectively. The two versions do not conflict with each
|
---|
[632bfad] | 86 | other.</para>
|
---|
[0d7900a] | 87 |
|
---|
[632bfad] | 88 | <para>If building for KDE4, make sure <xref linkend="qt4"/> has been built
|
---|
| 89 | without the bundled <application>Phonon</application> library. This package
|
---|
| 90 | provides a better implementation.</para>
|
---|
[8e6f4f8] | 91 |
|
---|
[632bfad] | 92 | <para>Install the qt4 based version of <application>Phonon</application> by
|
---|
| 93 | running the following commands:</para>
|
---|
[0e25c32] | 94 |
|
---|
[632bfad] | 95 | <screen><userinput>source /usr/bin/setqt4 &&
|
---|
| 96 |
|
---|
| 97 | sed -i "s:BSD_SOURCE:DEFAULT_SOURCE:g" cmake/FindPhononInternal.cmake &&
|
---|
[8e6f4f8] | 98 |
|
---|
| 99 | mkdir build &&
|
---|
[18c9ee54] | 100 | cd build &&
|
---|
| 101 |
|
---|
[632bfad] | 102 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
[a911ae7] | 103 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 104 | -DCMAKE_INSTALL_LIBDIR=lib \
|
---|
| 105 | -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=FALSE \
|
---|
[3ddb430] | 106 | -DDBUS_INTERFACES_INSTALL_DIR=/usr/share/dbus-1/interfaces \
|
---|
[97c713e] | 107 | -Wno-dev .. &&
|
---|
[0e25c32] | 108 | make</userinput></screen>
|
---|
| 109 |
|
---|
| 110 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 111 |
|
---|
[632bfad] | 112 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 113 |
|
---|
| 114 | <para>Install qt5 based version of<application>Phonon</application> by
|
---|
| 115 | running the following commands:</para>
|
---|
| 116 |
|
---|
| 117 | <note><para>If the extracted files of the package are still present from a
|
---|
| 118 | qt4 version of the build, be sure to remove it and extract a fresh copy of
|
---|
| 119 | the source files.</para></note>
|
---|
| 120 |
|
---|
| 121 | <screen><userinput>source /usr/bin/setqt5 &&
|
---|
| 122 |
|
---|
| 123 | sed -i "s:BSD_SOURCE:DEFAULT_SOURCE:g" cmake/FindPhononInternal.cmake &&
|
---|
| 124 |
|
---|
| 125 | mkdir build &&
|
---|
| 126 | cd build &&
|
---|
| 127 |
|
---|
| 128 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 129 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 130 | -DCMAKE_INSTALL_LIBDIR=lib \
|
---|
[5cbfaba] | 131 | -DPHONON_BUILD_PHONON4QT5=ON \
|
---|
[632bfad] | 132 | -D__KDE_HAVE_GCC_VISIBILITY=NO \
|
---|
| 133 | -Wno-dev .. &&
|
---|
| 134 | make</userinput></screen>
|
---|
| 135 |
|
---|
| 136 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 137 |
|
---|
[0e25c32] | 138 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 139 |
|
---|
[a1dcfe0] | 140 | </sect2>
|
---|
| 141 |
|
---|
| 142 | <sect2 role="commands">
|
---|
| 143 | <title>Command Explanations</title>
|
---|
| 144 |
|
---|
[8e6f4f8] | 145 | <para>
|
---|
| 146 | <command>sed ... cmake/FindPhononInternal.cmake</command>: Silence
|
---|
| 147 | a lot of warnings caused by the latest toolchain.
|
---|
| 148 | </para>
|
---|
| 149 |
|
---|
[ba1e8dd] | 150 | <para>
|
---|
| 151 | <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used
|
---|
| 152 | to apply higher level of the compiler optimizations.
|
---|
| 153 | </para>
|
---|
| 154 |
|
---|
| 155 | <para>
|
---|
[8309bf4] | 156 | <parameter>-DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=FALSE</parameter>:
|
---|
[ba1e8dd] | 157 | This switch ensures that the plugins and mkspecs files get installed in
|
---|
| 158 | the correct location.
|
---|
| 159 | </para>
|
---|
[b4cc9a3] | 160 |
|
---|
[ba1e8dd] | 161 | <para>
|
---|
| 162 | <parameter>-DDBUS_INTERFACES_INSTALL_DIR=/usr/share/dbus-1/interfaces</parameter>:
|
---|
[f3429309] | 163 | This switch sets the correct installation path for the
|
---|
[ba1e8dd] | 164 | <application>D-Bus</application> interfaces file.
|
---|
| 165 | </para>
|
---|
[a1dcfe0] | 166 |
|
---|
[632bfad] | 167 | <para>
|
---|
[f3429309] | 168 | <parameter>-DPHONON_BUILD_PHONON4QT5=ON</parameter>: This switch is used to
|
---|
| 169 | ensure that Qt5 version of the library is built even if Qt4 is present.
|
---|
[632bfad] | 170 | </para>
|
---|
| 171 |
|
---|
| 172 | <para>
|
---|
[f3429309] | 173 | <parameter>-D__KDE_HAVE_GCC_VISIBILITY=NO</parameter>: This switch is used to
|
---|
[632bfad] | 174 | disable a check that would cause cmake to fail when using Qt-5.4.2
|
---|
| 175 | and later.
|
---|
| 176 | </para>
|
---|
| 177 |
|
---|
[a1dcfe0] | 178 | </sect2>
|
---|
| 179 |
|
---|
[0e25c32] | 180 | <sect2 role="content">
|
---|
| 181 | <title>Contents</title>
|
---|
| 182 |
|
---|
| 183 | <segmentedlist>
|
---|
[ad41452] | 184 | <segtitle>Installed Programs</segtitle>
|
---|
[0e25c32] | 185 | <segtitle>Installed Libraries</segtitle>
|
---|
[ad41452] | 186 | <segtitle>Installed Directories</segtitle>
|
---|
[0e25c32] | 187 |
|
---|
| 188 | <seglistitem>
|
---|
[ba1e8dd] | 189 | <seg>
|
---|
| 190 | None
|
---|
| 191 | </seg>
|
---|
| 192 | <seg>
|
---|
[632bfad] | 193 | libphonon.so,
|
---|
| 194 | libphonon4qt5.so
|
---|
| 195 | libphononexperimental.so, and
|
---|
| 196 | libphonon4qt5experimental.so
|
---|
[ba1e8dd] | 197 | </seg>
|
---|
| 198 | <seg>
|
---|
[632bfad] | 199 | /usr/include/KDE/Phonon,
|
---|
| 200 | /usr/include/phonon,
|
---|
| 201 | /usr/include/phonon4qt5,
|
---|
| 202 | /usr/lib/cmake/phonon,
|
---|
| 203 | /usr/lib/cmake/phonon4qt5,
|
---|
[f3429309] | 204 | /usr/share/phonon. amd
|
---|
[632bfad] | 205 | /usr/share/phonon4qt5
|
---|
[ba1e8dd] | 206 | </seg>
|
---|
[0e25c32] | 207 | </seglistitem>
|
---|
| 208 | </segmentedlist>
|
---|
[b4cc9a3] | 209 |
|
---|
[0e25c32] | 210 | </sect2>
|
---|
| 211 |
|
---|
| 212 | </sect1>
|
---|