mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-26 08:42:12 +08:00
5cbfabab79
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16228 af4574ff-66df-0310-9fd7-8a98e5e911e0
183 lines
5.9 KiB
XML
183 lines
5.9 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY libdbusmenu-qt-download-http "http://anduin.linuxfromscratch.org/sources/other/libdbusmenu-qt-&libdbusmenu-qt-version;.tar.xz">
|
|
<!ENTITY libdbusmenu-qt-download-ftp " ">
|
|
<!ENTITY libdbusmenu-qt-md5sum "d21a1f5569e0bc9c9245b4f71761c62f">
|
|
<!ENTITY libdbusmenu-qt-size "40 KB">
|
|
<!ENTITY libdbusmenu-qt-buildsize "2.6 MB">
|
|
<!ENTITY libdbusmenu-qt-time "0.2 SBU">
|
|
]>
|
|
|
|
<sect1 id="libdbusmenu-qt" xreflabel="libdbusmenu-qt-&libdbusmenu-qt-version;">
|
|
<?dbhtml filename="libdbusmenu-qt.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>libdbusmenu-qt-&libdbusmenu-qt-version;</title>
|
|
|
|
<indexterm zone="libdbusmenu-qt">
|
|
<primary sortas="a-libdbusmenu-qt">libdbusmenu-qt</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to libdbusmenu-qt</title>
|
|
|
|
<para>This library provides a <application>Qt</application> implementation
|
|
of the DBusMenu specification that exposes menus via DBus. Its
|
|
libraries are used by both KDE4 and KF5, but they must be linked to <xref
|
|
linkend='qt4'/> and <xref linkend='qt5'/> respectively. The two versions do
|
|
not conflict with each other. </para>
|
|
|
|
&lfs77_checked; &gcc5_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>Download (HTTP): <ulink url="&libdbusmenu-qt-download-http;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download (FTP): <ulink url="&libdbusmenu-qt-download-ftp;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download MD5 sum: &libdbusmenu-qt-md5sum;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download size: &libdbusmenu-qt-size;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Estimated disk space required: &libdbusmenu-qt-buildsize;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Estimated build time: &libdbusmenu-qt-time;</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">libdbusmenu-qt Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required">
|
|
<xref linkend="qt4"/> or <xref linkend="qt5"/>
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional">
|
|
<xref linkend="qjson"/> (for building the test suite) and
|
|
<xref linkend="doxygen"/> (for building the API documentation)
|
|
</para>
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/libdbusmenu-qt"/></para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of libdbusmenu-qt</title>
|
|
|
|
<para>Install the qt4 based version of
|
|
<application>libdbusmenu-qt</application> by running the following
|
|
commands:</para>
|
|
|
|
<screen><userinput>mkdir build &&
|
|
cd build &&
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DUSE_QT4=TRUE \
|
|
-DWITH_DOC=OFF \
|
|
-Wno-dev .. &&
|
|
make</userinput></screen>
|
|
|
|
<para>To test the results
|
|
(<xref linkend="qjson"/> must be installed),
|
|
issue: <command>make -k check</command>. One test is known to fail.</para>
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
<para>Install the qt5 based version of
|
|
<application>libdbusmenu-qt</application> by running the following
|
|
commands:</para>
|
|
|
|
<note><para>If building both versions of this application, be sure
|
|
to remove the previous version of the source and reextract them from
|
|
the original tar file.</para></note>
|
|
|
|
<screen><userinput>mkdir build &&
|
|
cd build &&
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DWITH_DOC=OFF \
|
|
-Wno-dev .. &&
|
|
make</userinput></screen>
|
|
|
|
<para>The qt5 version of this package does not have a working test suite.
|
|
</para>
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para><option>-DCMAKE_BUILD_TYPE=Release</option>: This switch is used to
|
|
build without debugging symbols and apply a higher level of compiler
|
|
optimizations.</para>
|
|
|
|
<para><option>-DUSE_QT4=TRUE</option>: This switch is used to ensure that
|
|
Qt4 version of the library is built even if Qt5 is present.</para>
|
|
|
|
<para><option>-DWITH_DOC=OFF</option>: This option is set to avoid building
|
|
the API documentation. Omit it if you have <application>doxygen</application>
|
|
installed and want the documentation.</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Library</segtitle>
|
|
<segtitle>Installed Directory</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>None</seg>
|
|
<seg>libdbusmenu-qt.so and libdbusmenu-qt5.so</seg>
|
|
<seg>/usr/include/dbusmenu-qt and
|
|
/usr/include/dbusmenu-qt5</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
<!--
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="a-automoc4">
|
|
<term><command>automoc4</command></term>
|
|
<listitem>
|
|
<para>is a testing utility for libdbusmenu-qt-generated build trees.</para>
|
|
<indexterm zone="a-automoc4 automoc4">
|
|
<primary sortas="b-automoc4">automoc4</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
-->
|
|
</sect2>
|
|
|
|
</sect1>
|