1 | <sect2>
|
---|
2 | <title>Command explanations</title>
|
---|
3 |
|
---|
4 | <para><command>bash</command>: This command enters a sub-shell to isolate
|
---|
5 | environment changes.</para>
|
---|
6 |
|
---|
7 | <para><command>export QTDIR=$PWD</command>: This command defines where the
|
---|
8 | root of the <application>Qt</application> directory is located.</para>
|
---|
9 |
|
---|
10 | <para><command>export LD_LIBRARY_PATH=$QTDIR/lib</command>: This command
|
---|
11 | sets up the location of libraries for the build process.</para>
|
---|
12 |
|
---|
13 | <para><command>export PATH=$QTDIR/bin:$PATH</command>: This command
|
---|
14 | allows the build process to find supporting executables.</para>
|
---|
15 |
|
---|
16 | <para><parameter>-prefix /opt/qt-&qt-version;</parameter>: This command sets up
|
---|
17 | the install destination.</para>
|
---|
18 |
|
---|
19 | <para><option>-qt-gif</option>: This command adds support for gif
|
---|
20 | files to the libraries.</para>
|
---|
21 |
|
---|
22 | <para><option>-system-libpng -system-libmng -system-zlib
|
---|
23 | -system-libjpeg</option>: This command forces the library to use the
|
---|
24 | shared libraries that are on your system instead of recreating its own
|
---|
25 | set of support libraries for these functions.</para>
|
---|
26 |
|
---|
27 | <para><option>-no-g++-exceptions</option>: This command disables
|
---|
28 | the exceptions coding generated by the <application>C++</application> compiler.</para>
|
---|
29 |
|
---|
30 | <para><option>-thread</option>: This command compiles the library
|
---|
31 | to support multi-threading.</para>
|
---|
32 |
|
---|
33 | <para><command>ln -sfn /opt/qt-&qt-version; /opt/qt</command>: This command
|
---|
34 | standardizes the location of the <application>Qt</application> libraries
|
---|
35 | to the <filename>ld.so.conf</filename> entry
|
---|
36 | described below.</para>
|
---|
37 |
|
---|
38 | <para><command>ln -s /opt/qt/lib/libqt-mt.so
|
---|
39 | /opt/qt/lib/libqt.so</command>: This command allows configure scripts
|
---|
40 | to find a working <application>Qt</application> installation.</para>
|
---|
41 |
|
---|
42 | <para><command>cp -r doc/man /opt/qt/doc</command>: This command
|
---|
43 | installs the man directory which is missed by <command>make
|
---|
44 | install</command>.</para>
|
---|
45 |
|
---|
46 | <para><command>cp -r examples /opt/qt/doc</command>: This command
|
---|
47 | installs the examples directory which is missed by <command>make
|
---|
48 | install</command>.</para>
|
---|
49 |
|
---|
50 | <para><command>exit</command>: This command returns to the parent shell
|
---|
51 | and eliminates envirnment variables set earlier.</para>
|
---|
52 |
|
---|
53 | </sect2>
|
---|
54 |
|
---|