[f45b1953] | 1 | <sect2>
|
---|
| 2 | <title>Command explanations</title>
|
---|
| 3 |
|
---|
[fff069f] | 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 |
|
---|
[903ea3fc] | 8 | <para><command>bash</command>: This command enters a sub-shell to isolate
|
---|
| 9 | environment changes.</para>
|
---|
| 10 |
|
---|
[fff069f] | 11 | <para><command>export LD_LIBRARY_PATH=$PWD/lib</command>: This command
|
---|
[903ea3fc] | 12 | sets up the location of libraries for the build process.</para>
|
---|
| 13 |
|
---|
[fff069f] | 14 | <para><command>export PATH=$PWD/bin:$PATH</command>: This command
|
---|
[903ea3fc] | 15 | allows the build process to find supporting executables.</para>
|
---|
| 16 |
|
---|
[fff069f] | 17 | <para><parameter>-qt-gif</parameter>: This switch adds support for gif
|
---|
[f45b1953] | 18 | files to the libraries.</para>
|
---|
| 19 |
|
---|
[fff069f] | 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>
|
---|
[f45b1953] | 24 |
|
---|
[fff069f] | 25 | <para><parameter>-no-g++-exceptions</parameter>: This switch disables
|
---|
[ab8a3cb] | 26 | the exceptions coding generated by the <application>C++</application> compiler.</para>
|
---|
[f45b1953] | 27 |
|
---|
[fff069f] | 28 | <para><parameter>-thread</parameter>: This switch adds
|
---|
| 29 | support for multi-threading.</para>
|
---|
[f45b1953] | 30 |
|
---|
[fff069f] | 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>
|
---|
[f45b1953] | 35 |
|
---|
[fff069f] | 36 | <para><command>ln -s libqt-mt.so /usr/lib/libqt.so</command>: This
|
---|
[69e90004] | 37 | command allows configure scripts
|
---|
[b9ad2f9a] | 38 | to find a working <application>Qt</application> installation.</para>
|
---|
[0eb8ee4] | 39 |
|
---|
[fff069f] | 40 | <para><command>cp -r doc/man /usr/share</command>: This command
|
---|
| 41 | installs the man pages which are missed by <command>make
|
---|
[b9ad2f9a] | 42 | install</command>.</para>
|
---|
[2b36b6b] | 43 |
|
---|
[fff069f] | 44 | <para><command>cp -r examples /usr/share/doc/qt</command>: This command
|
---|
| 45 | installs the examples which are missed by <command>make
|
---|
[b9ad2f9a] | 46 | install</command>.</para>
|
---|
[2b36b6b] | 47 |
|
---|
[903ea3fc] | 48 | <para><command>exit</command>: This command returns to the parent shell
|
---|
[fff069f] | 49 | and eliminates environment variables set earlier.</para>
|
---|
[903ea3fc] | 50 |
|
---|
[f45b1953] | 51 | </sect2>
|
---|