glfs/archive/qtchooser.xml

248 lines
7.3 KiB
XML
Raw Normal View History

<?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 qtchooser-git-revision "g4717841">
<!ENTITY qtchooser-download-http "http://macieira.org/qtchooser/qtchooser-&qtchooser-version;-&qtchooser-git-revision;.tar.gz">
<!ENTITY qtchooser-download-ftp " ">
<!ENTITY qtchooser-md5sum "fcf1b5e8373147e48ce72b9c1ffe3d10">
<!ENTITY qtchooser-size "32 KB">
<!ENTITY qtchooser-buildsize "1.6 MB">
<!ENTITY qtchooser-time "less than 0.1 SBU">
]>
<sect1 id="qtchooser" xreflabel="qtchooser-&qtchooser-version;">
<?dbhtml filename="qtchooser.html"?>
<sect1info>
<date>$Date$</date>
</sect1info>
<title>qtchooser-&qtchooser-version;</title>
<indexterm zone="qtchooser">
<primary sortas="a-qtchooser">qtchooser</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to qtchooser</title>
<para>
The <application>qtchooser</application> package contains a wrapper used to select
between <application>Qt</application> binary versions. It is only needed if
both Qt4 and Qt5 are installed for access via the /usr/bin directory.
</para>
&lfs74_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&qtchooser-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&qtchooser-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &qtchooser-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &qtchooser-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &qtchooser-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &qtchooser-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">qtchooser Dependencies</bridgehead>
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional">
<xref linkend="qt4"/> (for the testsuite)
</para>
<para condition="html" role="usernotes">
User Notes: <ulink url="&blfs-wiki;/qtchooser"/>
</para>
</sect2>
<sect2 role="installation">
<title>Installation of qtchooser</title>
<warning>
<para>
If both <application>Qt4</application> and
<application>Qt5</application> are installed on the system,
then <application>Qt4</application> should be set as
default unless stated otherwise.
</para>
</warning>
<para>
Install <application>qtchooser</application> by running the following
commands:
</para>
<screen><userinput>make</userinput></screen>
<para>
To test the results, issue: <command>make check</command>.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install &amp;&amp;
install -m644 doc/qtchooser.1 /usr/share/man/man1</userinput></screen>
</sect2>
<sect2 role="configuration">
<title>Configuring qtchooser</title>
<sect3 id="qtchooser-config">
<title>Config Files</title>
<para>
<filename>/etc/xdg/qtchooser/default.conf</filename>
</para>
<indexterm zone="qtchooser qtchooser-config">
<primary
sortas="e-etc-xdg-qtchooser-default.conf">/etc/xdg/qtchooser/default.conf</primary>
</indexterm>
</sect3>
<sect3>
<title>Configuration Information</title>
<para>
The <filename>/etc/xdg/qtchooser/default.conf</filename>
configuration file contains paths to the
<application>Qt</application> binaries and libraries which will
be used when the wrapper is run. It is ussually a symlink to a
package specific file, such as <filename>4.conf</filename> or
<filename>5.conf</filename>. In first case, when invoking the wrappers,
<application>Qt4</application> equivalents will be invoked. In second
case, <application>Qt5</application> equivalents will be invoked.
</para>
<para>
Create the configuration files by running the following commands as
the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>install -dm755 /etc/xdg/qtchooser &amp;&amp;
cat &gt; /etc/xdg/qtchooser/4.conf &lt;&lt; "EOF"
<literal>/usr/lib/qt4/bin
/usr/lib</literal>
EOF
cat &gt; /etc/xdg/qtchooser/5.conf &lt;&lt; "EOF"
<literal>/usr/lib/qt5/bin
/usr/lib</literal>
EOF</userinput></screen>
<para>
To set <application>Qt4</application> as the default, run the following
command as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>ln -sfv 4.conf /etc/xdg/qtchooser/default.conf</userinput></screen>
<para>
To set <application>Qt5</application> as the default, run the following
command as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>ln -sfv 5.conf /etc/xdg/qtchooser/default.conf</userinput></screen>
<para>
You can also select default <application>Qt</application> using an environment
variable.
</para>
<para>
To set <application>Qt4</application> as the default, run the following command:
</para>
<screen><userinput>export QT_SELECT=4</userinput></screen>
<para>
To set <application>Qt5</application> as the default, run the following command:
</para>
<screen><userinput>export QT_SELECT=5</userinput></screen>
</sect3>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>
assistant, designer, lconvert, linguist, lrelease, lupdate, moc,
pixeltool, qcollectiongenerator, qdbus, qdbuscpp2xml, qdbusviewer,
qdbusxml2cpp, qdoc, qdoc3, qglinfo, qhelpconverter, qhelpgenerator,
qmake, qml, qml1plugindump, qmlbundle, qmlmin, qmlplugindump,
qmlprofiler, qmlscene, qmltestrunner, qmlviewer, qtchooser,
qtconfig, rcc, uic, uic3, xmlpatterns, and xmlpatternsvalidator
</seg>
<seg>
None
</seg>
<seg>
None
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="qtchooser-prog">
<term><command>qtchooser</command></term>
<listitem>
<para>
is a wrapper used to select between <application>Qt</application>
binary versions.
</para>
<indexterm zone="qtchooser qtchooser-prog">
<primary sortas="b-qtchooser">qtchooser</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>