[146] | 1 | diff -Naur -x qpdfview.desktop E:\trees\qpdfview\trunk\..\vendor\current/build_os2.cmd E:\trees\qpdfview\trunk/build_os2.cmd
|
---|
| 2 | --- E:\trees\qpdfview\trunk\..\vendor\current/build_os2.cmd 1970-01-01 01:00:00.000000000 +0100
|
---|
| 3 | +++ E:\trees\qpdfview\trunk/build_os2.cmd 2013-10-15 17:02:12.000000000 +0200
|
---|
| 4 | @@ -0,0 +1,316 @@
|
---|
| 5 | +/* qpdfview Build Script */
|
---|
| 6 | +/* version history */
|
---|
| 7 | +/* version 0.1.0 from 25.03.2013 Silvan (first edition) */
|
---|
| 8 | +/* version 0.1.1 from 25.04.2013 Silvan (new poppler lib) */
|
---|
| 9 | +/* version 0.1.2 from 29.05.2013 Silvan (application version from qpdfview.pri) */
|
---|
| 10 | +/* version 0.1.3 from 17.06.2013 Silvan (added .ps support) */
|
---|
| 11 | +/* version 0.1.4 from 08.08.2013 Silvan (new poppler lib) */
|
---|
| 12 | +/* version 0.1.5 from 20.08.2013 Silvan (added diff option) */
|
---|
| 13 | +/* version 0.1.6 from 15.10.2013 Silvan (copy all help*.html) */
|
---|
| 14 | +
|
---|
| 15 | +/* init the version string (don't forget to change) */
|
---|
| 16 | +version = "0.1.6"
|
---|
| 17 | +version_date = "15.10.2013"
|
---|
| 18 | +popplerDll = 'popp43.dll'
|
---|
| 19 | +popplerDllQt = 'poppqt44.dll'
|
---|
| 20 | +popplerDir = 'e:\trees\poppler\trunk'
|
---|
| 21 | +'@echo off'
|
---|
| 22 | +
|
---|
| 23 | +parse arg command option
|
---|
| 24 | +parse source . . scriptFile
|
---|
| 25 | +
|
---|
| 26 | +/* init the required vars */
|
---|
| 27 | +qRC = 0
|
---|
| 28 | +mRC = 0
|
---|
| 29 | +buildDir = strip(directory(),'T','\') /* Make sure we have no trailing backslash */
|
---|
| 30 | +sourceDir = FixDir(filespec('D', scriptFile) || filespec('P', scriptFile))
|
---|
| 31 | +vendorDir = sourceDir || '\..\vendor\current'
|
---|
| 32 | +diffDir = sourceDir || '\..\'
|
---|
| 33 | +srcDir = sourceDir
|
---|
| 34 | +OS2Dir = sourceDir
|
---|
| 35 | +installDir = buildDir || '\install'
|
---|
| 36 | +installDirT= installDir || '\data'
|
---|
| 37 | +qErrorFile = buildDir||'\qmake.err'
|
---|
| 38 | +qOutFile = buildDir||'\qmake.out'
|
---|
| 39 | +mErrorFile = buildDir||'\make.err'
|
---|
| 40 | +mOutFile = buildDir||'\make.out'
|
---|
| 41 | +
|
---|
| 42 | +/* get the Qpdfview version */
|
---|
| 43 | +Qpdfview_version = '0.0.0'
|
---|
| 44 | +Qpdfview_build = ' '
|
---|
| 45 | +call version
|
---|
| 46 | +internal_build = translate(Qpdfview_version, '_', '.')
|
---|
| 47 | +
|
---|
| 48 | +title = "Qpdfview for eCS (OS/2) build script v" || version || " from " || version_date
|
---|
| 49 | +say title
|
---|
| 50 | +say
|
---|
| 51 | +say "Build directory:" buildDir
|
---|
| 52 | +say "Source directory:" sourceDir
|
---|
| 53 | +say
|
---|
| 54 | +say "Qpdfview version:" Qpdfview_version
|
---|
| 55 | +say " build: " Qpdfview_build
|
---|
| 56 | +say
|
---|
| 57 | +
|
---|
| 58 | +/* translate command to all upercase */
|
---|
| 59 | +command = translate(command)
|
---|
| 60 | +
|
---|
| 61 | +if command = "" then signal help
|
---|
| 62 | +
|
---|
| 63 | +
|
---|
| 64 | +if command = "INSTALL" then do
|
---|
| 65 | + if option \== "" then do
|
---|
| 66 | + Qpdfview_build = option
|
---|
| 67 | + end
|
---|
| 68 | + select
|
---|
| 69 | + when Qpdfview_build \== "" then do
|
---|
| 70 | + zipFile = installDir || '\qpdfview-' || internal_build || '-' || Qpdfview_build || '.zip'
|
---|
| 71 | + end
|
---|
| 72 | + otherwise do
|
---|
| 73 | + signal help
|
---|
| 74 | + end
|
---|
| 75 | + end
|
---|
| 76 | +end
|
---|
| 77 | +
|
---|
| 78 | +/* now we translate also the option */
|
---|
| 79 | +option = translate(option)
|
---|
| 80 | +
|
---|
| 81 | +if sourceDir \== buildDir then do
|
---|
| 82 | + say "Shadow build in progress ..."
|
---|
| 83 | + say
|
---|
| 84 | +end
|
---|
| 85 | +
|
---|
| 86 | +say "Executing command: "command option
|
---|
| 87 | +
|
---|
| 88 | +select
|
---|
| 89 | + when command = "MAKE" & option = "CLEAN" then do
|
---|
| 90 | +
|
---|
| 91 | + say "cleaning the tree"
|
---|
| 92 | + call make 'distclean'
|
---|
| 93 | +
|
---|
| 94 | + say "please execute this script again with 'make' to build Qpdfview"
|
---|
| 95 | +
|
---|
| 96 | + end
|
---|
| 97 | + when command = "MAKE" then do
|
---|
| 98 | +
|
---|
| 99 | + say "creating Qpdfview makefile"
|
---|
| 100 | + call qmake
|
---|
| 101 | +
|
---|
| 102 | + if qRC = 0 then do
|
---|
| 103 | + say "building Qpdfview"
|
---|
| 104 | + if option = "" then do
|
---|
| 105 | + call make
|
---|
| 106 | + end
|
---|
| 107 | + else do
|
---|
| 108 | + call make 'debug'
|
---|
| 109 | + end
|
---|
| 110 | + end
|
---|
| 111 | +
|
---|
| 112 | + end
|
---|
| 113 | +
|
---|
| 114 | + when command = "INSTALL" then do
|
---|
| 115 | +
|
---|
| 116 | +/* first delete everything */
|
---|
| 117 | + call deleteall
|
---|
| 118 | +
|
---|
| 119 | +/* create the installDir,and the translation subdir */
|
---|
| 120 | + ok = SysMkDir(installDir)
|
---|
| 121 | + ok = SysMkDir(installDirT)
|
---|
| 122 | +
|
---|
| 123 | +/* copy the exe */
|
---|
| 124 | + ok = SysCopyObject(buildDir||'\Qpdfview.exe',installDir)
|
---|
| 125 | +
|
---|
| 126 | +/* copy all dll */
|
---|
| 127 | + ok = SysFileTree(buildDir||'\*.dll', rm.,'FOS')
|
---|
| 128 | + do i = 1 to rm.0
|
---|
| 129 | + ok = SysCopyObject(rm.i, installDir)
|
---|
| 130 | + end
|
---|
| 131 | +
|
---|
| 132 | +/* copy the readme */
|
---|
| 133 | + rm.0 = 1
|
---|
| 134 | + rm.1 = 'install.os2'
|
---|
| 135 | + do i = 1 to rm.0
|
---|
| 136 | + cmdtorun = 'sed "s;_VERSION_;' || Qpdfview_version || ';g" ' || os2Dir || '\' || rm.i || ' | sed "s;_BUILD_;' || Qpdfview_build || ';g" >' || installDir || '\' || rm.i
|
---|
| 137 | + address cmd cmdtorun
|
---|
| 138 | + end
|
---|
| 139 | +
|
---|
| 140 | +/* copy different stuff */
|
---|
| 141 | + rm.0 = 5
|
---|
| 142 | + rm.1 = 'CHANGES'
|
---|
| 143 | + frmDir.1 = os2Dir
|
---|
| 144 | + toDir.1 = installDir
|
---|
| 145 | + rm.2 = 'help*.html'
|
---|
| 146 | + frmDir.2 = os2Dir || '\miscellaneous'
|
---|
| 147 | + toDir.2 = installDirT
|
---|
| 148 | + rm.3 = popplerDll
|
---|
| 149 | + frmDir.3 = popplerDir || '\poppler\.libs'
|
---|
| 150 | + toDir.3 = installDir
|
---|
| 151 | + rm.4 = popplerDllQt
|
---|
| 152 | + frmDir.4 = popplerDir || '\qt4\src\.libs'
|
---|
| 153 | + toDir.4 = installDir
|
---|
| 154 | + rm.5 = 'tiff.dll'
|
---|
| 155 | + frmDir.5 = 'e:\trees\libtiff\trunk\libtiff\.libs'
|
---|
| 156 | + toDir.5 = installDir
|
---|
| 157 | + do i = 1 to rm.0
|
---|
| 158 | + cmdtorun = 'copy ' || frmDir.i || '\' || rm.i || ' ' || toDir.i
|
---|
| 159 | + address cmd cmdtorun
|
---|
| 160 | + end
|
---|
| 161 | +
|
---|
| 162 | +/* create the qm files from ts files */
|
---|
| 163 | + ok = SysFileTree(srcDir||'\translations\*.ts', rm.,'FO')
|
---|
| 164 | + do i = 1 to rm.0
|
---|
| 165 | + fileName = filespec('N',rm.i)
|
---|
| 166 | + fileName = left(fileName,lastpos('.', fileName)-1) || '.qm'
|
---|
| 167 | + cmdtorun = 'lrelease ' || rm.i || ' -qm ' || installDirT || '\' || fileName
|
---|
| 168 | + address cmd cmdtorun
|
---|
| 169 | + end
|
---|
| 170 | +
|
---|
| 171 | +/* zip all dynamic stuff */
|
---|
| 172 | + ok = directory(installDir)
|
---|
| 173 | + cmdtorun = 'zip -r ' || zipFile || ' * -x *.zip'
|
---|
| 174 | + address cmd cmdtorun
|
---|
| 175 | + ok = directory(buildDir)
|
---|
| 176 | +
|
---|
| 177 | +/* zip all icons */
|
---|
| 178 | +
|
---|
| 179 | + end
|
---|
| 180 | +
|
---|
| 181 | + when command = "UNINSTALL" then do
|
---|
| 182 | +
|
---|
| 183 | + call deleteall
|
---|
| 184 | +
|
---|
| 185 | + end
|
---|
| 186 | +
|
---|
| 187 | + when command = "DIFF" then do
|
---|
| 188 | +
|
---|
| 189 | + address cmd 'diff -Naur ' || vendorDir || ' ' || sourceDir || ' -x qpdfview.desktop > ' || diffDir || Qpdfview_version || '_' || Qpdfview_build || '.diff'
|
---|
| 190 | +
|
---|
| 191 | + end
|
---|
| 192 | +
|
---|
| 193 | + otherwise do
|
---|
| 194 | + say 'Unknown parameter "'command'" - aborting...'
|
---|
| 195 | + exit 1
|
---|
| 196 | + end
|
---|
| 197 | +end
|
---|
| 198 | +
|
---|
| 199 | +/* cleanup the mess */
|
---|
| 200 | +error:
|
---|
| 201 | +
|
---|
| 202 | +if qRC = 0 & mRC = 0 then do
|
---|
| 203 | + ok = SysFileDelete(mOutFile)
|
---|
| 204 | + ok = SysFileDelete(mErrorFile)
|
---|
| 205 | + ok = SysFileDelete(qOutFile)
|
---|
| 206 | + ok = SysFileDelete(qErrorFile)
|
---|
| 207 | +end
|
---|
| 208 | +else do
|
---|
| 209 | + if mRC <> 0 then do
|
---|
| 210 | + say "Alarm! Make errors occured! Look at "mOutFile" and "mErrorFile
|
---|
| 211 | + end
|
---|
| 212 | + if qRC <> 0 then do
|
---|
| 213 | + say "Alarm! qMake errors occured! Look at "qOutFile" and "qErrorFile
|
---|
| 214 | + end
|
---|
| 215 | +end
|
---|
| 216 | +
|
---|
| 217 | +exit 0
|
---|
| 218 | +
|
---|
| 219 | +qmake:
|
---|
| 220 | + sourceFile = sourceDir || '/qpdfview.pro'
|
---|
| 221 | + address cmd 'qmake "CONFIG+=without_pkgconfig" "CONFIG+=without_dbus" "CONFIG+=without_magic" ' sourceFile ' 2>'qErrorFile' 1>'qOutFile
|
---|
| 222 | +
|
---|
| 223 | + qRC = RC
|
---|
| 224 | + if qRC <> 0 then do
|
---|
| 225 | + call beep 880, 20
|
---|
| 226 | + say "Alarm! qmake RC="RC
|
---|
| 227 | + end
|
---|
| 228 | +return
|
---|
| 229 | +
|
---|
| 230 | +make:
|
---|
| 231 | + makeparm = arg(1)
|
---|
| 232 | + address cmd 'make 'makeparm' 2>'mErrorFile' 1>'mOutFile
|
---|
| 233 | + mRC = RC
|
---|
| 234 | + if mRC <> 0 then do
|
---|
| 235 | + call beep 880, 20
|
---|
| 236 | + say "Alarm! make RC="RC
|
---|
| 237 | + end
|
---|
| 238 | +return
|
---|
| 239 | +
|
---|
| 240 | +
|
---|
| 241 | +deleteall: /* delete installDir (including subdirs) except zip files */
|
---|
| 242 | +
|
---|
| 243 | + say "Delete all files except *zip in " installDir
|
---|
| 244 | + ok = SysFileTree(installDir||'\*', rm.,'FOS')
|
---|
| 245 | + do i = 1 to rm.0
|
---|
| 246 | + if translate(right(rm.i, 3)) \== 'ZIP' then do
|
---|
| 247 | + ok = SysFileDelete(rm.i)
|
---|
| 248 | + end
|
---|
| 249 | + end
|
---|
| 250 | +
|
---|
| 251 | + say "Delete zip file " zipFile
|
---|
| 252 | + ok = SysFileDelete(zipFile)
|
---|
| 253 | +
|
---|
| 254 | + say "Removing subdirs from " || installDir
|
---|
| 255 | + ok = SysFileTree(installDir||'\*', rm.,'OS')
|
---|
| 256 | + do i = 1 to rm.0
|
---|
| 257 | + ok = SysRmDir(rm.i)
|
---|
| 258 | + end
|
---|
| 259 | +
|
---|
| 260 | + call SysSleep(5)
|
---|
| 261 | +return
|
---|
| 262 | +
|
---|
| 263 | +/**
|
---|
| 264 | + * Fixes the directory path by a) converting all slashes to back
|
---|
| 265 | + * slashes and b) ensuring that the trailing slash is present if
|
---|
| 266 | + * the directory is the root directory, and absent otherwise.
|
---|
| 267 | + *
|
---|
| 268 | + * @param dir the directory path
|
---|
| 269 | + * @param noslash
|
---|
| 270 | + * optional argument. If 1, the path returned will not have a
|
---|
| 271 | + * trailing slash anyway. Useful for concatenating it with a
|
---|
| 272 | + * file name.
|
---|
| 273 | + */
|
---|
| 274 | +FixDir: procedure expose (Globals)
|
---|
| 275 | + parse arg dir, noslash
|
---|
| 276 | + noslash = (noslash = 1)
|
---|
| 277 | + dir = translate(dir, '\', '/')
|
---|
| 278 | + if (right(dir, 1) == '\' &,
|
---|
| 279 | + (noslash | \(length(dir) == 3 & (substr(dir, 2, 1) == ':')))) then
|
---|
| 280 | + dir = substr(dir, 1, length(dir) - 1)
|
---|
| 281 | + return dir
|
---|
| 282 | +
|
---|
| 283 | +/**
|
---|
| 284 | + * reads the version.cpp and gets the Qpdfview version from there
|
---|
| 285 | + */
|
---|
| 286 | +version: procedure expose Qpdfview_version Qpdfview_build srcDir
|
---|
| 287 | +
|
---|
| 288 | + QpdfviewVer = ' '
|
---|
| 289 | + /* Qpdfview Version file */
|
---|
| 290 | + Version = srcDir || "\qpdfview.pri"
|
---|
| 291 | +
|
---|
| 292 | + do until lines(Version) = 0
|
---|
| 293 | + verline = linein(Version)
|
---|
| 294 | + if substr(Verline,30,19) = "APPLICATION_VERSION" then do
|
---|
| 295 | + parse var verline . ' '. ' ' QpdfviewVer
|
---|
| 296 | + end
|
---|
| 297 | + end
|
---|
| 298 | +
|
---|
| 299 | + ok = stream(Version,'c','close')
|
---|
| 300 | + if QpdfviewVer \== ' ' then do
|
---|
| 301 | + QpdfviewVer = strip(QpdfviewVer,,'"')
|
---|
| 302 | + parse var QpdfviewVer ver '.' maj '.' min '.' Qpdfview_build
|
---|
| 303 | + Qpdfview_version = ver || '.'|| maj || '.' || min
|
---|
| 304 | + end
|
---|
| 305 | +
|
---|
| 306 | + if Qpdfview_build == '' then do
|
---|
| 307 | + Qpdfview_build = 'GA'
|
---|
| 308 | + end
|
---|
| 309 | +
|
---|
| 310 | + return
|
---|
| 311 | +
|
---|
| 312 | +help:
|
---|
| 313 | + say "Parameters:"
|
---|
| 314 | + say " make"
|
---|
| 315 | + say " make debug"
|
---|
| 316 | + say " make clean"
|
---|
| 317 | + say " install build (build overwrites what this script finds)"
|
---|
| 318 | + say " uninstall"
|
---|
| 319 | + say " diff (creates a diff from vendor to trunk)"
|
---|
| 320 | +exit 255
|
---|
| 321 | diff -Naur -x qpdfview.desktop E:\trees\qpdfview\trunk\..\vendor\current/install.os2 E:\trees\qpdfview\trunk/install.os2
|
---|
| 322 | --- E:\trees\qpdfview\trunk\..\vendor\current/install.os2 1970-01-01 01:00:00.000000000 +0100
|
---|
| 323 | +++ E:\trees\qpdfview\trunk/install.os2 2013-10-15 16:58:10.000000000 +0200
|
---|
| 324 | @@ -0,0 +1,303 @@
|
---|
| 325 | +Qpdfview _VERSION_ _BUILD_ installation
|
---|
| 326 | +
|
---|
| 327 | +
|
---|
| 328 | +0. CONTENTS OF THIS FILE
|
---|
| 329 | +========================
|
---|
| 330 | +
|
---|
| 331 | +1. INTRODUCTION
|
---|
| 332 | +
|
---|
| 333 | +2. REQUIREMENTS
|
---|
| 334 | +
|
---|
| 335 | +3. INSTALLATION
|
---|
| 336 | +
|
---|
| 337 | +4. BUGREPORTS
|
---|
| 338 | +
|
---|
| 339 | +5. CREDITS
|
---|
| 340 | +
|
---|
| 341 | +6. SUPPORT AND DONATIONS
|
---|
| 342 | +
|
---|
| 343 | +7. HISTORY
|
---|
| 344 | +
|
---|
| 345 | +
|
---|
| 346 | +1. INTRODUCTION
|
---|
| 347 | +===============
|
---|
| 348 | +
|
---|
| 349 | +Welcome to Qpdfview _VERSION_ _BUILD_ port for OS/2 and eComStation.
|
---|
| 350 | +
|
---|
| 351 | +
|
---|
| 352 | +2. REQUIREMENTS
|
---|
| 353 | +===============
|
---|
| 354 | +
|
---|
| 355 | +The following requirements need to be installed.
|
---|
| 356 | +
|
---|
| 357 | +
|
---|
| 358 | +2.1 kLIBC, GCC4Core, Qt4, Zlib, cups
|
---|
| 359 | +------------------------------------
|
---|
| 360 | +
|
---|
| 361 | +The installation of these products can be done either by RPM or ZIP files.
|
---|
| 362 | +
|
---|
| 363 | +2.1.a RPM installation
|
---|
| 364 | +----------------------
|
---|
| 365 | +
|
---|
| 366 | +kLIBC
|
---|
| 367 | +-----
|
---|
| 368 | +
|
---|
| 369 | + 1. yum install libc
|
---|
| 370 | +
|
---|
| 371 | +GCC4Core
|
---|
| 372 | +--------
|
---|
| 373 | +
|
---|
| 374 | + 1. yum install libgcc4*
|
---|
| 375 | + 2. yum install gcc-stack-protector
|
---|
| 376 | + 3. yum install gcc-stdc++-shared-library
|
---|
| 377 | + 4. yum install gcc-supc++-shared-library
|
---|
| 378 | +
|
---|
| 379 | +Qt4 dll
|
---|
| 380 | +-------
|
---|
| 381 | +
|
---|
| 382 | + 1. yum install libqt4
|
---|
| 383 | + 2. Install the xsystray plugin as noted in the readme.os2 and also in
|
---|
| 384 | + readme.xsystray
|
---|
| 385 | +
|
---|
| 386 | +Zlib
|
---|
| 387 | +----
|
---|
| 388 | +
|
---|
| 389 | + 1. yum install zlib
|
---|
| 390 | +
|
---|
| 391 | +Jpeg
|
---|
| 392 | +----
|
---|
| 393 | +
|
---|
| 394 | + 1. yum install libjpeg
|
---|
| 395 | +
|
---|
| 396 | +djvulibre
|
---|
| 397 | +---------
|
---|
| 398 | +
|
---|
| 399 | + not available as a rpm at this time of writing
|
---|
| 400 | +
|
---|
| 401 | +cups
|
---|
| 402 | +----
|
---|
| 403 | +
|
---|
| 404 | + not available as a rpm at this time of writing
|
---|
| 405 | +
|
---|
| 406 | +freetype/fontconfig
|
---|
| 407 | +-------------------
|
---|
| 408 | +
|
---|
| 409 | + not available as a rpm at this time of writing
|
---|
| 410 | +
|
---|
| 411 | +ghstscript
|
---|
| 412 | +----------
|
---|
| 413 | +
|
---|
| 414 | + not available as a rpm at this time of writing
|
---|
| 415 | +
|
---|
| 416 | +pthread
|
---|
| 417 | +-------
|
---|
| 418 | +
|
---|
| 419 | + 1. yum install pthread
|
---|
| 420 | +
|
---|
| 421 | +
|
---|
| 422 | +2.1.b ZIP Installation
|
---|
| 423 | +----------------------
|
---|
| 424 | +
|
---|
| 425 | +kLIBC
|
---|
| 426 | +-----
|
---|
| 427 | +
|
---|
| 428 | + 1. Download kLIBC 0.6.5 or better (see http://svn.netlabs.org/libc for more
|
---|
| 429 | + information)
|
---|
| 430 | + 2. Install the files to your libpath eg x:\ecs\dll
|
---|
| 431 | +
|
---|
| 432 | +GCC4Core
|
---|
| 433 | +--------
|
---|
| 434 | +
|
---|
| 435 | + 1. Download GCC4Core 1.2.1 or better from http://ftp.netlabs.org/pub/gcc
|
---|
| 436 | + 2. Install the files to your libpath eg. x:\ecs\dll
|
---|
| 437 | +
|
---|
| 438 | +Qt4 dll
|
---|
| 439 | +-------
|
---|
| 440 | +
|
---|
| 441 | + 1. Download Qt4 4.7.3 or better (see http://svn.netlabs.org/qt4 for more
|
---|
| 442 | + information)
|
---|
| 443 | + 2. Install the files according to the readme
|
---|
| 444 | + 3. Install the xsystray plugin as noted in the readme.os2 and also in
|
---|
| 445 | + readme.xsystray
|
---|
| 446 | +
|
---|
| 447 | +Zlib
|
---|
| 448 | +----
|
---|
| 449 | +
|
---|
| 450 | + 1. Download zlib from http://rpm.netlabs.org/release/00/zip
|
---|
| 451 | + 2. Unpack and install z.dll to your libpath eg. x:\ecs\dll
|
---|
| 452 | +
|
---|
| 453 | +Jpeg
|
---|
| 454 | +----
|
---|
| 455 | +
|
---|
| 456 | + 1. Download jpeg from http://rpm.netlabs.org/release/00/zip
|
---|
| 457 | + 2. Unpack and install jpeg.dll to your libpath eg. x:\ecs\dll
|
---|
| 458 | +
|
---|
| 459 | +djvulibre
|
---|
| 460 | +---------
|
---|
| 461 | +
|
---|
| 462 | + 1. Download djvulibre from ftp://ftp.netlabs.org/pub/unixos2/djvulibre-3_5_25.zip
|
---|
| 463 | + 2. Unpack and install djvu.dll to your libpath eg. x:\ecs\dll
|
---|
| 464 | +
|
---|
| 465 | +cups
|
---|
| 466 | +----
|
---|
| 467 | +
|
---|
| 468 | + 1. Go to eCUPS wiki to see how to install eCUPS (http://svn.netlabs.org/ecups)
|
---|
| 469 | + 2. Install eCUPS according to the above wiki
|
---|
| 470 | +
|
---|
| 471 | +freetype/fontconfig
|
---|
| 472 | +-------------------
|
---|
| 473 | +
|
---|
| 474 | + 1. Download MZFNTCFGFT_RUNTIME as zip or wpi from
|
---|
| 475 | + ftp://ftp.netlabs.org/incoming/mozilla
|
---|
| 476 | + 2. Unpack and install it to your libpath eg. x:\ecs\dll
|
---|
| 477 | +
|
---|
| 478 | +ghostscript
|
---|
| 479 | +-----------
|
---|
| 480 | +
|
---|
| 481 | + 1. Download ghostscript as zip from ftp://ftp.netlabs.org/pub/unixos2/gs871os2.zip
|
---|
| 482 | + 2. Unpack and install the gsdll23.dll to your libpath eg. x:\ecs\dll
|
---|
| 483 | + (note this ghostscript it right now not compatible with P. Smedley's port)
|
---|
| 484 | +
|
---|
| 485 | +pthread
|
---|
| 486 | +-------
|
---|
| 487 | +
|
---|
| 488 | + 1. Download pthread from http://rpm.netlabs.org/release/00/zip
|
---|
| 489 | + 2. Unpack and install z.dll to your libpath eg. x:\ecs\dll
|
---|
| 490 | +
|
---|
| 491 | +
|
---|
| 492 | +3. INSTALLATION
|
---|
| 493 | +===============
|
---|
| 494 | +
|
---|
| 495 | +To install qpdfview, do the following:
|
---|
| 496 | +
|
---|
| 497 | + 1. Create a directory for qpdfview.
|
---|
| 498 | + 2. Extract the qpdfview package to the new directory.
|
---|
| 499 | + 3. Create a WPS object for qdpfview.exe.
|
---|
| 500 | + 4. Start qdpfview
|
---|
| 501 | + 5. Happy using it
|
---|
| 502 | + 6. If you want to use qpdfview from within a browser, you have to copy
|
---|
| 503 | + popp*.dll and tiff.dll to the libpath eg. x:\ecs\dll
|
---|
| 504 | +
|
---|
| 505 | +If you have tried to open a file and not all requirements have been there at
|
---|
| 506 | +this try, Qt screwed his plugin cache.
|
---|
| 507 | +To overcome that delete %HOME%/.config/Trolltech.ini. It will be created again
|
---|
| 508 | +when a Qt app starts.
|
---|
| 509 | +
|
---|
| 510 | +Optional: to have special fonts working you need poppler-data pack.
|
---|
| 511 | +
|
---|
| 512 | + - extract the 4 directories from the package found on http://poppler.freedesktop.org
|
---|
| 513 | + to your %unixroot%/usr/local/share/poppler or to the dir where lucide.exe is installed
|
---|
| 514 | + - if you also want japanese fonts working, take care that the "Times New Roman WT J" font
|
---|
| 515 | + is installed. This font is used as a fallback
|
---|
| 516 | +
|
---|
| 517 | +
|
---|
| 518 | +4. BUGREPORTS
|
---|
| 519 | +=============
|
---|
| 520 | +
|
---|
| 521 | +Please create bugreports at http://svn.netlabs.org/qtapps
|
---|
| 522 | +Only bug reports with a reproducable bug are accepted. :-)
|
---|
| 523 | +
|
---|
| 524 | +
|
---|
| 525 | +5. CREDITS
|
---|
| 526 | +==========
|
---|
| 527 | +
|
---|
| 528 | +The port was done by:
|
---|
| 529 | +
|
---|
| 530 | +Silvan Scherrer aka _diver
|
---|
| 531 | +
|
---|
| 532 | +Thanks go to:
|
---|
| 533 | +
|
---|
| 534 | + * Dmitriy Kuminov
|
---|
| 535 | +
|
---|
| 536 | +They either helped me when I had some nasty questions or did some testing for
|
---|
| 537 | +me.
|
---|
| 538 | +
|
---|
| 539 | +
|
---|
| 540 | +6. SUPPORT AND DONATIONS
|
---|
| 541 | +========================
|
---|
| 542 | +
|
---|
| 543 | +qpdfview port is based on volunteer work. If you would like to support further
|
---|
| 544 | +development, you can do so in one of the following ways:
|
---|
| 545 | +
|
---|
| 546 | +
|
---|
| 547 | + * Donate to the Qt4 project: see qt.netlabs.org for more information
|
---|
| 548 | +
|
---|
| 549 | + * Contribute to the project: Besides actual development, this also includes
|
---|
| 550 | + maintaining the documentation and the project web site as well as help
|
---|
| 551 | + for users.
|
---|
| 552 | +
|
---|
| 553 | +
|
---|
| 554 | +7. HISTORY
|
---|
| 555 | +==========
|
---|
| 556 | +
|
---|
| 557 | +2013-10-15
|
---|
| 558 | +
|
---|
| 559 | + * udated to latest qpdfview 0.4.6 source
|
---|
| 560 | +
|
---|
| 561 | +2013-08-14
|
---|
| 562 | +
|
---|
| 563 | + * updated to latest qpdfview 0.4.4.99 source
|
---|
| 564 | + * updated to latest poppler 0.24.0
|
---|
| 565 | +
|
---|
| 566 | +2013-06-17
|
---|
| 567 | +
|
---|
| 568 | + * added .ps and .eps file support
|
---|
| 569 | +
|
---|
| 570 | +2013-05-27
|
---|
| 571 | +
|
---|
| 572 | + * updated to latest qpdfview 0.4.3 source
|
---|
| 573 | +
|
---|
| 574 | +2013-05-14
|
---|
| 575 | +
|
---|
| 576 | + * updated to latest qpdfview 0.4.3 beta source
|
---|
| 577 | +
|
---|
| 578 | +2013-04-25
|
---|
| 579 | +
|
---|
| 580 | + * updated to latest poppler 0.22.3
|
---|
| 581 | +
|
---|
| 582 | +2013-04-19
|
---|
| 583 | +
|
---|
| 584 | + * updated to latest qpdfview 0.4.2 beta source
|
---|
| 585 | +
|
---|
| 586 | +2013-03-25
|
---|
| 587 | +
|
---|
| 588 | + * updated to latest qpdfview 0.4.1 source
|
---|
| 589 | +
|
---|
| 590 | +2013-03-20
|
---|
| 591 | +
|
---|
| 592 | + * updated to latest qpdfview 0.4.1 beta source
|
---|
| 593 | +
|
---|
| 594 | +2013-02-19
|
---|
| 595 | +
|
---|
| 596 | + * updated to latest qpdfview 0.4.0 source
|
---|
| 597 | +
|
---|
| 598 | +2013-02-12
|
---|
| 599 | +
|
---|
| 600 | + * updated to latest qpdfview 0.4.0 beta1 source
|
---|
| 601 | +
|
---|
| 602 | +2013-02-06
|
---|
| 603 | +
|
---|
| 604 | + * updated to latest qpdfview 0.3.7 source
|
---|
| 605 | +
|
---|
| 606 | +2013-01-14
|
---|
| 607 | +
|
---|
| 608 | + * updated to latest poppler 0.22.0
|
---|
| 609 | +
|
---|
| 610 | +2012-12-13
|
---|
| 611 | +
|
---|
| 612 | + * updated to latest qpdfview 0.3.7 beta 1 source
|
---|
| 613 | +
|
---|
| 614 | +2012-11-27
|
---|
| 615 | +
|
---|
| 616 | + * updated to latest qpdfview source
|
---|
| 617 | +
|
---|
| 618 | +2012-10-29
|
---|
| 619 | +
|
---|
| 620 | + * created install.os2
|
---|
| 621 | + * updated qpdfview to contain a icon (thx Herwig)
|
---|
| 622 | +
|
---|
| 623 | +2012-10-24
|
---|
| 624 | +
|
---|
| 625 | + * first public port
|
---|
| 626 | +
|
---|
| 627 | +
|
---|
| 628 | diff -Naur -x qpdfview.desktop E:\trees\qpdfview\trunk\..\vendor\current/qpdfview_os2.pri E:\trees\qpdfview\trunk/qpdfview_os2.pri
|
---|
| 629 | --- E:\trees\qpdfview\trunk\..\vendor\current/qpdfview_os2.pri 1970-01-01 01:00:00.000000000 +0100
|
---|
| 630 | +++ E:\trees\qpdfview\trunk/qpdfview_os2.pri 2013-10-07 16:49:08.000000000 +0200
|
---|
| 631 | @@ -0,0 +1,34 @@
|
---|
| 632 | +# define destdir
|
---|
| 633 | +PLUGIN_DESTDIR = lib
|
---|
| 634 | +
|
---|
| 635 | +# define the djvu part
|
---|
| 636 | +DJVU_PLUGIN_LIBS += -Le:/trees/djvulibre/trunk/libdjvu/.libs
|
---|
| 637 | +DJVU_PLUGIN_LIBS += djvulibre
|
---|
| 638 | +DJVU_PLUGIN_INCLUDEPATH += e:/trees/djvulibre/trunk
|
---|
| 639 | +DJVU_PLUGIN = qpdfdjvu
|
---|
| 640 | +DJVU_PLUGIN_NAME = $$DJVU_PLUGIN".dll"
|
---|
| 641 | +
|
---|
| 642 | +# define the poppler part
|
---|
| 643 | +PDF_PLUGIN_DEFINES += HAS_POPPLER_14 HAS_POPPLER_18 HAS_POPPLER_20 HAS_POPPLER_22 HAS_POPPLER_24
|
---|
| 644 | +PDF_PLUGIN_LIBS += -Le:/trees/poppler/trunk/qt4/src/.libs
|
---|
| 645 | +PDF_PLUGIN_LIBS += popplerqt4
|
---|
| 646 | +PDF_PLUGIN_INCLUDEPATH += e:/trees/poppler/trunk/qt4/src
|
---|
| 647 | +PDF_PLUGIN = qpdfpdf
|
---|
| 648 | +PDF_PLUGIN_NAME = $$PDF_PLUGIN".dll"
|
---|
| 649 | +
|
---|
| 650 | +# define the ps part
|
---|
| 651 | +PS_PLUGIN_LIBS += -Le:/trees/libspectre/trunk/libspectre/.libs -Le:/trees/ghostscript/trunk/gs8.71/bin
|
---|
| 652 | +PS_PLUGIN_LIBS += spectre gs
|
---|
| 653 | +PS_PLUGIN_INCLUDEPATH += e:/trees/libspectre/trunk
|
---|
| 654 | +PS_PLUGIN = qpdfps
|
---|
| 655 | +PS_PLUGIN_NAME = $$PS_PLUGIN".dll"
|
---|
| 656 | +
|
---|
| 657 | +# define the cups part
|
---|
| 658 | +CUPS_LIBS += cups
|
---|
| 659 | +
|
---|
| 660 | +# define the vendor part
|
---|
| 661 | +DEF_FILE_VENDOR = bww bitwise works GmbH
|
---|
| 662 | +DEF_FILE_VERSION = $$APPLICATION_VERSION
|
---|
| 663 | +DEF_FILE_DESCRIPTION = eCS (OS/2) port of qpdfview by Adam Reichold
|
---|
| 664 | +
|
---|
| 665 | +
|
---|
| 666 | diff -Naur -x qpdfview.desktop E:\trees\qpdfview\trunk\..\vendor\current/synctex/synctex_parser_utils.c E:\trees\qpdfview\trunk/synctex/synctex_parser_utils.c
|
---|
| 667 | --- E:\trees\qpdfview\trunk\..\vendor\current/synctex/synctex_parser_utils.c 2013-03-24 14:30:12.000000000 +0100
|
---|
| 668 | +++ E:\trees\qpdfview\trunk/synctex/synctex_parser_utils.c 2013-03-20 17:08:22.000000000 +0100
|
---|
| 669 | @@ -57,6 +57,10 @@
|
---|
| 670 | #define SYNCTEX_WINDOWS 1
|
---|
| 671 | #endif
|
---|
| 672 |
|
---|
| 673 | +#if defined(__OS2__)
|
---|
| 674 | +#define SYNCTEX_OS2 1
|
---|
| 675 | +#endif
|
---|
| 676 | +
|
---|
| 677 | #ifdef _WIN32_WINNT_WINXP
|
---|
| 678 | #define SYNCTEX_RECENT_WINDOWS 1
|
---|
| 679 | #endif
|
---|
| 680 | @@ -121,7 +125,7 @@
|
---|
| 681 | last_component = next+1;
|
---|
| 682 | }
|
---|
| 683 | }
|
---|
| 684 | -# ifdef SYNCTEX_WINDOWS
|
---|
| 685 | +# if defined(SYNCTEX_WINDOWS) || defined (SYNCTEX_OS2)
|
---|
| 686 | /* On Windows, the '\' is also a path separator. */
|
---|
| 687 | while((next = strstr(last_component,"\\"))){
|
---|
| 688 | last_component = next+1;
|
---|
| 689 | @@ -207,7 +211,7 @@
|
---|
| 690 | if(!strlen(name)) {
|
---|
| 691 | return synctex_NO;
|
---|
| 692 | }
|
---|
| 693 | -# if SYNCTEX_WINDOWS
|
---|
| 694 | +# if defined(SYNCTEX_WINDOWS) || defined(SYNCTEX_OS2)
|
---|
| 695 | if(strlen(name)>2) {
|
---|
| 696 | return (name[1]==':' && SYNCTEX_IS_PATH_SEPARATOR(name[2]))?synctex_YES:synctex_NO;
|
---|
| 697 | }
|
---|
| 698 | diff -Naur -x qpdfview.desktop E:\trees\qpdfview\trunk\..\vendor\current/synctex/synctex_parser_utils.h E:\trees\qpdfview\trunk/synctex/synctex_parser_utils.h
|
---|
| 699 | --- E:\trees\qpdfview\trunk\..\vendor\current/synctex/synctex_parser_utils.h 2013-03-24 14:30:12.000000000 +0100
|
---|
| 700 | +++ E:\trees\qpdfview\trunk/synctex/synctex_parser_utils.h 2013-03-20 17:11:20.000000000 +0100
|
---|
| 701 | @@ -64,7 +64,7 @@
|
---|
| 702 | #define FALSE 0
|
---|
| 703 | #define TRUE !FALSE
|
---|
| 704 |
|
---|
| 705 | -# if _WIN32
|
---|
| 706 | +# if defined(_WIN32) || defined(__OS2__)
|
---|
| 707 | # define SYNCTEX_CASE_SENSITIVE_PATH FALSE
|
---|
| 708 | # define SYNCTEX_IS_PATH_SEPARATOR(c) ('/' == c || '\\' == c)
|
---|
| 709 | # else
|
---|
| 710 | @@ -72,7 +72,7 @@
|
---|
| 711 | # define SYNCTEX_IS_PATH_SEPARATOR(c) ('/' == c)
|
---|
| 712 | # endif
|
---|
| 713 |
|
---|
| 714 | -# if _WIN32
|
---|
| 715 | +# if defined(_WIN32) || defined(__OS2__)
|
---|
| 716 | # define SYNCTEX_IS_DOT(c) ('.' == c)
|
---|
| 717 | # else
|
---|
| 718 | # define SYNCTEX_IS_DOT(c) ('.' == c)
|
---|