source: trunk/README.OS2@ 402

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

README.OS2: Small corrections.

File size: 12.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
87
88You should skip this section if you downloaded and installed a binary
89distribution of the Qt library for developers (qt-dev-X_Y_Z.wpi) and proceed
90directly to section USING OFFICIAL BINARY QT PACKAGES below.
91
92When the environment is set up, go to the directory where you unpacked the
93Qt4 source tree and type:
94
95 configure.cmd
96
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.
100
101The next step is to type:
102
103 make
104
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.
111
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
116Once the library is successfully built, you may try to compile the demos
117and examples by visiting the individual example subdirectories in the source
118tree and typing 'qmake' followed by one of 'make', 'make release' or
119'make debug' in that subdirectory.
120
121NOTE:
122
123 This version of Qt for OS/2 includes the Extended system tray plugin for
124 XCenter/eCenter which is necessary to enable Qt support for the special
125 notification area on the XCenter/eCenter panel (called the "system tray")
126 which is used by many long-running applications to display their status.
127 In order to activate this support, you need to install this plugin to your
128 XCenter or eCenter. The plugin is built during the normal Qt build process
129 and can be found in the file \plugins\xcenter\xsystray.dll in the Qt source
130 tree. In order to install the plugin, do the following:
131
132 a. Copy xsystray.dll to <XWorkplace installation folder>\plugins\xcenter\
133 (on eComStation, this will be C:\ecs\system\ewps\plugins\xcenter\ where
134 C: is your boot drive).
135
136 b. Restart WPS.
137
138 c. Add the "Extended system tray" widget to the XCenter/eCenter panel using
139 the XCenter context menu ('Create new widget').
140
141 Note that if you upgrade from the previous version of the plugin then
142 please unlock xsystray.dll in the target folder using the UNLOCK.EXE
143 utility (which you can find in the LxLite package, for example) before
144 performing step a., otherwise the copy operation will fail.
145
146IMPORTANT NOTE:
147
148 Please take into account that the Qt library you build on your own as
149 described above is NOT intended for wide distribution with Qt applications
150 you port or create. Such private Qt builds help you develop Qt applications
151 (because you can easily debug your program and parts of the Qt framework at
152 the source level) but being widely distributed they will create a so-called
153 DLL hell when a program running on a user computer crashes because it picks
154 up a wrong build of the Qt library. This will happen because even a single
155 change to Qt configuration options may make your build binary incompatible
156 with another build. And even if you convince the user to isolate different
157 DLLs (using BEGINLIBPATH and alike) it will create another major problem:
158 two different Qt applications will load two different Qt builds into memory
159 which will double resource usage; having three different builds will
160 tripple it and so on -- what a vaste of system resources!
161
162 In order to nicely solve this problem, netlabs.org provides the official
163 binary builds of the Qt library distributed as WPI packages which are
164 described in the next section.
165
166
167
168USING OFFICIAL BINARY QT PACKAGES
169
170For your convenience, netlabs.org provides the following binary distributions
171of the Qt library (where X_Y_Z is the Qt version number):
172
173 qt-lib-X_Y_Z.wpi - Runtime DLLs and binaries ("lib" package)
174 qt-dev-X_Y_Z.wpi - Development libraries, tools and headers ("dev" package)
175
176These packages are called the official binary packages of the Qt library for
177OS/2. An official binary distribution is the most complete Qt build available
178that enables all Qt library features and includes all standard Qt plugins that
179were implemented for OS/2.
180
181The "lib" package contains the release versions of DLLs (and may contain a few
182helper binaries) necessary to run applications created using the Qt framework.
183This package is usually installed by end users together with the Qt applications
184they want to use.
185
186The "dev" package contains pre-built release versions of import libraries and
187a complete set of C++ include headers of the Qt framework. This package is used
188by developers and porters of Qt applications to build release versions of the
189applications for OS/2 that are binary compatibie with the "lib" package
190described above.
191
192Using the "dev" package requires the same environment as the one necessary for
193building Qt and described in section SETTING UP THE ENVIRONMET above. The
194process of compiling Qt applications using the "dev" package is basically the
195same as with the hand made-build of Qt. Note, however, that if you are
196developing or porting a Qt application, it is still recommended that you build
197the debug version of the Qt library yourself and use it in your daily work since
198it will give you much more feedback than the stripped down release version
199contained in the "dev" package. The "dev" package, as said above, is intended
200for making the final release build of the application for subsequent
201distribution together with the official "lib" package.
202
203Besides the binary "lib" and the "dev" packages, the following official
204non-binary packages exist that you may also find useful:
205
206 qt-examples-src-X_Y_Z.wpi - Demo and example sources ("examples")
207
208NOTE:
209
210 All .DLL and .EXE files of the official binary build contain a DESCRIPTION
211 string with the vendor field set to "netlabs.org" (by contrast, all custom
212 Qt builds will set the vendor field to what the USER environment variable
213 contains or to "anonymous" if USER is not set). Please note that you must
214 NOT set vendor to "netlabs.org" when creating your own builds of the Qt
215 library because it will make it really difficult to identify various
216 distributions and track possible problems with the builds.
217
218
219
220CURRENT LIMITATIONS
221
222 1. configure.cmd is not yet capable to generate individual Makefiles for demos
223 and examples, it only generates the main Makefile that builds the library
224 and the necessary tools. Demos and examples can be compiled by hand
225 (as described above).
226
227 2. OS/2 bitmap fonts are not yet supported. Use TTF or Type1 (PFB) fonts with
228 Qt.
229
230 3. In order to let Qt correctly detect the regional settings and choose the
231 right language for translating the user interface, the LANG environment
232 variable must be set. The format is
233
234 set LANG=ll_CC
235
236 where <ll> is the language code and <CC> is the country code (refer to
237 wikipedia.org to find correct letters for your langage and country if you
238 do not know them). Note that the optional encoding part of the LANG
239 specification is ignored by Qt for OS/2 since 4.5.1 Beta 5 because it now
240 detects the encoding automatically based on the system OS/2 settings.
241
242 Later, the correct language will be detected from the system settings and
243 specifying LANG will be not necessary at all.
244
245 4. Some functionality of the already available Qt classes may be limited or
246 unimplemented. If you find such a case and there is no ticket for it
247 in the bug tracker, feel free to add one.
248
249 5. No qt3support module. This functionality is rarely necessary in mature
250 real life applications and has low priority.
251
252 6. No native PM style, but Qt will use fonts and colors from the current
253 OS/2 theme. Hint: if your default OS/2 font is "WarpSans", install the
254 "Workplace Sans" TTF font from Alex Taylor to get more native look & feel.
255 It is recommended to install version 0.6 of the Normal face and version 0.2
256 of the Bold face which you can find here:
257
258 http://users.socis.ca/~ataylo00/creative/fonts/workplace/
259
260 7. QProcess: when starting PM applications from text-mode applications and
261 when detaching applications with startDetached(), the returned PID is a
262 PID of the intermediate cmd.exe process, not the target application.
263
264 8. No QDesigner, no QAssistant.
265
266 9. No Drag&Drop, no printer support. See the project roadmap for more
267 information on the current progress and future plans:
268
269 http://svn.netlabs.org/qt4/roadmap
270
271
272
273CREDITS
274
275Dmitry A. Kuminov (development)
276Silvan Scherrer (management)
277
278netlabs.org (hosting & support)
279
280Nokia Corporation (original Qt library)
281
282We also want to THANK all individuals and organizations who made the donations
283to this project and helped to make it happen. Please visit
284
285 http://qt.netlabs.org/en/site/index.xml
286
287to get the full list of sponsors and to find information on how you can support
288the project.
289
290
291Qt is a trademark of Nokia Corporation and/or its subsidiary(-ies).
292OS/2 and OS/2 Warp are trademarks of the IBM Corporation and/or its subsidiary(-ies).
293eComStation is a trademark of Serenity Systems International and/or its subsidiary(-ies).
294Etc.
Note: See TracBrowser for help on using the repository browser.