source: tspsg/INSTALL.txt @ b574c383b7

0.1.3.145-beta1-symbian0.1.4.170-beta2-bb10appveyorimgbotreadme
Last change on this file since b574c383b7 was 317ba0432e, checked in by Oleksii Serdiuk, 15 years ago
  • Improved the solution output generation algorithm. Now it works directly with QTextDocument instead of "feeding" it with HTML. Thanks to this the solution output generation is now about 1.65 times faster.
  • Added .txt extension to ChangeLog?, INSTALL and README files to simplify opening these files in Windows.
  • Made a small improvement to Settings Dialog to follow the current application palette.
  • Output text color if not set is now determmined based on the current application palette.
  • Property mode set to 100644
File size: 8.5 KB
Line 
1==========================
2 TSPSG Installation Guide
3==========================
4
5Thank you for trying TSPSG. This document will guide you through the
6steps necessary to compile and run TSPSG.
7
8TABLE OF CONTENTS:
9
10  1. REQUIREMENTS
11  2. ASSUMPTIONS
12  3. SUPPORTED PLATFORMS
13  4. BUILDING AND INSTALLATION
14     4.1. GENERAL PROCEDURE
15     4.2. LINUX/UNIX
16     4.3. WINDOWS
17          4.3.1. USING MINGW
18          4.3.2. USING VISUAL STUDIO
19     4.4. WINDOWS MOBILE
20     4.5. SYMBIAN
21     4.6. OTHER PLATFORMS, SUPPORTED BY QT
22  5. UNINSTALLATION
23  6. TROUBLESHOOTING
24     6.1. WINDRES.EXE CRASH
25  7. NOTES
26  8. REFERENCES
27
28
29
301. REQUIREMENTS
31===============
32
33To be able compile TSPSG you need to have Qt libraries. The minimum
34supported version of Qt is 4.4.0. The recommended version is 4.5.x
35or higher.
36
37
38
392. ASSUMPTIONS
40==============
41
42This guide assumes that you already have Qt libraries and all necessary
43prerequisites installed.
44
45Also, the following assumptions are made:
46
47  - For Linux/UNIX: lrelease and qmake are avilable in $PATH.
48
49  - For Windows (minGW) and Symbian: you have installed Qt SDK or
50    prebuilt libraries and have Start Menu items for Qt tools.
51
52  - For Windows (Visual Studio) and Windows Mobile: the Qt libraries
53    reside in C:\Qt\.
54
55  - For Windows Mobile: Windows Mobile 5.0 Pocket PC SDK or later is
56    installed.
57
58
59
603. SUPPORTED PLATFORMS
61======================
62
63TSPSG is oficially supported and tested on the following platforms:
64
65  - Linux: Gentoo AMD64 and Kubuntu 9.10 64-bit AMD.
66
67  - Windows: Windows XP 32-bit and Windows 7 64-bit.
68
69  - Windows Mobile: Windows Mobile 6.5 Professional Edition.
70
71
72
734. BUILDING AND INSTALLATION
74============================
75
764.1 GENERAL PROCEDURE
77
78On most platforms the general building and installation procedure is:
79
80  1. Run lrelease to generate binary translation files (.qm) from the
81     source (.ts).
82
83  2. Run qmake with CONFIG+=release parameter to generate makefiles.
84
85  3. Run make utility (e.g., make, nmake, mingw32-make) to build TSPSG.
86
87  4. Run make utility with 'install' parameter (without quotes).
88
89NOTE: It is important to run lrelease before qmake, or qmake will not
90"pick up" the translations when generating installation rules.
91
92
934.2. LINUX/UNIX
94---------------
95
96Open a shell, navigate to the directory where you have TSPSG source
97downloaded and type
98
99    tar xvjf tspsg-<VERSION>-src.tar.bz2
100    cd tspsg-<VERSION>-src
101
102where <VERSION> is the version of TSPSG you downloaded. Now run
103
104    lrelease tspsg.pro
105    qmake tspsg.pro
106    make
107
108In some cases you may need to type
109
110    qmake tspsg.pro CONFIG+=release
111
112
113If make step finished without errors you can install TSPSG by running
114
115    sudo make install
116
117or
118
119    su
120    make install
121
122depending on your distribution.
123
124By default, executable will go to /usr/bin, COPYING and README will go
125to /usr/share/TSPSG, translations will go /usr/share/TSPSG/l10n, docs
126will go to /usr/share/doc/TSPSG-<VERSION>.
127
128
1294.3. WINDOWS
130------------
131
132NOTE: Please, read the Section 7 after reading this Section.
133
1344.3.1. USING MINGW
135~~~~~~~~~~~~~~~~~~
136
137Unpack the downloaded source code of TSPSG with your favourite
138compression software. Now launch the Qt Command Prompt from the Start
139Menu, navigate to the directory where you unpacked the source and run
140
141    lrelease tspsg.pro
142    qmake tspsg.pro CONFIG+=release
143    mingw32-make
144
145NOTE: Make process may fail with a crash of windres.exe. If you've run
146into this issue, please, read the Section 6.1.
147
148If make step finished without errors you can install TSPSG by running
149
150    mingw32-make install
151
152TSPSG will be installed to %PROGRAMFILES%\TSPSG folder (usually, it is
153C:\Program Files\TSPSG).
154
155
1564.3.2. USING VISUAL STUDIO
157~~~~~~~~~~~~~~~~~~~~~~~~~~
158
159Unpack the downloaded source code of TSPSG with your favourite
160compression software. Now launch the Visual Studio Command Prompt from
161the Start Menu, navigate to the directory where you unpacked the source
162and run
163
164    C:\Qt\bin\lrelease tspsg.pro
165    C:\Qt\bin\qmake tspsg.pro CONFIG+=release
166        nmake
167
168If make step finished without errors you can install TSPSG by running
169
170    nmake install
171
172TSPSG will be installed to %PROGRAMFILES%\TSPSG folder (usually, it is
173C:\Program Files\TSPSG).
174
175
1764.4. WINDOWS CE/MOBILE
177----------------------
178
179Unpack the downloaded source code of TSPSG with your favourite
180compression software. Now launch the Visual Studio Command Prompt from
181the Start Menu and run
182
183    set PATH=C:\Qt\bin;%PATH%
184    setcepaths wincewm50pocket-msvc2008
185
186Now navigate to the directory where you unpacked the source and run
187
188    lrelease tspsg.pro
189    qmake tspsg.pro CONFIG+=release
190        nmake
191
192There is no automated installation process for Windows Mobile build. To
193install TSPSG on your PDA you need to create a folder on your device
194and copy the following files to it:
195
196  - tspsg.exe from release folder in the source directory.
197
198  - QtCore4.dll and QtGui4.dll from C:\Qt\bin folder.
199
200  - msvcr90.dll from
201    C:\Program Files\Microsoft Visual Studio 9.0\VC\ce\dll\armv4i folder.
202
203  - all *.qm files from l10n folder in the source directory to l10n
204    subfolder.
205
206
2074.5. SYMBIAN
208------------
209
210Unpack the downloaded source code of TSPSG with your favourite
211compression software. Now launch the Qt for Symbian Command Prompt from
212the Start Menu, navigate to the directory where you unpacked the source
213and run
214
215    lrelease tspsg.pro
216    qmake tspsg.pro CONFIG+=release
217    make release-gcce
218
219NOTE: You need to unpack the source on the same drive as Qt and Symbian
220development tools.
221
222If make step finished without errors you can generate sis installation
223file by running
224
225    make sis
226
227You'll get tspsg.sis file in the source directory. Copy it to your
228phone and run or install using Nokia PC Suite.
229
230NOTE: You need to install Qt libraries on your device before installing
231TSPSG. Usually, it should be enough to install qt_installer.sis from
232the Qt installation directory.
233
234Alternatively, if you have installed Nokia Smart Installer you can run
235
236    make installer_sis
237
238You'll get an tspsg_installer.sis that will automatically download and
239install the required Qt libraries on TSPSG installation.
240
241NOTE: Please, be aware that you have to sign the sis file to be able to
242install it on your device. You can use Open Signed Online[2] to quickly
243sign the sis file for your device. Alternatively, you can try to enable
244the installation of self-signed files in the phone settings. Please,
245reffer to your phone manual on the instructions how to do this.
246
247
2484.6. OTHER PLATFORMS, SUPPORTED BY QT
249-------------------------------------
250
251While TSPSG is oficially supported only on Linux, Windows and Windows
252Mobile it should be possible to compile it on any platform, supported
253by Qt. To do so, please, refer to the Section 4.1 for the general build
254and installation procedure.
255
256
257
2585. UNINSTALLATION
259=================
260
261Usually, it is enough to replace 'install' parameter with 'uninstall'
262in the installation command from the Section 4. Also, you can manually
263delete all installed TSPSG files and directories.
264
265
266
2676. TROUBLESHOOTING
268==================
269
2706.1. WINDRES.EXE CRASH
271----------------------
272
273When building under Windows using minGW toolchain make process may fail
274with windres.exe crash (access violation). This is a known bug in
275windres.exe regarding processing resource files with UTF-8 (cp65001)
276encoding [1]. To be able to successfully build TSPSG you will need to
277download and replace windres.exe with a fixed version. To do this:
278
279  1. Open https://sourceforge.net/projects/mingw/files/ in your
280     favourite browser.
281
282  2. Find and download the latest version of GNU Binutils. At the time
283     of writing this guide it was binutils-2.20.1-2-mingw32-bin.tar.gz.
284
285  3. Unpack the file bin\windres.exe from the downloaded archive to
286     <Your Qt installation path>\mingw\bin\ replacing the existing one.
287
288  4. Now run
289
290         mingw32-make distclean
291
292     in the TSPSG directory and repeat the installation process.
293
294
295
2967. NOTES
297========
298
299qmake doesn't always enclose installation paths in quotes. This may
300cause some files not to be installed or removed when their path
301contains quotes. In this case it is safe to delete this files and TSPSG
302installation directory manually.
303
304
305
3068. REFERNECES
307=============
308
309[1] http://sourceware.org/bugzilla/show_bug.cgi?id=10165
310[2] https://www.symbiansigned.com/app/page/public/openSignedOnline.do
311
312
313$Id$
314$URL$
Note: See TracBrowser for help on using the repository browser.