| [397] | 1 | This is Beta 5 of Qt version 4.5.1 for OS/2 and eCS.
|
|---|
| [144] | 2 |
|
|---|
| [397] | 3 | This document contains a brief information on the OS/2 version of the Qt
|
|---|
| 4 | library. Please visit the project page at
|
|---|
| [144] | 5 |
|
|---|
| 6 | http://svn.netlabs.org/qt4/wiki
|
|---|
| 7 |
|
|---|
| [188] | 8 | to get more information and the latest news and also to report bugs.
|
|---|
| [144] | 9 |
|
|---|
| [397] | 10 | To get a brief list of OS/2-specific changes from release to release
|
|---|
| 11 | please see the CHANGES.OS2 file included in this distribution.
|
|---|
| [144] | 12 |
|
|---|
| [188] | 13 |
|
|---|
| [397] | 14 |
|
|---|
| [144] | 15 | REQUIREMENTS
|
|---|
| 16 |
|
|---|
| [397] | 17 | In order to compile the Qt library and Qt-based applications, you will need
|
|---|
| 18 | the following tools:
|
|---|
| [144] | 19 |
|
|---|
| 20 | - One of the OS/2 Warp 4, OS/2 Warp 4.5 or eComStation operating systems.
|
|---|
| 21 |
|
|---|
| 22 | - InnoTek GCC compiler version 3.3.5 CSD3 or above (not tested).
|
|---|
| 23 | You can download a copy of the compiler using the following link:
|
|---|
| 24 |
|
|---|
| 25 | ftp://ftp.netlabs.org/pub/gcc/GCC-3.3.5-csd3.zip
|
|---|
| 26 |
|
|---|
| [259] | 27 | - Patched OpenWatcom linker which you can download from here:
|
|---|
| [144] | 28 |
|
|---|
| [152] | 29 | ftp://ftp.netlabs.org/pub/gcc/wl-hll-r1.zip
|
|---|
| [144] | 30 |
|
|---|
| [152] | 31 | Note that if you use IBM ILINK (no matter what version), you will
|
|---|
| 32 | not be able to build the debug version of the library due to
|
|---|
| 33 | bugs/limitations of ILINK.
|
|---|
| [144] | 34 |
|
|---|
| [152] | 35 | - GNU Make 3.81beta1 or above (not tested) available at:
|
|---|
| [144] | 36 |
|
|---|
| [152] | 37 | http://unix.os2site.com/pub/binary/make/make-3_81beta1-bin-static.zip
|
|---|
| [144] | 38 |
|
|---|
| [314] | 39 | - LxLite 1.3.3 or above (not tested) if you want Qt DLLs and application
|
|---|
| 40 | executables to be compressed (to save hard disk space and load time). If
|
|---|
| 41 | you have a recent eComStation installation (e.g. 2.0 rc6) you will already
|
|---|
| 42 | have LxLite installed. Otherwise, you may take it from here:
|
|---|
| 43 |
|
|---|
| 44 | http://www.os2site.com/sw/util/archiver/lxlt133.zip
|
|---|
| 45 |
|
|---|
| [397] | 46 |
|
|---|
| 47 |
|
|---|
| 48 | SETTING UP THE ENVIRONMENT
|
|---|
| 49 |
|
|---|
| [144] | 50 | After unpacking the GCC archive, you will have to set up the compiler
|
|---|
| [402] | 51 | environment by invoking gccenv.cmd from the bin subdirectory with the correct
|
|---|
| 52 | arguments (type gccenv.cmd -? for help). For the OpenWatcom linker, specify
|
|---|
| 53 | WLINK as the second argument.
|
|---|
| [144] | 54 |
|
|---|
| [259] | 55 | You will also need to perform the following steps:
|
|---|
| 56 |
|
|---|
| [314] | 57 | - Make sure the selected linker, the make utility and LxLite executable are
|
|---|
| 58 | in PATH.
|
|---|
| [144] | 59 |
|
|---|
| [152] | 60 | - Make sure CMD.EXE is your command line processor (the generated makefiles
|
|---|
| [258] | 61 | will rely on its 'copy', 'if' and other commands). If you have a Unix shell
|
|---|
| 62 | (SH.EXE) in your environment, you may need to force GNU make to use CMD.EXE
|
|---|
| 63 | by doing 'set MAKESHELL=C:\OS2\CMD.EXE' where C: is your boot drive.
|
|---|
| [152] | 64 |
|
|---|
| [144] | 65 | - set LIBRARY_PATH=C:\OS2\DLL;C:\MPTN\DLL where C: is your boot drive.
|
|---|
| 66 |
|
|---|
| [258] | 67 | - Make sure that there are no traces of any other Watcom or OpenWatcom
|
|---|
| 68 | installation in the environment where you build Qt as it will most likely
|
|---|
| 69 | interfere with the patched OpenWatcom linker we use. This basically means
|
|---|
| 70 | removing all *WATCOM* environment variables and removing references to those
|
|---|
| 71 | Watcom installations from PATH.
|
|---|
| 72 |
|
|---|
| [188] | 73 | Note that the QTDIR environment variable used by previous Qt versions is not
|
|---|
| 74 | used by Qt4 anymore (except two rare cases that do not affect the OS/2 platform
|
|---|
| 75 | anyway and are probably leftovers after the migration of the qmake feature
|
|---|
| 76 | specifications to Qt4). Therefore, there is no need to set this variable
|
|---|
| [259] | 77 | explicitly. See also a note below about hard-coded paths to the source tree.
|
|---|
| [144] | 78 |
|
|---|
| [188] | 79 | There is also no need to set the QMAKESPEC variable explicitly. If it is absent,
|
|---|
| 80 | qmake will use the specification stored in the <Qt4_Home>/mkspecs/default
|
|---|
| 81 | directory, which on OS/2 always refers to the "os2-g++" specification, the only
|
|---|
| 82 | one supported at the present time.
|
|---|
| [144] | 83 |
|
|---|
| [397] | 84 |
|
|---|
| 85 |
|
|---|
| 86 | COMPILING QT
|
|---|
| 87 |
|
|---|
| 88 | You should skip this section if you downloaded and installed a binary
|
|---|
| [402] | 89 | distribution of the Qt library for developers (qt-dev-X_Y_Z.wpi) and proceed
|
|---|
| 90 | directly to section USING OFFICIAL BINARY QT PACKAGES below.
|
|---|
| [397] | 91 |
|
|---|
| [144] | 92 | When the environment is set up, go to the directory where you unpacked the
|
|---|
| 93 | Qt4 source tree and type:
|
|---|
| 94 |
|
|---|
| 95 | configure.cmd
|
|---|
| 96 |
|
|---|
| [259] | 97 | This will set up the library (by creating necessary configuration and include
|
|---|
| 98 | files and a bunch of Makefiles for variuos components) and build the qmake
|
|---|
| 99 | utility.
|
|---|
| [144] | 100 |
|
|---|
| [402] | 101 | The next step is to type:
|
|---|
| [144] | 102 |
|
|---|
| [148] | 103 | make
|
|---|
| [144] | 104 |
|
|---|
| [148] | 105 | This will compile and link the library. Note that by default both the release
|
|---|
| 106 | and the debug version of the library are built (please be patient, it may take
|
|---|
| 107 | quite some time depending on your hardware). The release and debug libraries can
|
|---|
| 108 | co-exist in the same source tree and may be used in parallel: all the debug DLLs
|
|---|
| 109 | get a 'd' letter in their name preceeding the Qt major version number and use
|
|---|
| 110 | separate directories for object files.
|
|---|
| [144] | 111 |
|
|---|
| [243] | 112 | To save time, you may also build the release and the debug versions of the
|
|---|
| 113 | library separately by typing 'make release' or 'make debug' accordingly
|
|---|
| 114 | instead of just 'make'.
|
|---|
| 115 |
|
|---|
| [148] | 116 | Once the library is successfully built, you may try to compile the demos
|
|---|
| [188] | 117 | and examples by visiting the individual example subdirectories in the source
|
|---|
| [148] | 118 | tree and typing 'qmake' followed by one of 'make', 'make release' or
|
|---|
| |
|---|