| 1 | This is Beta 5 of Qt version 4.5.1 for OS/2 and eCS.
|
|---|
| 2 |
|
|---|
| 3 | This document contains a brief information on the OS/2 version of the Qt
|
|---|
| 4 | library. Please visit the project page at
|
|---|
| 5 |
|
|---|
| 6 | http://svn.netlabs.org/qt4/wiki
|
|---|
| 7 |
|
|---|
| 8 | to get more information and the latest news and also to report bugs.
|
|---|
| 9 |
|
|---|
| 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.
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 | REQUIREMENTS
|
|---|
| 16 |
|
|---|
| 17 | In order to compile the Qt library and Qt-based applications, you will need
|
|---|
| 18 | the following tools:
|
|---|
| 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 |
|
|---|
| 27 | - Patched OpenWatcom linker which you can download from here:
|
|---|
| 28 |
|
|---|
| 29 | ftp://ftp.netlabs.org/pub/gcc/wl-hll-r1.zip
|
|---|
| 30 |
|
|---|
| 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.
|
|---|
| 34 |
|
|---|
| 35 | - GNU Make 3.81beta1 or above (not tested) available at:
|
|---|
| 36 |
|
|---|
| 37 | http://unix.os2site.com/pub/binary/make/make-3_81beta1-bin-static.zip
|
|---|
| 38 |
|
|---|
| 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 |
|
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 | SETTING UP THE ENVIRONMENT
|
|---|
| 49 |
|
|---|
| 50 | After unpacking the GCC archive, you will have to set up the compiler
|
|---|
| 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.
|
|---|
| 54 |
|
|---|
| 55 | You will also need to perform the following steps:
|
|---|
| 56 |
|
|---|
| 57 | - Make sure the selected linker, the make utility and LxLite executable are
|
|---|
| 58 | in PATH.
|
|---|
| 59 |
|
|---|
| 60 | - Make sure CMD.EXE is your command line processor (the generated makefiles
|
|---|
| 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.
|
|---|
| 64 |
|
|---|
| 65 | - set LIBRARY_PATH=C:\OS2\DLL;C:\MPTN\DLL where C: is your boot drive.
|
|---|
| 66 |
|
|---|
| 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 |
|
|---|
| 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
|
|---|
| 77 | explicitly. See also a note below about hard-coded paths to the source tree.
|
|---|
| 78 |
|
|---|
| 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.
|
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 |
|
|---|
| 86 | COMPILING QT
|
|---|
|
|---|