Changeset 32909 for gs2-extensions/imagemagick/trunk
- Timestamp:
- 2019-03-15T22:35:54+13:00 (5 years ago)
- Location:
- gs2-extensions/imagemagick/trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/imagemagick/trunk/README
r32016 r32909 25 25 3. See section THINGS TO CHECK below and perform the tests there to check the compiled up imagemagick works. 26 26 27 4. Create an imagemagick folder containing only setup.bash, setup.bat and the darwin folder .27 4. Create an imagemagick folder containing only setup.bash, setup.bat and the darwin folder (or the "linux" folder on linux machines). 28 28 29 The darwin folder should only contain the following 4 folders, so remove the rest: 29 4a. (This seems to be a Darwin-only step, as we don't cut-down the products in the linux folder the same way.) 30 The darwin folder from step 4 should only contain the following 4 folders, so remove the rest: 30 31 - script 31 32 - etc 32 33 - lib 33 34 - bin: cut down to just the following 35 convert 36 identify 37 Magick-config 34 38 Magick++-config 35 Magick-config36 39 MagickCore-config 37 40 MagickWand-config 38 41 Wand-config 39 identify40 convert41 42 42 43 Note: As per the El Capitan release-kit (kits/rk3/ant-scripts/compile.xml), only the darwin folder within the tarball (and not the setup scripts) will get copied over as the "imagemagick" folder into gs2build/bin/darwin. (So the "darwin" folder will be named "imagemagick" in the final binary.) … … 51 52 THINGS TO CHECK 52 53 53 To test imagemagick works: 54 To test imagemagick works 55 56 0. cd into src/<OS>/bin 54 57 55 58 1. ./identify -list format … … 161 164 -rwxrwxr-x 1 anupama wheel 9653688 24 Aug 14:03 identify 162 165 166 ------------------------------------------------------------------------ 167 15 Mar 2019 168 ak19 169 170 On an Ubuntu 18.04 VM, we found that GLI launched and said imagemagick wasn't installed (despite being bundled) and it would have to find a system version. 171 172 The included imagemagick was from a tarball, and when you ran "gs-magick.pl identify", the problem it was finding a system libpng which resulted in the secondary problem that this system libpng then required a different zlib from the bundled zlib: 173 174 ~/GS309_21Feb2019$ gs-magick.pl identify 175 identify: /home/anupama/GS309_21Feb2019/gs2build/bin/linux/imagemagick/lib/libz.so.1: version `ZLIB_1.2.9' not found (required by /usr/lib/x86_64-linux-gnu/libpng16.so.16) 176 177 178 Since the linux 64 tarball of imagemagick had been built 6 years ago, while the El Capitan imagemagick tarball was built 2 years ago, we hoped that rebuilding imagemagick again would produce a more static binary that would then bypass the above issue. 179 180 Although imagemagick compiled successfully, 181 * the command "identify -list format" under section THINGS TO CHECK above, did not include TIFF as one of the supported formats. We require support for gif, jp(e)g, png and tiff. 182 * and the command "convert -list configure" did not list "tiff" among the delegates in the DELEGATES line, see https://imagemagick.org/discourse-server/viewtopic.php?t=20635 183 184 The imagemagick config.log showed that there were errors with tiff when configuiring imagemagick. 185 Searching through ImageMagick's config.log for occurrences of --with-tiff showed that despite --with-tiff being switched on, it got switched off because of failed configure tests. (See https://imagemagick.org/discourse-server/viewtopic.php?t=18039) 186 187 PROBLEM AND SOLUTION: 188 That was with tiff-3.9.4.tar.gz and ImageMagick-6.9.5-4.tar.gz, which was fine on El Capitan but not on Linux where TIFF was not supported (not just Ubuntu v18.04 but also v16.04). 189 * The suggestion at http://lists.endsoftwarepatents.org/archive/html/discuss-gnustep/2001-07/msg00025.html was not helpful: we already appended -lz to our LDFLAGS for ImageMagick to help tiff along on Macs. The same line was already active for Linux too. And preceding the -lz with the insertion of -ltiff made no meaningful difference. 190 * Just hiking up the tiff version gradually to tiff-4.0.10 (downloadable along with intermediate versions from https://download.osgeo.org/libtiff/ with tiff 4.0.10 being the latest) made no difference. 191 * But in conjunction with ImageMagick-6.9.10-33.tar.gz, the most conservative version available at https://imagemagick.org/download/, compiled successfully with tiff-4.0.10, so that TIFF was now finally a listed format and had "rw" support when `identify -list format` is run. And doing "./convert logo: logo.tiff" followed by "file logo.tiff" shows the logo.tiff file resulting from the conversion to indeed be a TIFF file. 192 193 194 It is possible that versions of ImageMagick and Tiff intermediate to those above would succeed as well, but that will be a rather long experiment with too many combinations of ImageMagick and Tiff. Since the GS3 tutorials still need to be tested on Mac and Linux machines, I'll see if the tarball can be successfully created on the linux-64bit lsb machine and works on Ubuntu 18.04. 195 196 ------------------------------------------------------------------------ -
gs2-extensions/imagemagick/trunk/src/packages/CASCADE-MAKE/IMAGEMAGICK.sh
r31145 r32909 2 2 3 3 package=ImageMagick 4 version=-6.9.5-4 4 #version=-6.9.5-4 5 version=-6.9.10-33 5 6 6 7 progname=$0 -
gs2-extensions/imagemagick/trunk/src/packages/CASCADE-MAKE/TIFF.sh
r30675 r32909 2 2 3 3 package=tiff 4 version=-3.9.4 4 #version=-3.9.4 5 version=-4.0.10 5 6 6 7 progname=$0
Note:
See TracChangeset
for help on using the changeset viewer.