1 | <sect2>
|
---|
2 | <title>Command explanations</title>
|
---|
3 |
|
---|
4 | <para><command>sed -i "s:cp -f:install:" mkspecs/linux-g++/qmake.conf</command>:
|
---|
5 | <command>install</command> is safer than <command>cp</command> when
|
---|
6 | libraries are in use.</para>
|
---|
7 |
|
---|
8 | <para><command>bash</command>: This command enters a sub-shell to isolate
|
---|
9 | environment changes.</para>
|
---|
10 |
|
---|
11 | <para><command>export LD_LIBRARY_PATH=$PWD/lib</command>: This command
|
---|
12 | sets up the location of libraries for the build process.</para>
|
---|
13 |
|
---|
14 | <para><command>export PATH=$PWD/bin:$PATH</command>: This command
|
---|
15 | allows the build process to find supporting executables.</para>
|
---|
16 |
|
---|
17 | <para><parameter>-qt-gif</parameter>: This switch adds support for gif
|
---|
18 | files to the libraries.</para>
|
---|
19 |
|
---|
20 | <para><parameter>-system-zlib -system-libpng</parameter>: This switch
|
---|
21 | forces the library to use the shared libraries that are on your system
|
---|
22 | instead of recreating its own set of support libraries for these
|
---|
23 | functions.</para>
|
---|
24 |
|
---|
25 | <para><parameter>-no-g++-exceptions</parameter>: This switch disables
|
---|
26 | the exceptions coding generated by the <application>C++</application> compiler.</para>
|
---|
27 |
|
---|
28 | <para><parameter>-thread</parameter>: This switch adds
|
---|
29 | support for multi-threading.</para>
|
---|
30 |
|
---|
31 | <para><command>find -type f -name Makefile | xargs sed -i "s@-Wl,-rpath,/usr/lib@@g"</command>:
|
---|
32 | This command removes hardcoded run-time path, else
|
---|
33 | <command>uic</command> tries to run with system installed Qt
|
---|
34 | libraries.</para>
|
---|
35 |
|
---|
36 | <para><command>ln -s libqt-mt.so /usr/lib/libqt.so</command>: This
|
---|
37 | command allows configure scripts
|
---|
38 | to find a working <application>Qt</application> installation.</para>
|
---|
39 |
|
---|
40 | <para><command>cp -r doc/man /usr/share</command>: This command
|
---|
41 | installs the man pages which are missed by <command>make
|
---|
42 | install</command>.</para>
|
---|
43 |
|
---|
44 | <para><command>cp -r examples /usr/share/doc/qt</command>: This command
|
---|
45 | installs the examples which are missed by <command>make
|
---|
46 | install</command>.</para>
|
---|
47 |
|
---|
48 | <para><command>exit</command>: This command returns to the parent shell
|
---|
49 | and eliminates environment variables set earlier.</para>
|
---|
50 |
|
---|
51 | </sect2>
|
---|