1 | This is Beta 2 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 library
|
---|
4 | plus a brief list of OS/2-specific changes from release to release (section
|
---|
5 | CHANGES below). Please visit the project page at
|
---|
6 |
|
---|
7 | http://svn.netlabs.org/qt4/wiki
|
---|
8 |
|
---|
9 | to get more information and the latest news and also to report bugs.
|
---|
10 |
|
---|
11 |
|
---|
12 |
|
---|
13 | REQUIREMENTS
|
---|
14 |
|
---|
15 | In order to compile the Qt library, you will need the following tools:
|
---|
16 |
|
---|
17 | - One of the OS/2 Warp 4, OS/2 Warp 4.5 or eComStation operating systems.
|
---|
18 |
|
---|
19 | - InnoTek GCC compiler version 3.3.5 CSD3 or above (not tested).
|
---|
20 | You can download a copy of the compiler using the following link:
|
---|
21 |
|
---|
22 | ftp://ftp.netlabs.org/pub/gcc/GCC-3.3.5-csd3.zip
|
---|
23 |
|
---|
24 | - Patched OpenWatcom linker which you can download from:
|
---|
25 |
|
---|
26 | ftp://ftp.netlabs.org/pub/gcc/wl-hll-r1.zip
|
---|
27 |
|
---|
28 | Note that if you use IBM ILINK (no matter what version), you will
|
---|
29 | not be able to build the debug version of the library due to
|
---|
30 | bugs/limitations of ILINK.
|
---|
31 |
|
---|
32 | - GNU Make 3.81beta1 or above (not tested) available at:
|
---|
33 |
|
---|
34 | http://unix.os2site.com/pub/binary/make/make-3_81beta1-bin-static.zip
|
---|
35 |
|
---|
36 | After unpacking the GCC archive, you will have to set up the compiler
|
---|
37 | environment by invoking gccenv.cmd from the bin subdirectory with the
|
---|
38 | correct arguments (type gccenv.cmd -? for help). For the OpenWatcom
|
---|
39 | linker, specify WLINK as the second argument. You will also need to perform
|
---|
40 | the following steps:
|
---|
41 |
|
---|
42 | - Make sure the selected linker and the make utility are in PATH.
|
---|
43 |
|
---|
44 | - Make sure CMD.EXE is your command line processor (the generated makefiles
|
---|
45 | will rely on its 'copy', 'if' and other commands).
|
---|
46 |
|
---|
47 | - set LIBRARY_PATH=C:\OS2\DLL;C:\MPTN\DLL where C: is your boot drive.
|
---|
48 |
|
---|
49 | Note that the QTDIR environment variable used by previous Qt versions is not
|
---|
50 | used by Qt4 anymore (except two rare cases that do not affect the OS/2 platform
|
---|
51 | anyway and are probably leftovers after the migration of the qmake feature
|
---|
52 | specifications to Qt4). Therefore, there is no need to set this variable
|
---|
53 | explicitly. See a note below about
|
---|
54 |
|
---|
55 | There is also no need to set the QMAKESPEC variable explicitly. If it is absent,
|
---|
56 | qmake will use the specification stored in the <Qt4_Home>/mkspecs/default
|
---|
57 | directory, which on OS/2 always refers to the "os2-g++" specification, the only
|
---|
58 | one supported at the present time.
|
---|
59 |
|
---|
60 | When the environment is set up, go to the directory where you unpacked the
|
---|
61 | Qt4 source tree and type:
|
---|
62 |
|
---|
63 | configure.cmd
|
---|
64 |
|
---|
65 | This will set up the library (create necessary configuration and include files)
|
---|
66 | and build the qmake utility.
|
---|
67 |
|
---|
68 | The next step is to go to the src subdirectory and type:
|
---|
69 |
|
---|
70 | make
|
---|
71 |
|
---|
72 | This will compile and link the library. Note that by default both the release
|
---|
73 | and the debug version of the library are built (please be patient, it may take
|
---|
74 | quite some time depending on your hardware). The release and debug libraries can
|
---|
75 | co-exist in the same source tree and may be used in parallel: all the debug DLLs
|
---|
76 | get a 'd' letter in their name preceeding the Qt major version number and use
|
---|
77 | separate directories for object files.
|
---|
78 |
|
---|
79 | To save time, you may also build the release and the debug versions of the
|
---|
80 | library separately by typing 'make release' or 'make debug' accordingly
|
---|
81 | instead of just 'make'.
|
---|
82 |
|
---|
83 | Once the library is successfully built, you may try to compile the demos
|
---|
84 | and examples by visiting the individual example subdirectories in the source
|
---|
85 | tree and typing 'qmake' followed by one of 'make', 'make release' or
|
---|
|
---|