Page 1 of 1

hdri enabled, but no openexr support

Posted: 2009-08-14T07:08:30-07:00
by onelson
Kind of scratching my head here.

I recently compiled ImageMagick on my desktop with openexr support. Everything went great. I went to do the same on a web server of mine (pretty much the same environment - opensuse x86_64, just without x11, etc).

When I configure:

Code: Select all

$ ./configure --enable-hdri | grep -i exr
checking for OPENEXR...
./configure: line 42857: test: -gt: unary operator expected
OpenEXR           --with-openexr=yes            no
If I proceed with the install, it all seems to go well. I verify that hdri is enabled:

Code: Select all

Version: ImageMagick 6.5.5-0 2009-08-13 Q16 HDRI OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
but...

Code: Select all

$ /usr/local/bin/convert -list format | grep -i exr
$
The libs are installed, I have the same (everything) selection on both my desktop and the server.

Code: Select all

S | Name          | Summary                                                        | Type
--+---------------+----------------------------------------------------------------+--------
i | OpenEXR       | Library to Handle EXR Pictures in 16-Bit Floating-Point Format | package
i | OpenEXR-32bit | Library to Handle EXR Pictures in 16-Bit Floating-Point Format | package
i | OpenEXR-devel | Library to Handle EXR Pictures (16-bit floating-point format)  | package
i | OpenEXR-doc   | Library to Handle EXR Pictures in 16-Bit Floating-Point Format | package
The output above is all using the latest beta version, but I had the same results with 6.5.3 and 6.5.4

Any thoughts as to why openexr support would fail? Is there some other lib I need to install that I have inadvertently on my desktop?

Thanks,
Owen Nelson

Re: hdri enabled, but no openexr support

Posted: 2009-08-14T08:18:11-07:00
by fmw42
did you install the openexr library before compiling IM?

http://www.openexr.com/index.html

by the way IM only has implemented the "half" or 16-bit format.

type

convert -list configure

Look at the line

DELEGATES bzlib fftw fontconfig freetype gs jpeg jng jp2 lcms lqr openexr png tiff x11 xml zlib


if openexr is not there, then you do not have it installed or installed properly for IM to recognize

Re: hdri enabled, but no openexr support

Posted: 2009-08-14T08:47:40-07:00
by onelson
Well I guess that's the question - how to install openexr "properly" so IM can see it.

All the exr packages listed were installed before I tried to compile. But still, it cannot find what it needs:
DELEGATES freetype jpeg jng lcms png tiff xml zlib

The 16-bit implementation is fine - I just need to be able to convert these exrs into something that can be displayed in a browser. I'm not even worried about degradation.

Any idea what IM looks at to decide if OpenEXR is installed? I mean, it is in the same place (/usr/include/OpenEXR) on both my machines, the one that worked and the one that didn't.

I tried doing
export OPENEXR_CFLAGS='-I/usr/include/OpenEXR '
but it still doesn't want to play ball.

Re: hdri enabled, but no openexr support

Posted: 2009-08-14T09:32:26-07:00
by onelson
Well, out of frustration, I decided to do something that I didn't think should have anything to do with the solution.

Installing xorg-x11-*devel (I didn't want to wade through them all until I found the one that might or might not resolve the issue).
Configuring after that gave the expected result. I'm in the process of running make now, but I anticipate it will work just great.

Re: hdri enabled, but no openexr support

Posted: 2009-08-14T10:48:58-07:00
by fmw42
all I know is to follow the instructions in the Openexr library which is usually ./configure, make, (sudo) make install. If the package has and INSTALL file, read that. I opened the openexr-1.6.1 library folder and its INSTALL said look at the README, which then said:


"BUILDING OPENEXR
----------------

Building OpenEXR requires the IlmBase and the zlib library.

You can obtain the source code for zlib from:

http://www.zlib.net

If you're building OpenEXR on a Windows platform, see README.win32 for
instructions on how to build OpenEXR. The remainder of this file
applies only to GNU/Linux or other UNIX-like systems.

After installing the required libraries, to build OpenEXR on
GNU/Linux or other UNIX-like systems, do this:

./configure
make
make install
"

You can also find info at:
http://www.openexr.com/ReadingAndWritingImageFiles.pdf

Then just install IM. I don't recall doing anything special in the IM config to make it work.