source: general/genutils/qtchooser-systemd.xml@ ad6910d

systemd-13485
Last change on this file since ad6910d was ac38e9dc, checked in by Douglas R. Reno <renodr@…>, 9 years ago

Import back into SVN from Github

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16309 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.6 KB
RevLine 
[8d4b121]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" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[b528e077]7 <!ENTITY qtchooser-git-revision "g4717841">
[8d4b121]8
9 <!ENTITY qtchooser-download-http "http://macieira.org/qtchooser/qtchooser-&qtchooser-version;-&qtchooser-git-revision;.tar.gz">
10 <!ENTITY qtchooser-download-ftp " ">
[b528e077]11 <!ENTITY qtchooser-md5sum "fcf1b5e8373147e48ce72b9c1ffe3d10">
[8d4b121]12 <!ENTITY qtchooser-size "32 KB">
[b528e077]13 <!ENTITY qtchooser-buildsize "1.6 MB">
[8d4b121]14 <!ENTITY qtchooser-time "less than 0.1 SBU">
15]>
16
17<sect1 id="qtchooser" xreflabel="qtchooser-&qtchooser-version;">
18 <?dbhtml filename="qtchooser.html"?>
19
20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
23 </sect1info>
24
25 <title>qtchooser-&qtchooser-version;</title>
26
27 <indexterm zone="qtchooser">
28 <primary sortas="a-qtchooser">qtchooser</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to qtchooser</title>
33
34 <para>
[359dc25]35 The <application>qtchooser</application> package contains a wrapper used to
36 select between <application>Qt</application> binary versions.
[8d4b121]37 </para>
38
[ac38e9dc]39 &lfs77_checked;
[8d4b121]40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&qtchooser-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&qtchooser-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &qtchooser-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &qtchooser-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &qtchooser-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &qtchooser-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
[359dc25]75 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
76 <itemizedlist spacing="compact">
77 <listitem>
78 <para>
79 Required patch:
[ac38e9dc]80 <ulink url="&patch-root;/qtchooser-&qtchooser-version;-upstream_fixes-2.patch"/>
[359dc25]81 </para>
82 </listitem>
83 </itemizedlist>
84
[8d4b121]85 <bridgehead renderas="sect3">qtchooser Dependencies</bridgehead>
86
87 <bridgehead renderas="sect4">Optional</bridgehead>
88 <para role="optional">
89 <xref linkend="qt4"/> (for the testsuite)
90 </para>
91
92 <para condition="html" role="usernotes">
93 User Notes: <ulink url="&blfs-wiki;/qtchooser"/>
94 </para>
95 </sect2>
96
97 <sect2 role="installation">
98 <title>Installation of qtchooser</title>
99
100 <warning>
101 <para>
102 If both <application>Qt4</application> and
103 <application>Qt5</application> are installed on the system,
104 then <application>Qt4</application> should be set as
105 default unless stated otherwise.
106 </para>
107 </warning>
108
109 <para>
110 Install <application>qtchooser</application> by running the following
111 commands:
112 </para>
113
[ac38e9dc]114<screen><userinput>patch -Np1 -i ../qtchooser-&qtchooser-version;-upstream_fixes-2.patch &amp;&amp;
[359dc25]115make</userinput></screen>
[8d4b121]116
117 <para>
118 To test the results, issue: <command>make check</command>.
119 </para>
120
121 <para>
122 Now, as the <systemitem class="username">root</systemitem> user:
123 </para>
124
[359dc25]125<screen role="root"><userinput>make install</userinput></screen>
[8d4b121]126
127 </sect2>
128
129 <sect2 role="configuration">
130 <title>Configuring qtchooser</title>
131
132 <sect3 id="qtchooser-config">
133 <title>Config Files</title>
134 <para>
135 <filename>/etc/xdg/qtchooser/default.conf</filename>
136 </para>
137
138 <indexterm zone="qtchooser qtchooser-config">
139 <primary
140 sortas="e-etc-xdg-qtchooser-default.conf">/etc/xdg/qtchooser/default.conf</primary>
141 </indexterm>
142
143 </sect3>
144
145 <sect3>
146 <title>Configuration Information</title>
147
148 <para>
149 The <filename>/etc/xdg/qtchooser/default.conf</filename>
150 configuration file contains paths to the
151 <application>Qt</application> binaries and libraries which will
152 be used when the wrapper is run. It is ussually a symlink to a
[ac38e9dc]153 package specific file, such as <filename>qt4.conf</filename> or
154 <filename>qt5.conf</filename>. In first case, when invoking the wrappers,
[8d4b121]155 <application>Qt4</application> equivalents will be invoked. In second
156 case, <application>Qt5</application> equivalents will be invoked.
157 </para>
158
159 <para>
[359dc25]160 If both <application>Qt4</application> and
161 <application>Qt5</application> are installed in
162 <filename class="directory">/usr</filename>, create the
163 configuration files by running the following commands as
[8d4b121]164 the <systemitem class="username">root</systemitem> user:
165 </para>
166
[09ae65ca]167<screen role="root"><userinput>install -v -dm755 /etc/xdg/qtchooser &amp;&amp;
[359dc25]168cat &gt; /etc/xdg/qtchooser/qt4.conf &lt;&lt; "EOF"
[8d4b121]169<literal>/usr/lib/qt4/bin
170/usr/lib</literal>
171EOF
[359dc25]172cat &gt; /etc/xdg/qtchooser/qt5.conf &lt;&lt; "EOF"
[8d4b121]173<literal>/usr/lib/qt5/bin
174/usr/lib</literal>
175EOF</userinput></screen>
176
[359dc25]177 <para>
178 If both <application>Qt4</application> and
179 <application>Qt5</application> are installed in
[402faec6]180 <filename class="directory">/opt</filename>, create the
[359dc25]181 configuration files by running the following commands as
182 the <systemitem class="username">root</systemitem> user:
183 </para>
184
[09ae65ca]185<screen role="root"><userinput>install -v -dm755 /etc/xdg/qtchooser &amp;&amp;
[359dc25]186cat &gt; /etc/xdg/qtchooser/qt4.conf &lt;&lt; "EOF"
187<literal>/opt/qt4/lib/qt4/bin
188/opt/qt4/lib</literal>
189EOF
190cat &gt; /etc/xdg/qtchooser/qt5.conf &lt;&lt; "EOF"
191<literal>/opt/qt5/lib/qt5/bin
192/opt/qt5/lib</literal>
193EOF</userinput></screen>
194
195 <para>
196 Replace <filename class="directory">/opt/qt4</filename> and/or
197 <filename class="directory">/opt/qt5</filename> if you used
198 different prefix.
199 </para>
200
[8d4b121]201 <para>
202 To set <application>Qt4</application> as the default, run the following
203 command as the <systemitem class="username">root</systemitem> user:
204 </para>
205
[359dc25]206<screen role="root"><userinput>ln -sfv qt4.conf /etc/xdg/qtchooser/default.conf</userinput></screen>
[8d4b121]207
208 <para>
209 To set <application>Qt5</application> as the default, run the following
210 command as the <systemitem class="username">root</systemitem> user:
211 </para>
212
[359dc25]213<screen role="root"><userinput>ln -sfv qt5.conf /etc/xdg/qtchooser/default.conf</userinput></screen>
[8d4b121]214
215 <para>
216 You can also select default <application>Qt</application> using an environment
217 variable.
218 </para>
219
220 <para>
221 To set <application>Qt4</application> as the default, run the following command:
222 </para>
223
[359dc25]224<screen><userinput>export QT_SELECT=qt4</userinput></screen>
[8d4b121]225
226 <para>
227 To set <application>Qt5</application> as the default, run the following command:
228 </para>
229
[359dc25]230<screen><userinput>export QT_SELECT=qt5</userinput></screen>
[8d4b121]231
232 </sect3>
233
234 </sect2>
235
236 <sect2 role="content">
237 <title>Contents</title>
238
239 <segmentedlist>
240 <segtitle>Installed Programs</segtitle>
241 <segtitle>Installed Libraries</segtitle>
242 <segtitle>Installed Directories</segtitle>
243
244 <seglistitem>
245 <seg>
246 assistant, designer, lconvert, linguist, lrelease, lupdate, moc,
247 pixeltool, qcollectiongenerator, qdbus, qdbuscpp2xml, qdbusviewer,
248 qdbusxml2cpp, qdoc, qdoc3, qglinfo, qhelpconverter, qhelpgenerator,
[359dc25]249 qlalr, qmake, qml, qml1plugindump, qmlbundle, qmlimportscanner,
250 qmlmin, qmlplugindump, qmlprofiler, qmlscene, qmltestrunner,
251 qmlviewer, qtchooser, qtconfig, qtdiag, qtpaths, rcc, uic, uic3,
252 xmlpatterns and xmlpatternsvalidator
[8d4b121]253 </seg>
254 <seg>
255 None
256 </seg>
257 <seg>
258 None
259 </seg>
260 </seglistitem>
261 </segmentedlist>
262
263 <variablelist>
264 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
265 <?dbfo list-presentation="list"?>
266 <?dbhtml list-presentation="table"?>
267
268 <varlistentry id="qtchooser-prog">
269 <term><command>qtchooser</command></term>
270 <listitem>
271 <para>
272 is a wrapper used to select between <application>Qt</application>
273 binary versions.
274 </para>
275 <indexterm zone="qtchooser qtchooser-prog">
276 <primary sortas="b-qtchooser">qtchooser</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 </variablelist>
282
283 </sect2>
284
285</sect1>
Note: See TracBrowser for help on using the repository browser.