root/gs2-extensions/imagemagick/trunk/README @ 31379

Revision 31379, 7.3 KB (checked in by ak19, 3 years ago)

Some additional notes.

Line 
131 Oct 2016, last updated 1 Feb 2017
2ak19
3
4If making an imagemagick binary tarball, here are the steps to go through and the things to check
5
6
7TO CREATE THE IMAGEMAGICK TARBALL FOR DARWIN EL CAPITAN
8
90. Need to be on an El Capitan that should not have xwindows (like Dr Bainbridge's El Capitan laptop), so that we don't produce imagemagick binaries dependent on these libs, see trac changeset 31012.
10
11For general information: An important change involved setting the mmacosx-version-min=10.8, in order to get the generated imagemagick binary to work on more Mac El Capitan machines, as explained in the commit message for http://trac.greenstone.org/changeset/31145:
12"Redoing El Capitan imgmagick binary for release after testing on an uncooperative El Cap Mac machine. The key change involved recompiling with mmacosx-version-min=10.8 (Mountain Lion) to make the binary more backwards compatible."
13
141. svn co http://svn.greenstone.org/gs2-extensions/imagemagick/trunk
15
162. Then:
17   cd src
18   ./CASCADE-MAKE.sh
19
203. See section THINGS TO CHECK below and perform the tests there to check the compiled up imagemagick works.
21
224. Create an imagemagick folder containing only setup.bash, setup.bat and the darwin folder.
23
24The darwin folder should only contain the following 4 folders, so remove the rest:
25- script
26- etc
27- lib
28- bin: cut down to just the following
29  Magick++-config
30  Magick-config
31  MagickCore-config
32  MagickWand-config
33  Wand-config
34  identify
35  convert
36
37Note: 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.)
38
395. Create a tarball of the imagemagick folder created in step 4 above (containing the darwin subfolder and the 2 setup scripts) and name the tarball imagemagick-darwin-10.11.tar.gz
40
41   tar -cvzf imagemagick-darwin-10.11.tar.gz imagemagick
42
436. Commit the tarball into the trunk folder checked out in step 1 above.
44
45
46THINGS TO CHECK
47
48To test imagemagick works:
49
501. ./identify -list format
51
52It should print out the list of image conversion formats supported. Check the read/write status of the listed file formats: we want r,w  (read and write abilities) for GIF, JPG, PNG, TIFF.
53
542. Next run
55   ./convert logo: logo.png
56
57This will (should) generate a file called logo.png in the same location.
58Check that it is indeed PNG by running:
59
60   file logo.png
61
62The file info printed should say whether it's PNG. If things went wrong, the actual file produced might be listed as GIF still. In that case, the conversion was unsuccessful, which means something could be wrong with the delegate/imgmagick library for that image file format. Check for any errors when configuring and compiling up that delegate library.
63
64
65
66RESOURCES ON COMPILING UP AN IMAGEMAGICK BINARY STATICALLY
67
68- http://www.imagemagick.org/script/download.php
69
70- http://stackoverflow.com/questions/25634129/compile-static-version-of-imagemagick-convert-util
71
72- http://imagemagick.sourceforge.net/docs/GuideToBuildingIMForMacOSX.pdf
73
74- http://www.imagemagick.org/discourse-server/viewtopic.php?t=13145
75
76Words to look out for:
77delegates
78
79./convert
80different listing of formats supported?
81
82
83depends on:
84- version of imgmagick (src code)
85- whether it uses xwindows libraries or not
86-> macs used to come with xwindows libraries, and imgmagick used to make use of that. But now Macs aren't guaranteed to come with xwindows libs, so for El Capitan binaries, compile up ImageMagick tarball on Gilda El Capitan (which produces bins not dependent on xwindows libs), rather than generating the tarball on the ElCap laptop where xwin libs are available and dynamically linked to (but these libs are then found missing on other El Capitan machines like Gilda, and the convert command will fail).
87
88
89FILE LISTING:
90
91gilda:GS3bin_28Oct2016 anupama$ cd gs2build/bin/darwin/imagemagick/
92
93gilda:imagemagick anupama$ ls
94bin       etc      lib  script
95
96gilda:imagemagick anupama$ ls script/
97aspectpad.sh
98
99gilda:imagemagick anupama$ ls -la lib/
100total 38672
101drwxr-xr-x  41 anupama  wheel     1394 28 Oct 15:37 .
102drwxr-xr-x   6 anupama  wheel      204 28 Oct 15:37 ..
103drwxr-xr-x   3 anupama  wheel      102 28 Oct 15:37 ImageMagick-6.9.5
104-rw-r--r--   1 anupama  wheel      642 24 Aug 13:54 charset.alias
105drwxr-xr-x   6 anupama  wheel      204 28 Oct 15:37 gettext
106-rw-r--r--   1 anupama  wheel  1108152 24 Aug 14:03 libMagick++-6.Q16.a
107-rw-r--r--   1 anupama  wheel     1691 24 Aug 14:03 libMagick++-6.Q16.la
108-rw-r--r--   1 anupama  wheel  7242008 24 Aug 14:03 libMagickCore-6.Q16.a
109-rw-r--r--   1 anupama  wheel     1491 24 Aug 14:03 libMagickCore-6.Q16.la
110-rw-r--r--   1 anupama  wheel  2624976 24 Aug 14:03 libMagickWand-6.Q16.a
111-rw-r--r--   1 anupama  wheel     1594 24 Aug 14:03 libMagickWand-6.Q16.la
112-rw-r--r--   1 anupama  wheel    53392 24 Aug 13:52 libasprintf.a
113-rw-r--r--   1 anupama  wheel      943 24 Aug 13:52 libasprintf.la
114-rw-r--r--   1 anupama  wheel   104624 24 Aug 13:54 libbz2.a
115-rw-r--r--   1 anupama  wheel     9400 24 Aug 13:48 libcharset.a
116-rw-r--r--   1 anupama  wheel      938 24 Aug 13:48 libcharset.la
117-rw-r--r--   1 anupama  wheel     1228 24 Aug 13:53 libgettextlib.la
118-rw-r--r--   1 anupama  wheel  1352208 24 Aug 13:53 libgettextpo.a
119-rw-r--r--   1 anupama  wheel     1215 24 Aug 13:53 libgettextpo.la
120-rw-r--r--   1 anupama  wheel     1325 24 Aug 13:53 libgettextsrc.la
121-rw-r--r--   1 anupama  wheel  1292104 24 Aug 13:48 libiconv.a
122-rw-r--r--   1 anupama  wheel      932 24 Aug 13:48 libiconv.la
123-rw-r--r--   1 anupama  wheel   211720 24 Aug 13:53 libintl.a
124-rw-r--r--   1 anupama  wheel     1109 24 Aug 13:53 libintl.la
125-rw-r--r--   1 anupama  wheel   595296 24 Aug 13:57 libjasper.a
126-rw-r--r--   1 anupama  wheel      988 24 Aug 13:57 libjasper.la
127-rw-r--r--   1 anupama  wheel   421824 24 Aug 13:55 libjpeg.a
128-rw-r--r--   1 anupama  wheel     1016 24 Aug 13:55 libjpeg.la
129-rw-r--r--   1 anupama  wheel   281688 24 Aug 13:57 libpng.a
130-rw-r--r--   1 anupama  wheel     1022 24 Aug 13:57 libpng.la
131-rw-r--r--   1 anupama  wheel   281688 24 Aug 13:57 libpng14.a
132-rw-r--r--   1 anupama  wheel     1022 24 Aug 13:57 libpng14.la
133-rw-r--r--   1 anupama  wheel  1376688 24 Aug 13:56 libtiff.a
134-rw-r--r--   1 anupama  wheel     1114 24 Aug 13:56 libtiff.la
135-rw-r--r--   1 anupama  wheel   125408 24 Aug 13:56 libtiffxx.a
136-rw-r--r--   1 anupama  wheel     1211 24 Aug 13:56 libtiffxx.la
137-rw-r--r--   1 anupama  wheel  2495888 24 Aug 13:55 libxml2.a
138-rw-r--r--   1 anupama  wheel     1124 24 Aug 13:55 libxml2.la
139-rw-r--r--   1 anupama  wheel   108264 24 Aug 13:54 libz.a
140drwxr-xr-x  18 anupama  wheel      612 28 Oct 15:37 pkgconfig
141-rw-r--r--   1 anupama  wheel      357 24 Aug 13:55 xml2Conf.sh
142
143gilda:imagemagick anupama$ ls etc/
144ImageMagick-6
145
146gilda:imagemagick anupama$ ls -la bin/
147total 38240
148drwxr-xr-x  9 anupama  wheel      306 28 Oct 15:37 .
149drwxr-xr-x  6 anupama  wheel      204 28 Oct 15:37 ..
150-rwxrwxr-x  1 anupama  wheel     1328 24 Aug 14:03 Magick++-config
151-rwxrwxr-x  1 anupama  wheel     1294 24 Aug 14:03 Magick-config
152-rwxrwxr-x  1 anupama  wheel     1302 24 Aug 14:03 MagickCore-config
153-rwxrwxr-x  1 anupama  wheel     1542 24 Aug 14:03 MagickWand-config
154-rwxrwxr-x  1 anupama  wheel     1289 24 Aug 14:03 Wand-config
155-rwxrwxr-x  1 anupama  wheel  9903736 24 Aug 14:03 convert
156-rwxrwxr-x  1 anupama  wheel  9653688 24 Aug 14:03 identify
157
Note: See TracBrowser for help on using the browser.