Compiling ImageMagick (64 bit libraries?)
Posted: 2011-04-18T14:20:13-07:00
Trying to build latest Imagemagick with more recent versions of JPEG and PNG than is available on my operating system. It seems like doing a delegate build was the way to go:
- Unzipped Imagemagick
- From the delegates directory (on the IM website) downloaded and unzipped libpng-1.5.2.tar.gz (called the dir png) and jpegsrc.v8b.tar.gz (dir called jpeg)
- run ./configure --disable-shared --enable-delegate-build
- This looks good from configure status:
- When installed, looking at the libraries the binary uses, it is referencing:
Any ideas welcome
- Unzipped Imagemagick
- From the delegates directory (on the IM website) downloaded and unzipped libpng-1.5.2.tar.gz (called the dir png) and jpegsrc.v8b.tar.gz (dir called jpeg)
- run ./configure --disable-shared --enable-delegate-build
- This looks good from configure status:
- Build completes, run make check:LDFLAGS = -L/src/ImageMagick/ImageMagick-6.6.9-5/jpeg -L/src/ImageMagick/ImageMagick-6.6.9-5/magick -L/src/ImageMagick/ImageMagick-6.6.9-5/png -L/src/ImageMagick/ImageMagick-6.6.9-5/wand
(These tests do not fail when doing a vanilla build.)===========================================
2 of 48 tests failed
See ./test-suite.log
Please report to http://www.imagemagick.org
===========================================
2 of 48 tests failed.
.. contents:: :depth: 2
FAIL: tests/validate-formats-in-memory.sh (exit: 1)
===================================================
Version: ImageMagick 6.6.9-5 2011-04-18 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
ImageMagick Validation Suite (FormatsInMemory)
test 219: ICON/Undefined/TrueColoWrong JPEG library version: library is 62, caller expects 80
r/12-bits... pass.
test 220: ICON/Undefined/TrueColor/16-bits... pass.
test 221: JPEG/Undefined/TrueColor/8-bits
FAIL: tests/validate-formats-on-disk.sh (exit: 1)
=================================================
Version: ImageMagick 6.6.9-5 2011-04-18 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
ImageMagick Validation Suite (FormatsOnDisk)
- When installed, looking at the libraries the binary uses, it is referencing:
I guess I'm concerned that its still using the old jpeg/png lib version. I tried to use a different method for compilation, but it too seems to be referencing older 64 bit libraries in /usr/lib64/libjpeg.so.62.#ldd ./convert | grep -i usr
[snip]
libpng12.so.0 => /usr/lib64/libpng12.so.0
libjpeg.so.62 => /usr/lib64/libjpeg.so.62
How do I prevent IM from using that old library version? Can I create a newer /usr/lib64/libjpeg.so library myself using libjpeg src? (it doesn't seem to make that on its own_../configure CPPFLAGS='-I/src/ImageMagick/jpeg-8c -I/src/ImageMagick/libpng-1.5.2 -I/src/ImageMagick/tiff-3.9.5' LDFLAGS='-L/src/ImageMagick/jpeg-8c -L/src/ImageMagick/libpng-1.5.2 -L/src/ImageMagick/tiff-3.9.5'
Any ideas welcome