1 | This is Beta 4 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 here:
|
---|
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 | - LxLite 1.3.3 or above (not tested) if you want Qt DLLs and application
|
---|
37 | executables to be compressed (to save hard disk space and load time). If
|
---|
38 | you have a recent eComStation installation (e.g. 2.0 rc6) you will already
|
---|
39 | have LxLite installed. Otherwise, you may take it from here:
|
---|
40 |
|
---|
41 | http://www.os2site.com/sw/util/archiver/lxlt133.zip
|
---|
42 |
|
---|
43 | After unpacking the GCC archive, you will have to set up the compiler
|
---|
44 | environment by invoking gccenv.cmd from the bin subdirectory with the
|
---|
45 | correct arguments (type gccenv.cmd -? for help). For the OpenWatcom
|
---|
46 | linker, specify WLINK as the second argument.
|
---|
47 |
|
---|
48 | You will also need to perform the following steps:
|
---|
49 |
|
---|
50 | - Make sure the selected linker, the make utility and LxLite executable are
|
---|
51 | in PATH.
|
---|
52 |
|
---|
53 | - Make sure CMD.EXE is your command line processor (the generated makefiles
|
---|
54 | will rely on its 'copy', 'if' and other commands). If you have a Unix shell
|
---|
55 | (SH.EXE) in your environment, you may need to force GNU make to use CMD.EXE
|
---|
56 | by doing 'set MAKESHELL=C:\OS2\CMD.EXE' where C: is your boot drive.
|
---|
57 |
|
---|
58 | - set LIBRARY_PATH=C:\OS2\DLL;C:\MPTN\DLL where C: is your boot drive.
|
---|
59 |
|
---|
60 | - Make sure that there are no traces of any other Watcom or OpenWatcom
|
---|
61 | installation in the environment where you build Qt as it will most likely
|
---|
62 | interfere with the patched OpenWatcom linker we use. This basically means
|
---|
63 | removing all *WATCOM* environment variables and removing references to those
|
---|
64 | Watcom installations from PATH.
|
---|
65 |
|
---|
66 | Note that the QTDIR environment variable used by previous Qt versions is not
|
---|
67 | used by Qt4 anymore (except two rare cases that do not affect the OS/2 platform
|
---|
68 | anyway and are probably leftovers after the migration of the qmake feature
|
---|
69 | specifications to Qt4). Therefore, there is no need to set this variable
|
---|
70 | explicitly. See also a note below about hard-coded paths to the source tree.
|
---|
71 |
|
---|
72 | There is also no need to set the QMAKESPEC variable explicitly. If it is absent,
|
---|
73 | qmake will use the specification stored in the <Qt4_Home>/mkspecs/default
|
---|
74 | directory, which on OS/2 always refers to the "os2-g++" specification, the only
|
---|
75 | one supported at the present time.
|
---|
76 |
|
---|
77 | When the environment is set up, go to the directory where you unpacked the
|
---|
78 | Qt4 source tree and type:
|
---|
79 |
|
---|
80 | configure.cmd
|
---|
81 |
|
---|
82 | This will set up the library (by creating necessary configuration and include
|
---|
83 | files and a bunch of Makefiles for variuos components) and build the qmake
|
---|
84 | utility.
|
---|
85 |
|
---|
86 | The next step is to go to the src subdirectory and type:
|
---|
87 |
|
---|
88 | make
|
---|
89 |
|
---|
90 | This will compile and link the library. Note that by default both the release
|
---|
91 | and the debug version of the library are built (please be patient, it may take
|
---|
92 | quite some time depending on your hardware). The release and debug libraries can
|
---|
93 | co-exist in the same source tree and may be used in parallel: all the debug DLLs
|
---|
94 | get a 'd' letter in their name preceeding the Qt major version number and use
|
---|
95 | separate directories for object files.
|
---|
96 |
|
---|
97 | To save time, you may also build the release and the debug versions of the
|
---|
98 | library separately by typing 'make release' or 'make debug' accordingly
|
---|
99 | instead of just 'make'.
|
---|
100 |
|
---|
101 | Once the library is successfully built, you may try to compile the demos
|
---|
102 | and examples by visiting the individual example subdirectories in the source
|
---|
103 | tree and typing 'qmake' followed by one of 'make', 'make release' or
|
---|
104 | 'make debug' in that subdirectory.
|
---|
105 |
|
---|
106 | NOTES:
|
---|
107 |
|
---|
108 | 1. Please keep in mind that due to dropping the QTDIR variable recognition,
|
---|
109 | qmake.exe now unconditionally uses hard-coded paths to locate various Qt4
|
---|
110 | components (such as the include or source directory) during the makefile
|
---|
111 | generation process and therefore if you move the Qt source tree to another
|
---|
112 | location you will need to run configure.cmd again in order to update these
|
---|
113 | hard-coded paths and rebuild qmake and other dependent parts of the
|
---|
114 | library.
|
---|
115 |
|
---|
116 | 2. This version of Qt for OS/2 includes the Extended system tray plugin for
|
---|
117 | XCenter/eCenter which is necessary to enable Qt support for the special
|
---|
118 | notification area on the XCenter/eCenter panel (called the "system tray")
|
---|
119 | which is used by many long-running applications to display their status.
|
---|
120 | In order to activate this support, you need to install this plugin to your
|
---|
121 | XCenter or eCenter. The plugin is built during the normal Qt build process
|
---|
122 | and can be found in the file \plugins\xcenter\xsystray.dll in the Qt source
|
---|
123 | tree. In order to install the plugin, do the following:
|
---|
124 |
|
---|
125 | a. Copy xsystray.dll to <XWorkplace installation folder>\plugins\xcenter\
|
---|
126 | (on eComStation, this will be C:\ecs\system\ewps\plugins\xcenter\ where
|
---|
127 | C: is your boot drive).
|
---|
128 |
|
---|
129 | b. Restart WPS.
|
---|
130 |
|
---|
131 | c. Add the "Extended system tray" widget to the XCenter/eCenter panel using
|
---|
132 | the XCenter context menu ('Create new widget').
|
---|
133 |
|
---|
134 | Note that if you upgrade from the previous version of the plugin then
|
---|
135 | please unlock xsystray.dll in the target folder using the UNLOCK.EXE
|
---|
136 | utility (which you can find in the LxLite package, for example) before
|
---|
137 | performing step a., otherwise the copy operation will fail.
|
---|
138 |
|
---|
139 |
|
---|
140 |
|
---|
141 | CURRENT LIMITATIONS
|
---|
142 |
|
---|
143 | 1. configure.cmd is not yet capable to generate individual Makefiles for demos
|
---|
144 | and examples, it only generates the main Makefile that builds the library
|
---|
145 | and the necessary tools. Demos and examples can be compiled by hand
|
---|
146 | (as described above).
|
---|
147 |
|
---|
148 | 2. OS/2 bitmap fonts are not yet supported. Use TTF or Type1 (PFB) fonts with
|
---|
149 | Qt.
|
---|
150 |
|
---|
151 | 3. Make sure you have the LANG environment variable properly set. The format
|
---|
152 | is 'set LANG=ll_CC[.encoding]' where <ll> is the language code, <CC> is the
|
---|
153 | country code and <encoding> is the optional encoding to use. If LANG is
|
---|
154 | missing or invalid, string conversion operations may work incorrectly
|
---|
155 | resulting in distorted text input or output. Note that for most languages
|
---|
156 | you will have to specify the encoding number explicitly because Qt and OS/2
|
---|
157 | usually disagree about the default encoding for the given language.
|
---|
158 |
|
---|
159 | To specify the correct encoding for Qt you need to know your system code
|
---|
160 | page number. You can find this number in the CODEPAGE statement of your
|
---|
161 | CONFIG.SYS. Note however that the code page number from CONFIG.SYS and the
|
---|
162 | encoding name you specify in LANG are different things. Qt doesn't
|
---|
163 | understand IBM code page numbers directly. In most cases, you can get the
|
---|
164 | encoding name by prepending 'cp' to the code page number (for example,
|
---|
165 | 'cp850' for code page 850) but sometimes this will not work because not all
|
---|
166 | encodings have 'cp'-like aliases. In this case, you should google around to
|
---|
167 | find the correct encoding name for your code page number. Here is a couple
|
---|
168 | of examples of the proper LANG specification:
|
---|
169 |
|
---|
170 | set LANG=de_DE.cp850 - for the German OS/2 locale
|
---|
171 | set LANG=ru_RU.cp866 - for the Russian OS/2 locale
|
---|
172 |
|
---|
173 | Later, the correct encoding for the system code page will be detected
|
---|
174 | automatically and specifying it in LANG will not be necessary.
|
---|
175 |
|
---|
176 | 4. Some functionality of the already available Qt classes may be limited or
|
---|
177 | unimplemented. If you find such a case and there is no ticket for it
|
---|
178 | in the bug tracker, feel free to add one.
|
---|
179 |
|
---|
180 | 5. No qt3support module. This functionality is rarely necessary in mature
|
---|
181 | real life applications and has low priority.
|
---|
182 |
|
---|
183 | 6. No native PM style, but Qt will use fonts and colors from the current
|
---|
184 | OS/2 theme. Hint: if your default OS/2 font is "WarpSans", install the
|
---|
185 | "Workplace Sans" TTF font from Alex Taylor to get more native look & feel.
|
---|
186 | It is recommended to install version 0.6 of the Normal face and version 0.2
|
---|
187 | of the Bold face which you can find here:
|
---|
188 |
|
---|
189 | http://users.socis.ca/~ataylo00/creative/fonts/workplace/
|
---|
190 |
|
---|
191 | 7. QProcess: when starting PM applications from text-mode applications and
|
---|
192 | when detaching applications with startDetached(), the returned PID is a
|
---|
193 | PID of the intermediate cmd.exe process, not the target application.
|
---|
194 |
|
---|
195 | 8. No QDesigner, no QAssistant.
|
---|
196 |
|
---|
197 | 9. No clipboard, no Drag&Drop, no printer support. See the project roadmap for
|
---|
198 | more information on the current progress and future plans:
|
---|
199 |
|
---|
200 | http://svn.netlabs.org/qt4/roadmap
|
---|
201 |
|
---|
202 |
|
---|
203 |
|
---|
204 | CHANGES
|
---|
205 |
|
---|
206 | Beta 4 (11-11-2009)
|
---|
207 |
|
---|
208 | Improvements:
|
---|
209 |
|
---|
210 | - Added sound support (implemented QSound class).
|
---|
211 |
|
---|
212 | - Added system tray support (QSystemTrayIcon class). This support requires
|
---|
213 | the Extended system tray XCenter plugin to be installed. See the note above
|
---|
214 | on how to compile and install this plugin.
|
---|
215 |
|
---|
216 | - Enabled QPlugin support on OS/2. This in turn enables SVG support for
|
---|
217 | QIcon (which is built as a Qt plugin DLL by default).
|
---|
218 |
|
---|
219 | - Better widget modality support (widgets blocked by modality cannot be
|
---|
220 | activated and moved using the mouse and the title bar anymore).
|
---|
221 |
|
---|
222 | - Added support for 'console' and 'windows' CONFIG options in .pro files.
|
---|
|
---|