[e9db3e216b] | 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 |
---|
[7fd1756f1e] | 14 | 4.1. COMMON INFORMATION |
---|
| 15 | 4.2. GENERAL PROCEDURE |
---|
| 16 | 4.3. LINUX/UNIX/BSD |
---|
| 17 | 4.4. WINDOWS |
---|
| 18 | 4.4.1. USING MINGW |
---|
| 19 | 4.4.2. USING VISUAL STUDIO |
---|
| 20 | 4.5. WINDOWS MOBILE |
---|
| 21 | 4.6. SYMBIAN |
---|
| 22 | 4.7. OTHER PLATFORMS, SUPPORTED BY QT |
---|
[e9db3e216b] | 23 | 5. UNINSTALLATION |
---|
| 24 | 6. TROUBLESHOOTING |
---|
| 25 | 6.1. WINDRES.EXE CRASH |
---|
| 26 | 7. NOTES |
---|
| 27 | 8. REFERENCES |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | 1. REQUIREMENTS |
---|
| 32 | =============== |
---|
| 33 | |
---|
| 34 | To be able compile TSPSG you need to have Qt libraries. The minimum |
---|
[2a436ea693] | 35 | supported version of Qt is 4.5.0. The recommended version is 4.6.x |
---|
[e9db3e216b] | 36 | or higher. |
---|
| 37 | |
---|
| 38 | NOTE: Please, note that there will be some regressions in functionality |
---|
| 39 | if your version of \em Qt is lower than the recommended. |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | 2. ASSUMPTIONS |
---|
| 44 | ============== |
---|
| 45 | |
---|
| 46 | This guide assumes that you already have Qt libraries and all necessary |
---|
| 47 | prerequisites installed. |
---|
| 48 | |
---|
| 49 | Also, the following assumptions are made: |
---|
| 50 | |
---|
| 51 | - For Linux/UNIX: lrelease and qmake are avilable in $PATH. |
---|
| 52 | |
---|
| 53 | - For Windows (minGW) and Symbian: you have installed Qt SDK or |
---|
| 54 | prebuilt libraries and have Start Menu items for Qt tools. |
---|
| 55 | |
---|
| 56 | - For Windows (Visual Studio) and Windows Mobile: the Qt libraries |
---|
| 57 | reside in C:\Qt\. |
---|
| 58 | |
---|
| 59 | - For Windows Mobile: Windows Mobile 5.0 Pocket PC SDK or later is |
---|
| 60 | installed. |
---|
| 61 | |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | 3. SUPPORTED PLATFORMS |
---|
| 65 | ====================== |
---|
| 66 | |
---|
| 67 | TSPSG is oficially supported and tested on the following platforms: |
---|
| 68 | |
---|
| 69 | - Linux: Gentoo AMD64 and Kubuntu 9.10 64-bit AMD. |
---|
| 70 | |
---|
| 71 | - Windows: Windows XP 32-bit and Windows 7 64-bit. |
---|
| 72 | |
---|
| 73 | - Windows Mobile: Windows Mobile 6.5 Professional Edition. |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | 4. BUILDING AND INSTALLATION |
---|
| 78 | ============================ |
---|
| 79 | |
---|
[7fd1756f1e] | 80 | 4.1. COMMON INFORMATION |
---|
| 81 | ----------------------- |
---|
| 82 | |
---|
| 83 | To be able ot build TSPSG you need to have the following Qt modules: |
---|
| 84 | QtCore, QtGui and QtSvg. The first two are required, the last one is |
---|
| 85 | optional. To get support for additional image formats (i.e., JPEG and |
---|
| 86 | TIFF) you'll additionally need corresponding Qt imageformats plugins. |
---|
| 87 | |
---|
| 88 | If you want to build TSPSG without SVG support add nosvg to qmake |
---|
| 89 | CONFIG parameter, so that qmake command will typically be: |
---|
| 90 | |
---|
| 91 | qmake CONFIG+=release CONFIG+=nosvg |
---|
| 92 | |
---|
| 93 | This way you will not depend on QtSvg module but will not be able to |
---|
| 94 | export solution graph in SVG format. |
---|
| 95 | |
---|
| 96 | |
---|
| 97 | TSPSG uses qmake PREFIX parameter to determine installation path for |
---|
| 98 | make install command. If you don't specify it when running qmake, it |
---|
| 99 | will be assigned the default value depending on the platform: |
---|
| 100 | |
---|
| 101 | Platform | Default PREFIX value |
---|
| 102 | -------------------|------------------------------------- |
---|
| 103 | Linux/UNIX/BSD | /usr |
---|
| 104 | -------------------|------------------------------------- |
---|
| 105 | Windows | %PROGRAMFILES% environment variable |
---|
| 106 | | (usually, it is "C:\Program Files") |
---|
| 107 | -------------------|------------------------------------- |
---|
| 108 | Windows CE/Mobile | "\Program Files" |
---|
| 109 | -------------------|------------------------------------- |
---|
| 110 | Symbian | <ignored> |
---|
| 111 | -------------------|------------------------------------- |
---|
| 112 | |
---|
| 113 | NOTE: Please, note that there are no installation and/or packaging |
---|
| 114 | rules for MacOS and other platforms not mentioned in this table. |
---|
| 115 | |
---|
| 116 | |
---|
| 117 | By default, TSPSG uses precompiled header when being built. If you |
---|
| 118 | experience problems with it you may add CONFIG+=nopch parameter to |
---|
| 119 | qmake to disable the generation and use of the precompiled header. |
---|
| 120 | |
---|
| 121 | |
---|
| 122 | 4.2. GENERAL PROCEDURE |
---|
| 123 | ---------------------- |
---|
[e9db3e216b] | 124 | |
---|
| 125 | On most platforms the general building and installation procedure is: |
---|
| 126 | |
---|
| 127 | 1. Run lrelease to generate binary translation files (.qm) from the |
---|
| 128 | source (.ts). |
---|
| 129 | |
---|
| 130 | 2. Run qmake with CONFIG+=release parameter to generate makefiles. |
---|
| 131 | |
---|
| 132 | 3. Run make utility (e.g., make, nmake, mingw32-make) to build TSPSG. |
---|
| 133 | |
---|
| 134 | 4. Run make utility with 'install' parameter (without quotes). |
---|
| 135 | |
---|
| 136 | NOTE: It is important to run lrelease before qmake, or qmake will not |
---|
| 137 | "pick up" the translations when generating installation rules. |
---|
| 138 | |
---|
| 139 | |
---|
[7fd1756f1e] | 140 | 4.3. LINUX/UNIX/BSD |
---|
| 141 | ------------------- |
---|
[e9db3e216b] | 142 | |
---|
| 143 | Open a shell, navigate to the directory where you have TSPSG source |
---|
| 144 | downloaded and type |
---|
| 145 | |
---|
| 146 | tar xvjf tspsg-<VERSION>-src.tar.bz2 |
---|
| 147 | cd tspsg-<VERSION>-src |
---|
| 148 | |
---|
| 149 | where <VERSION> is the version of TSPSG you downloaded. Now run |
---|
| 150 | |
---|
| 151 | lrelease tspsg.pro |
---|
| 152 | qmake tspsg.pro |
---|
| 153 | make |
---|
| 154 | |
---|
| 155 | In some cases you may need to type |
---|
| 156 | |
---|
| 157 | qmake tspsg.pro CONFIG+=release |
---|
| 158 | |
---|
| 159 | |
---|
| 160 | If make step finished without errors you can install TSPSG by running |
---|
| 161 | |
---|
| 162 | sudo make install |
---|
| 163 | |
---|
| 164 | or |
---|
| 165 | |
---|
| 166 | su |
---|
| 167 | make install |
---|
| 168 | |
---|
| 169 | depending on your distribution. |
---|
| 170 | |
---|
[7fd1756f1e] | 171 | The executable goes to <PREFIX>/bin; COPYING, ChangeLog.txt, README.txt |
---|
| 172 | and INSTALL.txt go to <PREFIX>/share/doc/TSPSG-<VERSION>. |
---|
[e9db3e216b] | 173 | |
---|
| 174 | |
---|
[7fd1756f1e] | 175 | 4.4. WINDOWS |
---|
[e9db3e216b] | 176 | ------------ |
---|
| 177 | |
---|
[7fd1756f1e] | 178 | TSPSG will be installed to <PREFIX>\TSPSG folder. |
---|
| 179 | |
---|
[e9db3e216b] | 180 | NOTE: Please, read the Section 7 after reading this Section. |
---|
| 181 | |
---|
[7fd1756f1e] | 182 | 4.4.1. USING MINGW |
---|
[e9db3e216b] | 183 | ~~~~~~~~~~~~~~~~~~ |
---|
| 184 | |
---|
| 185 | Unpack the downloaded source code of TSPSG with your favourite |
---|
| 186 | compression software. Now launch the Qt Command Prompt from the Start |
---|
| 187 | Menu, navigate to the directory where you unpacked the source and run |
---|
| 188 | |
---|
| 189 | lrelease tspsg.pro |
---|
| 190 | qmake tspsg.pro CONFIG+=release |
---|
| 191 | mingw32-make |
---|
| 192 | |
---|
| 193 | NOTE: Make process may fail with a crash of windres.exe. If you've run |
---|
| 194 | into this issue, please, read the Section 6.1. |
---|
| 195 | |
---|
| 196 | If make step finished without errors you can install TSPSG by running |
---|
| 197 | |
---|
| 198 | mingw32-make install |
---|
| 199 | |
---|
| 200 | |
---|
[7fd1756f1e] | 201 | 4.4.2. USING VISUAL STUDIO |
---|
[e9db3e216b] | 202 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 203 | |
---|
| 204 | Unpack the downloaded source code of TSPSG with your favourite |
---|
| 205 | compression software. Now launch the Visual Studio Command Prompt from |
---|
| 206 | the Start Menu, navigate to the directory where you unpacked the source |
---|
| 207 | and run |
---|
| 208 | |
---|
| 209 | C:\Qt\bin\lrelease tspsg.pro |
---|
| 210 | C:\Qt\bin\qmake tspsg.pro CONFIG+=release |
---|
| 211 | nmake |
---|
| 212 | |
---|
| 213 | If make step finished without errors you can install TSPSG by running |
---|
| 214 | |
---|
| 215 | nmake install |
---|
| 216 | |
---|
| 217 | |
---|
[7fd1756f1e] | 218 | 4.5. WINDOWS CE/MOBILE |
---|
[e9db3e216b] | 219 | ---------------------- |
---|
| 220 | |
---|
| 221 | Unpack the downloaded source code of TSPSG with your favourite |
---|
| 222 | compression software. Now launch the Visual Studio Command Prompt from |
---|
| 223 | the Start Menu and run |
---|
| 224 | |
---|
| 225 | set PATH=C:\Qt\bin;%PATH% |
---|
| 226 | setcepaths wincewm50pocket-msvc2008 |
---|
| 227 | |
---|
| 228 | Now navigate to the directory where you unpacked the source and run |
---|
| 229 | |
---|
| 230 | lrelease tspsg.pro |
---|
| 231 | qmake tspsg.pro CONFIG+=release |
---|
| 232 | nmake |
---|
| 233 | |
---|
| 234 | There is no automated installation process for Windows Mobile build. To |
---|
| 235 | install TSPSG on your PDA you need to create a folder on your device |
---|
| 236 | and copy the following files to it: |
---|
| 237 | |
---|
| 238 | - tspsg.exe from release folder in the source directory. |
---|
| 239 | |
---|
| 240 | - QtCore4.dll and QtGui4.dll from C:\Qt\bin folder. |
---|
| 241 | |
---|
| 242 | - msvcr90.dll from |
---|
| 243 | C:\Program Files\Microsoft Visual Studio 9.0\VC\ce\dll\armv4i folder. |
---|
| 244 | |
---|
| 245 | - all *.qm files from l10n folder in the source directory to l10n |
---|
| 246 | subfolder. |
---|
| 247 | |
---|
| 248 | |
---|
[7fd1756f1e] | 249 | 4.6. SYMBIAN |
---|
[e9db3e216b] | 250 | ------------ |
---|
| 251 | |
---|
| 252 | Unpack the downloaded source code of TSPSG with your favourite |
---|
| 253 | compression software. Now launch the Qt for Symbian Command Prompt from |
---|
| 254 | the Start Menu, navigate to the directory where you unpacked the source |
---|
| 255 | and run |
---|
| 256 | |
---|
| 257 | lrelease tspsg.pro |
---|
| 258 | qmake tspsg.pro CONFIG+=release |
---|
| 259 | make release-gcce |
---|
| 260 | |
---|
| 261 | WARNING: You need to unpack the source to the same drive as Symbian SDK |
---|
| 262 | and the path must not contain any spaces or TSPSG won't build. |
---|
| 263 | |
---|
| 264 | If make step finished without errors you can generate sis installation |
---|
| 265 | file by running |
---|
| 266 | |
---|
| 267 | make sis |
---|
| 268 | |
---|
| 269 | You'll get tspsg.sis file in the source directory. Copy it to your |
---|
| 270 | phone and run or install using Nokia PC Suite. |
---|
| 271 | |
---|
| 272 | NOTE: You need to install Qt libraries on your device before installing |
---|
| 273 | TSPSG. Usually, it should be enough to install qt_installer.sis from |
---|
| 274 | the Qt installation directory. |
---|
| 275 | |
---|
| 276 | Alternatively, if you have installed Nokia Smart Installer you can run |
---|
| 277 | |
---|
| 278 | make installer_sis |
---|
| 279 | |
---|
| 280 | You'll get an tspsg_installer.sis that will automatically download and |
---|
| 281 | install the required Qt libraries on TSPSG installation. |
---|
| 282 | |
---|
| 283 | NOTE: Please, be aware that you have to sign the sis file to be able to |
---|
| 284 | install it on your device. You can use Open Signed Online[2] to quickly |
---|
| 285 | sign the sis file for your device. Alternatively, you can try to enable |
---|
| 286 | the installation of self-signed files in the phone settings. Please, |
---|
| 287 | reffer to your phone manual on the instructions how to do this. |
---|
| 288 | |
---|
| 289 | |
---|
[7fd1756f1e] | 290 | 4.7. OTHER PLATFORMS, SUPPORTED BY QT |
---|
[e9db3e216b] | 291 | ------------------------------------- |
---|
| 292 | |
---|
| 293 | While TSPSG is oficially supported only on Linux, Windows and Windows |
---|
| 294 | Mobile it should be possible to compile it on any platform, supported |
---|
| 295 | by Qt. To do so, please, refer to the Section 4.1 for the general build |
---|
| 296 | and installation procedure. |
---|
| 297 | |
---|
| 298 | |
---|
| 299 | |
---|
| 300 | 5. UNINSTALLATION |
---|
| 301 | ================= |
---|
| 302 | |
---|
| 303 | Usually, it is enough to replace 'install' parameter with 'uninstall' |
---|
| 304 | in the installation command from the Section 4. Also, you can manually |
---|
| 305 | delete all installed TSPSG files and directories. |
---|
| 306 | |
---|
| 307 | |
---|
| 308 | |
---|
| 309 | 6. TROUBLESHOOTING |
---|
| 310 | ================== |
---|
| 311 | |
---|
| 312 | 6.1. WINDRES.EXE CRASH |
---|
| 313 | ---------------------- |
---|
| 314 | |
---|
| 315 | When building under Windows using minGW toolchain make process may fail |
---|
| 316 | with windres.exe crash (access violation). This is a known bug in |
---|
| 317 | windres.exe regarding processing resource files with UTF-8 (cp65001) |
---|
| 318 | encoding [1]. To be able to successfully build TSPSG you will need to |
---|
| 319 | download and replace windres.exe with a fixed version. To do this: |
---|
| 320 | |
---|
| 321 | 1. Open https://sourceforge.net/projects/mingw/files/ in your |
---|
| 322 | favourite browser. |
---|
| 323 | |
---|
| 324 | 2. Find and download the latest version of GNU Binutils. At the time |
---|
| 325 | of writing this guide it was binutils-2.20.1-2-mingw32-bin.tar.gz. |
---|
| 326 | |
---|
| 327 | 3. Unpack the file bin\windres.exe from the downloaded archive to |
---|
| 328 | <Your Qt installation path>\mingw\bin\ replacing the existing one. |
---|
| 329 | |
---|
| 330 | 4. Now run |
---|
| 331 | |
---|
| 332 | mingw32-make distclean |
---|
| 333 | |
---|
| 334 | in the TSPSG directory and repeat the installation process. |
---|
| 335 | |
---|
| 336 | |
---|
| 337 | |
---|
| 338 | 7. NOTES |
---|
| 339 | ======== |
---|
| 340 | |
---|
| 341 | qmake doesn't always enclose installation paths in quotes. This may |
---|
| 342 | cause some files not to be installed or removed when their path |
---|
| 343 | contains spaces. In this case it is safe to delete these files and |
---|
| 344 | TSPSG installation directory manually. |
---|
| 345 | |
---|
| 346 | |
---|
| 347 | |
---|
| 348 | 8. REFERNECES |
---|
| 349 | ============= |
---|
| 350 | |
---|
| 351 | [1] http://sourceware.org/bugzilla/show_bug.cgi?id=10165 |
---|
| 352 | [2] https://www.symbiansigned.com/app/page/public/openSignedOnline.do |
---|
| 353 | |
---|
| 354 | |
---|
| 355 | $Id$ |
---|
| 356 | $URL$ |
---|