source: archive/qtchooser.xml

trunk
Last change on this file was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 17 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

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