source: trunk/README.OS2@ 496

Last change on this file since 496 was 429, checked in by Dmitry A. Kuminov, 16 years ago

README.OS2: Added ENVIRONMENT variables section.

File size: 14.6 KB
Line 
1This is Beta 5 of Qt version 4.5.1 for OS/2 and eCS.
2
3This document contains a brief information on the OS/2 version of the Qt
4library. Please visit the project page at
5
6 http://svn.netlabs.org/qt4/wiki
7
8to get more information and the latest news and also to report bugs.
9
10To get a brief list of OS/2-specific changes from release to release
11please see the CHANGES.OS2 file included in this distribution.
12
13
14
15REQUIREMENTS
16
17In order to compile the Qt library and Qt-based applications, you will need
18the 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
48SETTING UP THE ENVIRONMENT
49
50After unpacking the GCC archive, you will have to set up the compiler
51environment by invoking gccenv.cmd from the bin subdirectory with the correct
52arguments (type gccenv.cmd -? for help). For the OpenWatcom linker, specify
53WLINK as the second argument.
54
55You 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
73Note that the QTDIR environment variable used by previous Qt versions is not
74used by Qt4 anymore (except two rare cases that do not affect the OS/2 platform
75anyway and are probably leftovers after the migration of the qmake feature
76specifications to Qt4). Therefore, there is no need to set this variable
77explicitly. See also a note below about hard-coded paths to the source tree.
78
79There is also no need to set the QMAKESPEC variable explicitly. If it is absent,
80qmake will use the specification stored in the <Qt4_Home>/mkspecs/default
81directory, which on OS/2 always refers to the "os2-g++" specification, the only
82one supported at the present time.
83
84
85
86COMPILING QT