| [740] | 1 | This is Qt version 4.6.2 for OS/2 and eCS.
|
|---|
| [144] | 2 |
|
|---|
| [397] | 3 | This document contains a brief information on the OS/2 version of the Qt
|
|---|
| [524] | 4 | library. Please read it carefully before starting your work. You may also
|
|---|
| 5 | visit the project page at
|
|---|
| [144] | 6 |
|
|---|
| 7 | http://svn.netlabs.org/qt4/wiki
|
|---|
| 8 |
|
|---|
| [188] | 9 | to get more information and the latest news and also to report bugs.
|
|---|
| [144] | 10 |
|
|---|
| [397] | 11 | To get a brief list of OS/2-specific changes from release to release
|
|---|
| 12 | please see the CHANGES.OS2 file included in this distribution.
|
|---|
| [144] | 13 |
|
|---|
| [740] | 14 | Please note that this version is binary incompatible with previous versions of
|
|---|
| 15 | Qt 4 for OS/2! This is not a behavior of the original Qt library (where versions
|
|---|
| 16 | with the same major number are usually binary compatible), but it is due to the
|
|---|
| 17 | fact that we continue to add missing features to the OS/2 version ot Qt and this
|
|---|
| 18 | cannot be done witout breaking the binary compatibility. On practice, this means
|
|---|
| 19 | that you need to recompile your applications with the new version of the Qt
|
|---|
| 20 | library in order to make them work with it.
|
|---|
| [188] | 21 |
|
|---|
| [397] | 22 |
|
|---|
| [740] | 23 |
|
|---|
| [144] | 24 | REQUIREMENTS
|
|---|
| 25 |
|
|---|
| [397] | 26 | In order to compile the Qt library and Qt-based applications, you will need
|
|---|
| 27 | the following tools:
|
|---|
| [144] | 28 |
|
|---|
| 29 | - One of the OS/2 Warp 4, OS/2 Warp 4.5 or eComStation operating systems.
|
|---|
| 30 |
|
|---|
| [740] | 31 | - GCC compiler version 4.4.2 for OS/2, patched OpenWatcom linker and
|
|---|
| 32 | GNU Make 3.81beta1 or above. The GCC compiler must be set up to use the
|
|---|
| 33 | OpenWatcom linker for linking.
|
|---|
| [144] | 34 |
|
|---|
| [740] | 35 | If you do not have a working GCC environment with the above requirements, it
|
|---|
| 36 | is recommended to download a ready-to-use GCC 4.2.2 distribution from here:
|
|---|
| [524] | 37 |
|
|---|
| [740] | 38 | ftp://ftp.netlabs.org/pub/qt4/gcc-4_4_2-complete-20091205.zip
|
|---|
| [524] | 39 |
|
|---|
| [740] | 40 | This distribution includes all tools necessary to compile and build the Qt
|
|---|
| 41 | library from the source code. Just follow the installation instructions
|
|---|
| 42 | contained in the README file inside this ZIP archive to set up the GCC
|
|---|
| 43 | environment.
|
|---|
| [524] | 44 |
|
|---|
| [740] | 45 | Please note that starting from Qt 4.6.2, support for GCC 3.3.5 and earlier
|
|---|
| 46 | versions of the compiler has been dropped and the Qt library will most
|
|---|
| 47 | likely not build if you use one of these compilers. Later versions prior to
|
|---|
| 48 | GCC 4.4.2 may work but they are not tested and not supported.
|
|---|
| [524] | 49 |
|
|---|
| [740] | 50 | There is also a set of optional tools which are necessary to enable the selected
|
|---|
| 51 | features of the Qt library. If these tools are missing, the Qt configuration
|
|---|
| 52 | script (discussed in section "COMPILING QT" below) will automatically disable
|
|---|
| 53 | the corresponding feature:
|
|---|
| [144] | 54 |
|
|---|
| [740] | 55 | - LxLite 1.3.3 or above (not tested) to enable the compression of Qt DLLs and
|
|---|
| 56 | application executables (which saves hard disk space and application startup
|
|---|
| 57 | time). If you use a recent version of eComStation (e.g. 2.0 rc6) you will
|
|---|
| 58 | already have LxLite installed. Otherwise, you may take it from here:
|
|---|
| [144] | 59 |
|
|---|
| [740] | 60 | http://www.os2site.com/sw/util/archiver/lxlt133.zip
|
|---|
| [144] | 61 |
|
|---|
| [576] | 62 | - eCUPS 1.3.11 or later to support printing in Qt. The eCUPS WPI is available
|
|---|
| [740] | 63 | from:
|
|---|
| [576] | 64 |
|
|---|
| 65 | ftp://ftp.netlabs.org/incoming/eCUPS003.wpi or
|
|---|
| 66 | ftp://ftp.netlabs.org/pub/ecups/eCUPS003.wpi
|
|---|
| 67 |
|
|---|
| 68 | Linking against eCUPS also requires pthread.lib:
|
|---|
| 69 |
|
|---|
| 70 | http://web.os2power.com/download/lib/pthread-20100217-os2.zip
|
|---|
| 71 |
|
|---|
| [314] | 72 |
|
|---|
| 73 |
|
|---|
| [740] | 74 | SETTING UP THE ENVIRONMENT
|
|---|
| [397] | 75 |
|
|---|
| [740] | 76 | First of all, make sure that your GCC environment is set up and meets the
|
|---|
| 77 | specified requirements. To perform a quick check, you may run the following
|
|---|
| 78 | command:
|
|---|
| [397] | 79 |
|
|---|
| [740] | 80 | gcc --version && make --version && wl /version
|
|---|
| [397] | 81 |
|
|---|
| [740] | 82 | If the setup is done properly, it will print the versions of the key tools
|
|---|
| 83 | to the console.
|
|---|
| [144] | 84 |
|
|---|
| [740] | 85 | The next step is to set up the Qt environment. If you installed the Qt
|
|---|
| 86 | development libraries from the WPI archive (refer to section "USING OFFICIAL
|
|---|
| 87 | BINARY QT ARCHIVES" below for more details about existing WPI archives), you
|
|---|
| 88 | will only need to run the supplied "QtEnv.cmd" script which will do all the
|
|---|
| 89 | setup job for you. The script is located in the directory where you installed
|
|---|
| 90 | the developmnent libraries (or in the WPS folder created by the WPI installer).
|
|---|
| 91 | If you use this script, you may skip the rest of this section and proceed to the
|
|---|
| 92 | next one.
|
|---|
| [524] | 93 |
|
|---|
| [740] | 94 | If you use the full source code ZIP distribution of the Qt library or work
|
|---|
| 95 | directly with the Qt SVN tree, you will need to set up the environment yourself
|
|---|
| |
|---|