Installing on Red Hat with OpenJPEG

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
evgeni
Posts: 2
Joined: 2015-04-02T03:46:45-07:00
Authentication code: 6789

Installing on Red Hat with OpenJPEG

Post by evgeni »

Hi,

I am trying to install ImageMagick 6.9.1 on Red Hat el5.

I have openjpeg-2.1.0 installed. It works and converts png to jp2.

For the ImageMagick installation I am running
./configure CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"

and I am getting

Option Value
------------------------------------------------------------------------------
JPEG-2000 --with-jp2=
OpenJP2 --with-openjp2=yes no

. . .
DELEGATES = bzlib mpeg fontconfig freetype jng jpeg lcms png ps tiff x xml zlib

Any advice - how to get ImageMagick working with OpenJPEG on this platform?
evgeni
Posts: 2
Joined: 2015-04-02T03:46:45-07:00
Authentication code: 6789

Re: Installing on Red Hat with OpenJPEG

Post by evgeni »

It works. I found the cause - the last export before the "configure" was missing:
export CPATH=/usr/local/include
export LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH=/usr/local/lib
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/

./configure CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Installing on Red Hat with OpenJPEG

Post by Bonzo »

Thanks for coming back and sharing your answer with us evgeni
Post Reply