Build ImageMagick with custom build OpenExr
Build ImageMagick with custom build OpenExr
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
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
Actually, I have noticed that the ./configure seems to ignore what I pass to CPPFLAGS
for example, if I do:
I get :
Clearly, my argument was not passed to the CPPFLAGS list
for example, if I do:
Code: Select all
./configure CPPFLAGS=-I/usr/local/include/OpenEXR
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]
...
Re: Build ImageMagick with custom build OpenExr
Edit Makefile. You'll see
- CPPFLAGS = ... -I/usr/local/include/OpenEXR
Re: Build ImageMagick with custom build OpenExr
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.magick wrote:Edit Makefile. You'll see
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.
- CPPFLAGS = ... -I/usr/local/include/OpenEXR
I alos tried to export OPENEXR_LIBS and OPENEXR_CFLAGS, and still nothing
Any suggestion?
Re: Build ImageMagick with custom build OpenExr
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
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
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.
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.
Last edited by efleurant on 2016-09-29T06:23:25-07:00, edited 1 time in total.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Build ImageMagick with custom build OpenExr
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.
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
I stand corrected, I meant version 7.0.3, sorry.
Re: Build ImageMagick with custom build OpenExr
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...