@@ -30,9 +30,10 @@ will need the following:
30
30
Metakit Compilation
31
31
-------------------
32
32
To compile PortaBase, Metakit must be compiled first. PortaBase uses a
33
- version of 2.4.9.3 patched to allow case-sensitive searches and
34
- locale-sensitive sorting. Therefore, the patch file metakit-2.4.9.3.patch
35
- must be applied to the Metakit 2.4.9.3 source tree before building.
33
+ version of 2.4.9.3 patched to allow case-sensitive searches, locale-sensitive
34
+ sorting, and unicode filename support where available. Therefore, the patch
35
+ file metakit-2.4.9.3.patch must be applied to the Metakit 2.4.9.3 source tree
36
+ before building.
36
37
37
38
To build Metakit for the desktop test environment, run dev-x86-qpe.sh and then
38
39
follow the Metakit installation instructions (in the Metakit README file).
@@ -60,51 +61,63 @@ Metakit for use in Linux desktop PortaBase, just follow the README directions.
60
61
BeeCrypt compilation
61
62
--------------------
62
63
Get BeeCrypt version 3.1.0. For the desktop versions of PortaBase, just
63
- follow the build instructions found in Beecrypt 's INSTALL file. For the
64
+ follow the build instructions found in BeeCrypt 's INSTALL file. For the
64
65
Zaurus version, run the configure script as follows:
65
66
66
- NM=arm-linux-nm LD=arm-linux-ld CC=arm-linux-gcc CXX=arm-linux-g++ RANLIB=arm-linux-ranlib AR=arm-linux-ar ./configure --prefix=/output/dir --host=arm-linux --enable-aio=no --with-javaglue=no --enable-static --enable-optimized=no
67
+ NM=arm-linux-nm LD=arm-linux-ld CC=arm-linux-gcc CXX=arm-linux-g++ RANLIB=arm-linux-ranlib AR=arm-linux-ar ./configure --prefix=/output/dir --host=arm-linux --enable-aio=no
67
68
68
69
As with Metakit, replace /output/dir with the directory in which to place
69
70
the results. Copy libbeecrypt.a to the same place the Metakit library went.
70
71
71
72
libjpeg compilation
72
73
-------------------
73
- Get version 6b from http://www.ijg.org. For the desktop versions, follow the
74
- build instructions from the install.doc file that comes with the source code.
75
- For the Zaurus version, run the configure script as follows:
74
+ For desktop Linux, this is probably already on your system; just make sure to
75
+ install the appropriate dev package if it hasn't already been installed (for
76
+ Debian this is libjpeg62-dev). For Windows, get version 6b from
77
+ http://www.ijg.org and follow the build instructions from the install.doc file
78
+ that comes with the source code. For the Zaurus version, it's easiest to just
79
+ use the Debian arm package for libjpeg62-dev; after downloading the .deb file,
80
+ you can extract the necessary files by running:
76
81
77
- NM=arm-linux-nm LD=arm-linux-ld CC=arm-linux-gcc CXX=arm-linux-g++ RANLIB=arm-linux-ranlib AR=arm-linux-ar ./configure --prefix=/output/dir --host=arm-linux
82
+ ar x libjpeg62-dev_6b-9_arm.deb
83
+ tar xzf data.tar.gz
84
+
85
+ Move libjpeg.a to /opt/Qtopia/sharp/lib and the include files to
86
+ /opt/Qtopia/sharp/include.
78
87
79
88
Note that if you're attempting to compile using Borland C++, you'll have to
80
89
make a few changes to the code: see http://www.bcbdev.com/articles/jpeg.htm
81
90
for details.
82
91
83
92
PortaBase for Zaurus Compilation
84
93
--------------------------------
85
- After compiling Metakit and Beecrypt as described above, PortaBase can be
86
- compiled in the usual manner for Qtopia applications. Use tmake on
87
- portabase_test.pro for desktop testing and portabase.pro when building for
88
- the Zaurus; tmake usage is described in the compiler setup HOWTO mentioned
89
- above. "arm-linux-strip" should be run on the Arm version of the
90
- "portabase" executable in order to reduce its size by removing unneeded
91
- debugging information and such.
94
+ After compiling Metakit, BeeCrypt, and libjpeg as described above, PortaBase
95
+ can be compiled in the usual manner for Qtopia applications. Use tmake on
96
+ portabase.pro; tmake usage is described in the compiler setup HOWTO mentioned
97
+ above. Use "qtopia" as one of the CONFIG parameters in the file.
98
+ "arm-linux-strip" should be run on the resulting "portabase" executable in
99
+ order to reduce its size by removing unneeded debugging information and such.
92
100
93
101
To compile a version with support for the file navigation widget on
94
- newer Sharp ROMs, use portabase_sharp.pro instead. You will also need the
95
- development files for Sharp's custom Zaurus libraries; these are available
96
- from the following (Japanese) page:
102
+ newer Sharp ROMs, replace the "qtopia" CONFIG parameter with "sharp". You
103
+ will also need the development files for Sharp's custom Zaurus libraries;
104
+ these are available from the following (Japanese) page:
97
105
98
106
http://developer.ezaurus.com/sl_j/doc/reference.htm
99
107
108
+ To compile for the desktop Qtopia test environment, add "test" to the list of
109
+ CONFIG parameters.
110
+
100
111
PortaBase for Windows Compilation, Packaging
101
112
--------------------------------------------
102
113
- Install Qt version 3.2 or newer and configure it (make sure the "bin"
103
114
directory is in your path and that the QTDIR and QMAKESPEC environment
104
115
variables are set correctly).
105
- - Adjust the value of INCLUDEPATH in portabase_desktop.pro as needed to locate
106
- the library header files on your system.
107
- - Run "qmake -t vcapp -o portabase.dsp portabase_desktop.pro"
116
+ - Adjust the value of INCLUDEPATH in portabase.pro as needed to locate the
117
+ library header files on your system.
118
+ - Make sure that "desktop" is among the CONFIG parameters in portabase.pro
119
+ (and that "qtopia", "sharp", and "test" aren't).
120
+ - Run "qmake -t vcapp -o portabase.dsp portabase.pro"
108
121
- Copy beecrypt.dll, beecrypt.lib, libjpeg.lib, and mk4vc60s.lib to the
109
122
PortaBase source directory.
110
123
- Open the generated portabase.dsp file in Visual C++, and from
@@ -113,7 +126,7 @@ PortaBase for Windows Compilation, Packaging
113
126
- Copy qt-mtnc321.dll from Qt's "lib" directory to the Release subdirectory
114
127
created by Visual C++.
115
128
- Copy msvcrt.dll to the PortaBase source directory.
116
- - Run "lrelease portabase_desktop .pro" to generate the UI translation files.
129
+ - Run "lrelease portabase .pro" to generate the UI translation files.
117
130
- Open portabase.iss with Inno Setup and choose "Compile"
118
131
119
132
Debian Package Building
@@ -130,9 +143,11 @@ Linux/UNIX compilation
130
143
----------------------
131
144
- Set the QMAKESPEC and QTDIR environment variables as appropriate for your
132
145
platform
133
- - Make sure the Metakit and Beecrypt static libraries (.a) are in your
146
+ - Make sure the Metakit and BeeCrypt static libraries (.a) are in your
134
147
LD_LIBRARY_PATH, and that the other library files (.so, .la, etc.) aren't.
135
- - Run qmake on portabase_desktop.pro
148
+ - Make sure that "desktop" is among the CONFIG parameters in portabase.pro
149
+ (and that "qtopia", "sharp", and "test" aren't).
150
+ - Run qmake on portabase.pro
136
151
- Run make
137
152
138
153
Linux/UNIX installation
@@ -154,8 +169,8 @@ files into the correct locations:
154
169
/usr/share/doc/portabase/ja/portabase.html
155
170
/usr/share/doc/portabase/ja/portabase.qm
156
171
157
- ...and so on. (The portabase.qm files are created by running lrelease on the
158
- .pro file .)
172
+ ...and so on. (The portabase.qm files are created by running lrelease on
173
+ portabase .pro.)
159
174
160
175
Package Building
161
176
----------------
@@ -168,17 +183,19 @@ directory hierarchy as root in a directory of your choice:
168
183
/portabase/opt/QtPalmtop/bin/portabase
169
184
/portabase/opt/QtPalmtop/help/en/html/portabase.html
170
185
/portabase/opt/QtPalmtop/help/ja/html/portabase.html
171
- /portabase/opt/QtPalmtop/help/tw /html/portabase.html
186
+ /portabase/opt/QtPalmtop/help/zh_TW /html/portabase.html
172
187
/portabase/opt/QtPalmtop/i18n/cs/portabase.qm
173
188
/portabase/opt/QtPalmtop/i18n/fr/portabase.qm
174
189
/portabase/opt/QtPalmtop/i18n/ja/portabase.qm
175
- /portabase/opt/QtPalmtop/i18n/tw /portabase.qm
190
+ /portabase/opt/QtPalmtop/i18n/zh_TW /portabase.qm
176
191
/portabase/opt/QtPalmtop/pics/PortaBase.png
177
192
/portabase/opt/QtPalmtop/pics/portabase/QtaDatePickerNext.xpm
178
193
/portabase/opt/QtPalmtop/pics/portabase/QtaDatePickerPrev.xpm
179
194
/portabase/opt/QtPalmtop/pics/portabase/calc.png
180
195
/portabase/opt/QtPalmtop/pics/portabase/calendar.xpm
181
196
/portabase/opt/QtPalmtop/pics/portabase/checked.png
197
+ /portabase/opt/QtPalmtop/pics/portabase/image.png
198
+ /portabase/opt/QtPalmtop/pics/portabase/note.png
182
199
/portabase/opt/QtPalmtop/pics/portabase/save.png
183
200
/portabase/opt/QtPalmtop/pics/portabase/save_disabled.png
184
201
/portabase/opt/QtPalmtop/pics/portabase/unchecked.png
0 commit comments