source: trunk/README.OS2@ 420

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

README.OS2: Added info on how to build demos and examples from WPI.

File size: 12.9 KB
RevLine 
[397]1This is Beta 5 of Qt version 4.5.1 for OS/2 and eCS.
[144]2
[397]3This document contains a brief information on the OS/2 version of the Qt
4library. Please visit the project page at
[144]5
6 http://svn.netlabs.org/qt4/wiki
7
[188]8to get more information and the latest news and also to report bugs.
[144]9
[397]10To get a brief list of OS/2-specific changes from release to release
11please see the CHANGES.OS2 file included in this distribution.
[144]12
[188]13
[397]14
[144]15REQUIREMENTS
16
[397]17In order to compile the Qt library and Qt-based applications, you will need
18the 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
48SETTING UP THE ENVIRONMENT
49
[144]50After unpacking the GCC archive, you will have to set up the compiler
[402]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.
[144]54
[259]55You 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]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
[259]77explicitly. See also a note below about hard-coded paths to the source tree.
[144]78
[188]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.
[144]83
[397]84
85
86COMPILING QT
87
88You should skip this section if you downloaded and installed a binary
[402]89distribution of the Qt library for developers (qt-dev-X_Y_Z.wpi) and proceed
90directly to section USING OFFICIAL BINARY QT PACKAGES below.
[397]91
[144]92When the environment is set up, go to the directory where you unpacked the
93Qt4 source tree and type:
94
95 configure.cmd
96
[259]97This will set up the library (by creating necessary configuration and include
98files and a bunch of Makefiles for variuos components) and build the qmake
99utility.
[144]100
[402]101The next step is to type:
[144]102
[148]103 make
[144]104
[148]105This will compile and link the library. Note that by default both the release
106and the debug version of the library are built (please be patient, it may take
107quite some time depending on your hardware). The release and debug libraries can
108co-exist in the same source tree and may be used in parallel: all the debug DLLs
109get a 'd' letter in their name preceeding the Qt major version number and use
110separate directories for object files.
[144]111
[243]112To save time, you may also build the release and the debug versions of the
113library separately by typing 'make release' or 'make debug' accordingly
114instead of just 'make'.
115
[148]116Once the library is successfully built, you may try to compile the demos
[188]117and examples by visiting the individual example subdirectories in the source
[148]118tree and typing 'qmake' followed by one of 'make', 'make release' or