Page 1 of 1
Build ImageMagick with custom build OpenExr
Posted: 2014-04-28T08:21:26-07:00
by efleurant
I have trying to configure ImageMagick to see/detect my build of OpenEXR and I'm unable to do so. I am on CentOS and it is not a yum install of openexr, it's my own build. I have tried setting CPPFLAGS and LDFLAGS to where my includes and libraries are to no avail.
Can anyone let me know if it's possible or has had any luck doing this?
Thanks in advance
Re: Build ImageMagick with custom build OpenExr
Posted: 2014-04-28T08:40:53-07:00
by efleurant
Actually, I have noticed that the ./configure seems to ignore what I pass to CPPFLAGS
for example, if I do:
Code: Select all
./configure CPPFLAGS=-I/usr/local/include/OpenEXR
I get :
Code: Select all
Options used to compile and link:
PREFIX = /usr/local
EXEC-PREFIX = /usr/local
VERSION = 6.8.9
CC = gcc -std=gnu99 -std=gnu99
CFLAGS = -I/usr/include/freetype2 -fopenmp -g -O2 -Wall -fexceptions -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
[b]CPPFLAGS = -I/usr/local/include/ImageMagick-6[/b]
...
Clearly, my argument was not passed to the CPPFLAGS list
Re: Build ImageMagick with custom build OpenExr
Posted: 2014-04-28T09:22:05-07:00
by magick
Edit Makefile. You'll see
- CPPFLAGS = ... -I/usr/local/include/OpenEXR
You'll also see MAGICK_CPPFLAGS. That is what is displayed from the configure output. We'll correct the configure script output to reflect CPPFLAGS rather than MAGICK_CPPFLAGS.
Re: Build ImageMagick with custom build OpenExr
Posted: 2014-04-28T09:42:55-07:00
by efleurant
magick wrote:Edit Makefile. You'll see
- CPPFLAGS = ... -I/usr/local/include/OpenEXR
You'll also see MAGICK_CPPFLAGS. That is what is displayed from the configure output. We'll correct the configure script output to reflect CPPFLAGS rather than MAGICK_CPPFLAGS.
Ok, I see it in the Makefile... but why is it not detecting OpenEXR then? I have also tried to put LDFLAGS to my openexr lib dir with no result. It just won't see my openexr custom build.
I alos tried to export OPENEXR_LIBS and OPENEXR_CFLAGS, and still nothing
Any suggestion?
Re: Build ImageMagick with custom build OpenExr
Posted: 2014-04-28T10:41:46-07:00
by efleurant
Also, does ImageMagick support OpenEXR 2.x+? Because I have compiled version 2.0.1 and I'm wondering if thiws is why I am having issue
Re: Build ImageMagick with custom build OpenExr
Posted: 2014-04-28T17:50:40-07:00
by magick
Did you set PKG_CONFIG_PATH to /usr/local/lib/pkgconfig? When we do, ImageMagick compiles without complaint with OpenEXR 2.1.0.
Re: Build ImageMagick with custom build OpenExr
Posted: 2016-09-28T12:27:04-07:00
by efleurant
Wow, I know this is old, but I am giving this another shot with version 7.0.3 of imagemagick and I'm still having trouble to link my own build of OpenEXR.
Again, I tried settings LDFLAGS and CPPFLAGS to the dir where OpenEXR is install but this doesn't seem sufficient for configure to find what it needs. The configure log shows the added LD and CPP flags, but the following line pretty much proves that it is not working:
OpenEXR --with-openexr=yes no
What am I missing here?
*EDIT: Corrected the ImageMagick version number.
Re: Build ImageMagick with custom build OpenExr
Posted: 2016-09-28T15:29:03-07:00
by fmw42
FYI, there is no such version of Imagemagick as 1.7. What do you get from
convert -version
That will tell you the proper version number.
Sorry, I do not know much about configuring Linux.
Re: Build ImageMagick with custom build OpenExr
Posted: 2016-09-29T06:22:42-07:00
by efleurant
I stand corrected, I meant version 7.0.3, sorry.
Re: Build ImageMagick with custom build OpenExr
Posted: 2016-10-18T08:45:15-07:00
by efleurant
So is there any chance I can compile imagemagick with my own static build of OpenEXR? Setting the compile flags doesn't seem to have any effect when compiling...