[1babbd6ba3] | 1 | ========================== |
---|
| 2 | TSPSG Installation Guide |
---|
| 3 | ========================== |
---|
| 4 | |
---|
| 5 | Thank you for trying TSPSG. This document will guide you through the |
---|
| 6 | steps necessary to compile and run TSPSG. |
---|
| 7 | |
---|
| 8 | TABLE 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 | |
---|
| 30 | 1. REQUIREMENTS |
---|
| 31 | =============== |
---|
| 32 | |
---|
| 33 | To be able compile TSPSG you need to have Qt libraries. The minimum |
---|
| 34 | supported version of Qt is 4.4.0. The recommended version is 4.5.x |
---|
| 35 | or higher. |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | 2. ASSUMPTIONS |
---|
| 40 | ============== |
---|
| 41 | |
---|
| 42 | This guide assumes that you already have Qt libraries and all necessary |
---|
| 43 | prerequisites installed. |
---|
| 44 | |
---|
| 45 | Also, 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 | |
---|
| 60 | 3. SUPPORTED PLATFORMS |
---|
| 61 | ====================== |
---|
| 62 | |
---|
| 63 | TSPSG 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 | |
---|
| 73 | 4. BUILDING AND INSTALLATION |
---|
| 74 | ============================ |
---|
| 75 | |
---|
| 76 | 4.1 GENERAL PROCEDURE |
---|
| 77 | |
---|
| 78 | On 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 | |
---|
| 89 | NOTE: It is important to run lrelease before qmake, or qmake will not |
---|
| 90 | "pick up" the translations when generating installation rules. |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | 4.2. LINUX/UNIX |
---|
| 94 | --------------- |
---|
| 95 | |
---|
| 96 | Open a shell, navigate to the directory where you have TSPSG source |
---|
| 97 | downloaded and type |
---|
| 98 | |
---|
| 99 | tar xvjf tspsg-<VERSION>-src.tar.bz2 |
---|
| 100 | cd tspsg-<VERSION>-src |
---|
| 101 | |
---|
| 102 | where <VERSION> is the version of TSPSG you downloaded. Now run |
---|
| 103 | |
---|
| 104 | lrelease tspsg.pro |
---|
| 105 | qmake tspsg.pro |
---|
| 106 | make |
---|
| 107 | |
---|
| 108 | In some cases you may need to type |
---|
| 109 | |
---|
| 110 | qmake tspsg.pro CONFIG+=release |
---|
| 111 | |
---|
| 112 | |
---|
| 113 | If make step finished without errors you can install TSPSG by running |
---|
| 114 | |
---|
| 115 | sudo make install |
---|
| 116 | |
---|
| 117 | or |
---|
| 118 | |
---|
| 119 | su |
---|
| 120 | make install |
---|
| 121 | |
---|
| 122 | depending on your distribution. |
---|
| 123 | |
---|
| 124 | By default, executable will go to /usr/bin, COPYING and README will go |
---|
| 125 | to /usr/share/TSPSG, translations will go /usr/share/TSPSG/l10n, docs |
---|
| 126 | will go to /usr/share/doc/TSPSG-<VERSION>. |
---|
| 127 | |
---|
| 128 | |
---|
| 129 | 4.3. WINDOWS |
---|
| 130 | ------------ |
---|
| 131 | |
---|
| 132 | NOTE: Please, read the Section 7 after reading this Section. |
---|
| 133 | |
---|
| 134 | 4.3.1. USING MINGW |
---|
| 135 | ~~~~~~~~~~~~~~~~~~ |
---|
| 136 | |
---|
| 137 | Unpack the downloaded source code of TSPSG with your favourite |
---|
| 138 | compression software. Now launch the Qt Command Prompt from the Start |
---|
| 139 | Menu, 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 | |
---|
| 145 | NOTE: Make process may fail with a crash of windres.exe. If you've run |
---|
| 146 | into this issue, please, read the Section 6.1. |
---|
| 147 | |
---|
| 148 | If make step finished without errors you can install TSPSG by running |
---|
| 149 | |
---|
| 150 | mingw32-make install |
---|
| 151 | |
---|
| 152 | TSPSG will be installed to %PROGRAMFILES%\TSPSG folder (usually, it is |
---|
| 153 | C:\Program Files\TSPSG). |
---|
| 154 | |
---|
| 155 | |
---|
| 156 | 4.3.2. USING VISUAL STUDIO |
---|
| 157 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 158 | |
---|
| 159 | Unpack the downloaded source code of TSPSG with your favourite |
---|
| 160 | compression software. Now launch the Visual Studio Command Prompt from |
---|
| 161 | the Start Menu, navigate to the directory where you unpacked the source |
---|
| 162 | and run |
---|
| 163 | |
---|
| 164 | C:\Qt\bin\lrelease tspsg.pro |
---|
| 165 | C:\Qt\bin\qmake tspsg.pro CONFIG+=release |
---|
| 166 | nmake |
---|
| 167 | |
---|
| 168 | If make step finished without errors you can install TSPSG by running |
---|
| 169 | |
---|
| 170 | nmake install |
---|
| 171 | |
---|
| 172 | TSPSG will be installed to %PROGRAMFILES%\TSPSG folder (usually, it is |
---|
| 173 | C:\Program Files\TSPSG). |
---|
| 174 | |
---|
| 175 | |
---|
| 176 | 4.4. WINDOWS CE/MOBILE |
---|
| 177 | ---------------------- |
---|
| 178 | |
---|
| 179 | Unpack the downloaded source code of TSPSG with your favourite |
---|
| 180 | compression software. Now launch the Visual Studio Command Prompt from |
---|
| 181 | the Start Menu and run |
---|
| 182 | |
---|
| 183 | set PATH=C:\Qt\bin;%PATH% |
---|
| 184 | setcepaths wincewm50pocket-msvc2008 |
---|
| 185 | |
---|
| 186 | Now 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 | |
---|
| 192 | There is no automated installation process for Windows Mobile build. To |
---|
| 193 | install TSPSG on your PDA you need to create a folder on your device |
---|
| 194 | and 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 | |
---|
| 207 | 4.5. SYMBIAN |
---|
| 208 | ------------ |
---|
| 209 | |
---|
| 210 | Unpack the downloaded source code of TSPSG with your favourite |
---|
| 211 | compression software. Now launch the Qt for Symbian Command Prompt from |
---|
| 212 | the Start Menu, navigate to the directory where you unpacked the source |
---|
| 213 | and run |
---|
| 214 | |
---|
| 215 | lrelease tspsg.pro |
---|
| 216 | qmake tspsg.pro CONFIG+=release |
---|
| 217 | make release-gcce |
---|
| 218 | |
---|
| 219 | NOTE: You need to unpack the source on the same drive as Qt and Symbian |
---|
| 220 | development tools. |
---|
| 221 | |
---|
| 222 | If make step finished without errors you can generate sis installation |
---|
| 223 | file by running |
---|
| 224 | |
---|
| 225 | make sis |
---|
| 226 | |
---|
| 227 | You'll get tspsg.sis file in the source directory. Copy it to your |
---|
| 228 | phone and run or install using Nokia PC Suite. |
---|
| 229 | |
---|
| 230 | NOTE: You need to install Qt libraries on your device before installing |
---|
| 231 | TSPSG. Usually, it should be enough to install qt_installer.sis from |
---|
| 232 | the Qt installation directory. |
---|
| 233 | |
---|
| 234 | Alternatively, if you have installed Nokia Smart Installer you can run |
---|
| 235 | |
---|
| 236 | make installer_sis |
---|
| 237 | |
---|
| 238 | You'll get an tspsg_installer.sis that will automatically download and |
---|
| 239 | install the required Qt libraries on TSPSG installation. |
---|
| 240 | |
---|
| 241 | NOTE: Please, be aware that you have to sign the sis file to be able to |
---|
| 242 | install it on your device. You can use Open Signed Online[2] to quickly |
---|
| 243 | sign the sis file for your device. Alternatively, you can try to enable |
---|
| 244 | the installation of self-signed files in the phone settings. Please, |
---|
| 245 | reffer to your phone manual on the instructions how to do this. |
---|
| 246 | |
---|
| 247 | |
---|
| 248 | 4.6. OTHER PLATFORMS, SUPPORTED BY QT |
---|
| 249 | ------------------------------------- |
---|
| 250 | |
---|
| 251 | While TSPSG is oficially supported only on Linux, Windows and Windows |
---|
| 252 | Mobile it should be possible to compile it on any platform, supported |
---|
| 253 | by Qt. To do so, please, refer to the Section 4.1 for the general build |
---|
| 254 | and installation procedure. |
---|
| 255 | |
---|
| 256 | |
---|
| 257 | |
---|
| 258 | 5. UNINSTALLATION |
---|
| 259 | ================= |
---|
| 260 | |
---|
| 261 | Usually, it is enough to replace 'install' parameter with 'uninstall' |
---|
| 262 | in the installation command from the Section 4. Also, you can manually |
---|
| 263 | delete all installed TSPSG files and directories. |
---|
| 264 | |
---|
| 265 | |
---|
| 266 | |
---|
| 267 | 6. TROUBLESHOOTING |
---|
| 268 | ================== |
---|
| 269 | |
---|
| 270 | 6.1. WINDRES.EXE CRASH |
---|
| 271 | ---------------------- |
---|
| 272 | |
---|
| 273 | When building under Windows using minGW toolchain make process may fail |
---|
| 274 | with windres.exe crash (access violation). This is a known bug in |
---|
| 275 | windres.exe regarding processing resource files with UTF-8 (cp65001) |
---|
| 276 | encoding [1]. To be able to successfully build TSPSG you will need to |
---|
| 277 | download 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 | |
---|
| 296 | 7. NOTES |
---|
| 297 | ======== |
---|
| 298 | |
---|
| 299 | qmake doesn't always enclose installation paths in quotes. This may |
---|
| 300 | cause some files not to be installed or removed when their path |
---|
| 301 | contains quotes. In this case it is safe to delete this files and TSPSG |
---|
| 302 | installation directory manually. |
---|
| 303 | |
---|
| 304 | |
---|
| 305 | |
---|
| 306 | 8. 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 |
---|
[317ba0432e] | 311 | |
---|
| 312 | |
---|
| 313 | $Id$ |
---|
| 314 | $URL$ |
---|