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 | <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>
|
---|
35 | The <application>qtchooser</application> package contains a wrapper used to
|
---|
36 | select between <application>Qt</application> binary versions.
|
---|
37 | </para>
|
---|
38 |
|
---|
39 | &lfs75_checked;
|
---|
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 |
|
---|
75 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
76 | <itemizedlist spacing="compact">
|
---|
77 | <listitem>
|
---|
78 | <para>
|
---|
79 | Required patch:
|
---|
80 | <ulink url="&patch-root;/qtchooser-&qtchooser-version;-upstream_fixes-1.patch"/>
|
---|
81 | </para>
|
---|
82 | </listitem>
|
---|
83 | </itemizedlist>
|
---|
84 |
|
---|
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 |
|
---|
114 | <screen><userinput>patch -Np1 -i ../qtchooser-&qtchooser-version;-upstream_fixes-1.patch &&
|
---|
115 | make</userinput></screen>
|
---|
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 |
|
---|
125 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
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
|
---|
153 | package specific file, such as <filename>4.conf</filename> or
|
---|
154 | <filename>5.conf</filename>. In first case, when invoking the wrappers,
|
---|
155 | <application>Qt4</application> equivalents will be invoked. In second
|
---|
156 | case, <application>Qt5</application> equivalents will be invoked.
|
---|
157 | </para>
|
---|
158 |
|
---|
159 | <para>
|
---|
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
|
---|
164 | the <systemitem class="username">root</systemitem> user:
|
---|
165 | </para>
|
---|
166 |
|
---|
167 | <screen role="root"><userinput>install -dm755 /etc/xdg/qtchooser &&
|
---|
168 | cat > /etc/xdg/qtchooser/qt4.conf << "EOF"
|
---|
169 | <literal>/usr/lib/qt4/bin
|
---|
170 | /usr/lib</literal>
|
---|
171 | EOF
|
---|
172 | cat > /etc/xdg/qtchooser/qt5.conf << "EOF"
|
---|
173 | <literal>/usr/lib/qt5/bin
|
---|
174 | /usr/lib</literal>
|
---|
175 | EOF</userinput></screen>
|
---|
176 |
|
---|
177 | <para>
|
---|
178 | If both <application>Qt4</application> and
|
---|
179 | <application>Qt5</application> are installed in
|
---|
180 | <filename class="directory">/usr</filename>, create the
|
---|
181 | configuration files by running the following commands as
|
---|
182 | the <systemitem class="username">root</systemitem> user:
|
---|
183 | </para>
|
---|
184 |
|
---|
185 | <screen role="root"><userinput>install -dm755 /etc/xdg/qtchooser &&
|
---|
186 | cat > /etc/xdg/qtchooser/qt4.conf << "EOF"
|
---|
187 | <literal>/opt/qt4/lib/qt4/bin
|
---|
188 | /opt/qt4/lib</literal>
|
---|
189 | EOF
|
---|
190 | cat > /etc/xdg/qtchooser/qt5.conf << "EOF"
|
---|
191 | <literal>/opt/qt5/lib/qt5/bin
|
---|
192 | /opt/qt5/lib</literal>
|
---|
193 | EOF</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 |
|
---|
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 |
|
---|
206 | <screen role="root"><userinput>ln -sfv qt4.conf /etc/xdg/qtchooser/default.conf</userinput></screen>
|
---|
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 |
|
---|
213 | <screen role="root"><userinput>ln -sfv qt5.conf /etc/xdg/qtchooser/default.conf</userinput></screen>
|
---|
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 |
|
---|
224 | <screen><userinput>export QT_SELECT=qt4</userinput></screen>
|
---|
225 |
|
---|
226 | <para>
|
---|
227 | To set <application>Qt5</application> as the default, run the following command:
|
---|
228 | </para>
|
---|
229 |
|
---|
230 | <screen><userinput>export QT_SELECT=qt5</userinput></screen>
|
---|
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,
|
---|
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
|
---|
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>
|
---|