Changeset 32230 for gs2-extensions/xpdf-tools
- Timestamp:
- 2018-07-02T20:52:19+12:00 (6 years ago)
- Location:
- gs2-extensions/xpdf-tools/trunk/src/packages
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/xpdf-tools/trunk/src/packages/CASCADE-MAKE/XPDFTOOLS.sh
r32228 r32230 2 2 3 3 # only going to make xpdf-tools, not xpdf-reader. So not making all of xpdf 4 package= gs-xpdf4 package=xpdf 5 5 version=-4.00 6 6 … … 12 12 prefix=$GEXTXPDFTOOLS_INSTALLED 13 13 14 # Use C/CPP/CXX FLAGS and LDFLAGS for setting up14 # Use C/CPP/CXX FLAGS and LDFLAGS for further setting up 15 15 # libpng and libz for compiling xpdftools 16 16 export CFLAGS="$CFLAGS -I$GEXTXPDFTOOLS_INSTALLED/include -I$GEXTXPDFTOOLS_INSTALLED/include/libpng15" … … 19 19 export LDFLAGS="$LDFLAGS -L$GEXTXPDFTOOLS_INSTALLED/lib" 20 20 21 #echo GSDLOS = $GSDLOS22 21 23 22 opt_run_untar $force_untar $auto_untar $package $version … … 33 32 echo "Using cmake: " 34 33 echo `which cmake` 35 ##exit 036 34 37 # IGNORE: See xpdf-tools src' INSTALL instructions: need to create a 'build' dir 38 # cd there and then run cmake from there, providing the xpdf-tools src dir 39 # ACTUALLY: doing the above breaks the way cascade-lib.bash does it. It wants 40 # a 'release' directory, so do it the cascade-make way as that works. 35 # The xpdf-tools src code's INSTALL instructions say we need to create a 'build' dir, 36 # cd into there and then run cmake from there, providing the xpdf-tools src dir 37 # However, doing so breaks the way cascade-lib.bash runs a CMake compile sequence. 38 # cascade-lib.bash wants a 'release' directory, so do it the cascade-make way as 39 # that works. 41 40 # TO AVOID building xpdf(reader), turn off finding Qt libs with the cmake flags below 42 41 if [ $force_config = "1" ] ; then … … 49 48 cd release ; \ 50 49 50 # see xpdf-tools src code's INSTALL file for these options 51 51 if [ ! -f Makefile ] ; then \ 52 52 #cmake -D CMAKE_BUILD_TYPE=RELEASE \ … … 54 54 cmake -DCMAKE_BUILD_TYPE=Release \ 55 55 -DCMAKE_INSTALL_PREFIX=$prefix \ 56 -DZLIB_LIBRARY=$prefix/lib/libz. a\57 -DPNG_LIBRARY=$prefix/lib/libpng15. a\58 -DFREETYPE_LIBRARY=$prefix/lib/libfreetype. a\56 -DZLIB_LIBRARY=$prefix/lib/libz.so.1.2.7 \ 57 -DPNG_LIBRARY=$prefix/lib/libpng15.so.15.30.0 \ 58 -DFREETYPE_LIBRARY=$prefix/lib/libfreetype.so.6.3.20 \ 59 59 -DCMAKE_DISABLE_FIND_PACKAGE_Qt4=1 \ 60 60 -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets=1 \ … … 62 62 -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ 63 63 -DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS" \ 64 -DPNG_LINK_FLAGS="-lpng15" \65 64 $GEXT_XPDFTOOLS/packages/$package$version 66 65 fi ; \ … … 81 80 fi 82 81 83 ## The -DFREETYPE_DIR to be used in place of -DFREETYPE_LIBRARY above 84 ## this will help it find the "libfreetype.so" (no versioning at end) in our gs ext 85 ## But -DZLIB_DIR and -DPNG_DIR are ignored and unrecognised, whereas 86 ## -DZLIB_LIBRARY and -DPNG_LIBRARY are recognised & supposedly used when compiling 87 ## but weren't really used as seen when running ldd on the xpdf-tools binaries: 82 # If compiling statically, need these above in place of the references to .so files 83 # -DZLIB_LIBRARY=$prefix/lib/libz.a \ 84 # -DPNG_LIBRARY=$prefix/lib/libpng15.a \ 85 # -DFREETYPE_LIBRARY=$prefix/lib/libfreetype.a \ 86 87 88 ## When -DFREETYPE_DIR is used in place of -DFREETYPE_LIBRARY above, it makes 89 ## xpdf-tools compilation find the "libfreetype.so" (no versioning at end) in 90 ## our gs ext. 91 ## But -DZLIB_DIR and -DPNG_DIR are ignored because they go unrecognised, whereas 92 ## -DZLIB_LIBRARY and -DPNG_LIBRARY are recognised by XpdfTools' CMake files. 93 ## -DZLIB_LIBRARY and -DPNG_LIBRARY require full paths. So the first 2 lines of the 94 ## following won't work: 88 95 # -DZLIB_DIR=$prefix \ 89 96 # -DPNG_DIR=$prefix \ 90 97 # -DFREETYPE_DIR=$prefix \ 91 98 92 ## When specified this way, all 3 lines are recognised (freetype, zlib, png)93 ## but weren't really used as seen when running ldd on the xpdf-tools binaries:99 ## When specified in the following way, all 3 lines are recognised (freetype, zlib, 100 ## png). The 3rd line can alternatively still use "-DFREETYPE_DIR=$prefix" 94 101 # -DZLIB_LIBRARY=$prefix/lib/libz.so.1.2.7 \ 95 102 # -DPNG_LIBRARY=$prefix/lib/libpng15.so.15.30.0 \
Note:
See TracChangeset
for help on using the changeset viewer.