LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ImageMagick install with EXR support (https://www.linuxquestions.org/questions/linux-software-2/imagemagick-install-with-exr-support-4175411420/)

igor012 06-14-2012 07:46 AM

ImageMagick install with EXR support
 
Hello,
I am trying to install ImageMagick with EXR support but every time the configuration step ends I get:
Code:

Delegate Configuration:
BZLIB            --with-bzlib=yes                no
Autotrace        --with-autotrace=no                no
Dejavu fonts      --with-dejavu-font-dir=default        none
DJVU              --with-djvu=yes                no
DPS              --with-dps=yes                no
FFTW              --with-fftw=yes                no
FlashPIX          --with-fpx=yes                no
FontConfig        --with-fontconfig=yes                no
FreeType          --with-freetype=yes                yes
GhostPCL          None                                pcl6 (unknown)
GhostXPS          None                                gxps (unknown)
Ghostscript      None                                gs (9.00)
Ghostscript fonts --with-gs-font-dir=default        /usr/share/ghostscript/fonts/
Ghostscript lib  --with-gslib=no                no
Graphviz          --with-gvc=yes                no
JBIG              --with-jbig=yes                no
JPEG v1          --with-jpeg=yes                no
JPEG-2000        --with-jp2=yes                no
LCMS v1          --with-lcms=yes                no
LCMS v2          --with-lcms2=yes                no
LQR              --with-lqr=yes                no
LZMA              --with-lzma=yes                no
Magick++          --with-magick-plus-plus=yes        yes
OpenEXR          --with-openexr=yes                no
PERL              --with-perl=no                no
PANGO            --with-pango=yes                no
PNG              --with-png=yes                yes
RSVG              --with-rsvg=yes                no
TIFF              --with-tiff=yes                no
WEBP              --with-webp=yes                no
Windows fonts    --with-windows-font-dir=        none
WMF              --with-wmf=no                no
X11              --with-x=                        yes
XML              --with-xml=yes                no
ZLIB              --with-zlib=yes                yes

I have used this command
./configure --with-openexr=yes --with-modules=yes --with-bzlib=yes --with-fftw=yes --with-tiff=yes

Prior to do this I had installed
zlib and IlmBase

Does anyone know about it ?

EDIT:
I can display exr with openexr-viewer (exrdisplay)

Thanks
Fab

knudfl 06-14-2012 10:05 AM

Quote:

I can display exr with openexr-viewer (exrdisplay)
http://www.openexr.com/ : The text says ...
"exrdisplay, a sample application for viewing OpenEXR images
on a display at various exposure settings.


Quote:

I am trying to install ImageMagick ..
Isn't a package available for your OS ? Openexr is usually included.

About your configuration result :
Some of the other options must be included. ( You have too many 'no' ). Example :
Code:

                  Option                        Value
-------------------------------------------------------------------------------
Shared libraries  --enable-shared=yes          yes
Static libraries  --enable-static=yes          yes
Module support    --with-modules=no            no
GNU ld            --with-gnu-ld=yes            yes
Quantum depth    --with-quantum-depth=16      16
High Dynamic Range Imagery
                  --enable-hdri=no              no

Delegate Configuration:
BZLIB            --with-bzlib=yes              yes
Autotrace        --with-autotrace=no          no
Dejavu fonts      --with-dejavu-font-dir=default        none
DJVU              --with-djvu=yes              no
DPS              --with-dps=yes                no
FFTW              --with-fftw=yes              yes
FlashPIX          --with-fpx=yes                no
FontConfig        --with-fontconfig=yes        yes
FreeType          --with-freetype=yes          yes
GhostPCL          None                          pcl6 (unknown)
GhostXPS          None                          gxps (unknown)
Ghostscript      None                          gs (9.02)
Ghostscript fonts --with-gs-font-dir=default    /usr/share/fonts/default/Type1/
Ghostscript lib  --with-gslib=no              no
Graphviz          --with-gvc=yes                yes
JBIG              --with-jbig=yes              yes
JPEG v1          --with-jpeg=yes              yes
JPEG-2000        --with-jp2=yes                yes
LCMS v1          --with-lcms=no                no
LCMS v2          --with-lcms2=yes              yes
LQR              --with-lqr=yes                no
LZMA              --with-lzma=yes              yes
Magick++          --with-magick-plus-plus=yes  yes
OpenEXR          --with-openexr=yes            yes
PERL              --with-perl=no                no
PNG              --with-png=yes                yes
RSVG              --with-rsvg=yes              yes
TIFF              --with-tiff=yes              yes
WEBP              --with-webp=yes              no
Windows fonts    --with-windows-font-dir=      none
WMF              --with-wmf=yes                no
X11              --with-x=                    yes
XML              --with-xml=yes                yes
ZLIB              --with-zlib=yes              yes


igor012 06-14-2012 10:30 AM

I had openexr installed throughout my repo. But it doesn't change anything.

You're suggesting to enable some other options.

I'll try and let you know.

Thanks

igor012 06-14-2012 10:54 AM

I think I need the delegate lib for openexr

knudfl 06-14-2012 10:56 AM

Suse 12.1 ?

Openexr won't do. Development packages are required at compile time.

# zypper in \
libopenexr-devel libxml2-devel libpng12-devel libjpeg8-devel pango-devel \
libjasper-devel fftw3-devel libtiff-devel librsvg-devel libbz2-devel xz-devel
... etc.

.

igor012 06-15-2012 04:39 AM

Hello,
It's still doesn't work.

Let's sum-up what was done
install of zlib
install of ilmbase
install of openexr
install of various devel packages
install of IM using
Code:

./configure --with-openexr=yes --with-xml=yes --with-djvu=yes --with-dps=yes --with-fftw=yes --with-fpx=yes --enable-hdri --with-bzlib=yes --with-autotrace=no --with-djvu=yes --with-dps=yes --with-fftw=yes --with-fpx=yes --with-fontconfig=yes --with-gslib=no --with-gvc=yes --with-jbig=yes --with-jpeg=yes --with-jp2=yes --with-lcms=yes --with-lcms2=yes --with-lqr=yes --with-lzma=yes --with-modules=yes

knudfl 06-15-2012 04:42 AM

Which Linux OS are you using ?

Name and version, please.
And architecture, please : $ uname -m

igor012 06-15-2012 05:03 AM

I am using
OpenSuse 12.1
x86_64

knudfl 06-15-2012 08:25 AM

Suse 12.1 , x86_64 , ImageMagick example ..

Source code + patches : ImageMagick-6.7.2.7-5.1.3.src.rpm
http://ftp5.gwdg.de/pub/opensuse/sou...-5.1.3.src.rpm

1) su 2) zypper in \
gcc-c++ libtool fdupes pkgconfig dcraw freetype2-devel \
ghostscript-fonts-other ghostscript-fonts-std ghostscript-library \
liblcms-devel libtiff-devel libwmf-devel libxml2-devel libexif-devel \
libjasper-devel libwebp-devel librsvg-devel libopenexr-devel \
libpng12-devel libjpeg8-devel pango-devel libwebp-devel \
fftw3-devel libbz2-devel xz-devel libdjvulibre-devel

3) $ cd ImageMagick-6.7.2-7/
patch -p1 < ImageMagick-6.6.9.1-inc-struct.diff
patch -p0 < ImageMagick-6.6.8.9-doc.patch
patch -p0 < ImageMagick-6.6.8.9-examples.patch
patch -p0 < ImageMagick-6.7.2.7-scene.patch
Code:


./configure --enable-shared --without-frozenpaths --with-magick_plus_plus --with-modules --with-threads --without-perl --disable-static --with-djvu=yes

                  Option                        Value
-------------------------------------------------------------------------------
Shared libraries  --enable-shared=yes          yes
Static libraries  --enable-static=no            no
Module support    --with-modules=no            no
GNU ld            --with-gnu-ld=yes            yes
Quantum depth    --with-quantum-depth=16      16
High Dynamic Range Imagery
                  --enable-hdri=no              no

Delegate Configuration:
BZLIB            --with-bzlib=yes              yes
Autotrace        --with-autotrace=no          no
Dejavu fonts      --with-dejavu-font-dir=default        none
DJVU              --with-djvu=yes              no
DPS              --with-dps=yes                no
FFTW              --with-fftw=yes              yes
FlashPIX          --with-fpx=yes                no
FontConfig        --with-fontconfig=yes        yes
FreeType          --with-freetype=yes          yes
GhostPCL          None                          pcl6 (unknown)
GhostXPS          None                          gxps (unknown)
Ghostscript      None                          gs (9.00)
Ghostscript fonts --with-gs-font-dir=default    /usr/share/ghostscript/fonts/
Ghostscript lib  --with-gslib=no              no
Graphviz          --with-gvc=yes                no
JBIG              --with-jbig=yes              no
JPEG v1          --with-jpeg=yes              yes
JPEG-2000        --with-jp2=yes                yes
LCMS v1          --with-lcms=yes              yes
LCMS v2          --with-lcms2=yes              no
LQR              --with-lqr=yes                no
LZMA              --with-lzma=yes              yes
Magick++          --with-magick-plus-plus=yes  yes
OpenEXR          --with-openexr=yes            yes       
PERL              --with-perl=no                no
PNG              --with-png=yes                yes
RSVG              --with-rsvg=yes              yes
TIFF              --with-tiff=yes              yes
WEBP              --with-webp=yes              yes
Windows fonts    --with-windows-font-dir=      none
WMF              --with-wmf=yes                yes
X11              --with-x=                    yes
XML              --with-xml=yes                yes
ZLIB              --with-zlib=yes              yes

$ make : OK.

.

John VV 06-15-2012 08:45 AM

igor012
install the -devel rpms
they ARE REQUIRED

also ( and this might have been fixed )
there is a known bug ( or was -- if fixed) in the configure and makefile files

"make clean" dose NOT remove some needed files
find then and remove then BY HANE for EVERY failed build
or

delete the IM folder and unzip the source again and for EVERY build attempt
now it has been a while since i needed image-magic ( i moved over to G'Mic) so this might have been fixed with the patches
patch -p1 < ImageMagick-6.6.9.1-inc-struct.diff
patch -p0 < ImageMagick-6.6.8.9-doc.patch
patch -p0 < ImageMagick-6.6.8.9-examples.patch
patch -p0 < ImageMagick-6.7.2.7-scene.patch

igor012 06-15-2012 09:59 AM

Still no

Code:

Host system type: x86_64-unknown-linux-gnu
Build system type: x86_64-unknown-linux-gnu

                  Option                        Value
-------------------------------------------------------------------------------
Shared libraries  --enable-shared=yes                yes
Static libraries  --enable-static=no                no
Module support    --with-modules=yes                yes
GNU ld            --with-gnu-ld=yes                yes
Quantum depth    --with-quantum-depth=16        16
High Dynamic Range Imagery
                  --enable-hdri=no                no

Delegate Configuration:
BZLIB            --with-bzlib=yes                yes
Autotrace        --with-autotrace=no                no
Dejavu fonts      --with-dejavu-font-dir=default        none
DJVU              --with-djvu=yes                no
DPS              --with-dps=yes                no
FFTW              --with-fftw=yes                yes
FlashPIX          --with-fpx=yes                no
FontConfig        --with-fontconfig=yes                no
FreeType          --with-freetype=yes                yes
GhostPCL          None                                pcl6 (unknown)
GhostXPS          None                                gxps (unknown)
Ghostscript      None                                gs (9.00)
Ghostscript fonts --with-gs-font-dir=default        /usr/share/ghostscript/fonts/
Ghostscript lib  --with-gslib=no                no
Graphviz          --with-gvc=yes                no
JBIG              --with-jbig=yes                no
JPEG v1          --with-jpeg=yes                yes
JPEG-2000        --with-jp2=yes                yes
LCMS v1          --with-lcms=yes                yes
LCMS v2          --with-lcms2=yes                no
LQR              --with-lqr=yes                no
LZMA              --with-lzma=yes                yes
Magick++          --with-magick-plus-plus=yes        yes
OpenEXR          --with-openexr=yes                no
PERL              --with-perl=no                no
PNG              --with-png=yes                yes
RSVG              --with-rsvg=yes                no
TIFF              --with-tiff=yes                yes
WEBP              --with-webp=yes                yes
Windows fonts    --with-windows-font-dir=        none
WMF              --with-wmf=yes                yes
X11              --with-x=                        yes
XML              --with-xml=yes                yes
ZLIB              --with-zlib=yes                yes

X11 Configuration:
      X_CFLAGS        =
      X_PRE_LIBS      = -lSM -lICE
      X_LIBS          =
      X_EXTRA_LIBS    =

Options used to compile and link:
  PREFIX          = /usr/local
  EXEC-PREFIX    = /usr/local
  VERSION        = 6.7.2
  CC              = gcc -std=gnu99 -std=gnu99
  CFLAGS          = -fopenmp -g -O2 -Wall -pthread
  CPPFLAGS        = -I/usr/local/include/ImageMagick
  PCFLAGS        = -fopenmp
  DEFS            = -DHAVE_CONFIG_H
  LDFLAGS        =
  MAGICK_LDFLAGS  = -L/usr/local/lib64
  LIBS            = -lMagickCore -llcms -ltiff -lfreetype -ljpeg -lfftw3 -lXext -lSM -lICE -lX11 -lXt -llzma -lbz2 -lz -lm -lgomp -lpthread -lltdl
  CXX            = g++
  CXXFLAGS        = -g -O2 -pthread
  FEATURES        = OpenM


knudfl 06-15-2012 09:59 AM

# 10

That's right, John. No problems with 'make clean' any more.

knudfl 06-15-2012 10:10 AM

# 12.

Don't know how you can avoid fontconfig.

Please do : # zypper in fontconfig-devel librsvg-devel libopenexr-devel


Are you using ImageMagick version 6.7.2.7 ?
And the four patches + the configure line shown in post # 9 ?

.

igor012 06-15-2012 10:23 AM

Yes, I did exactly as you said.
I am using ImageMagick-6.7.2 and i have applied the 4 patches.

knudfl 06-15-2012 12:18 PM

OK, may be you will find out what it is that you are missing or have installed wrong,
if you install the "ImageMagick with EXR" package :
1) # zypper rm ImageMagick
2) # rpm -Uvh ImageMagick-6.7.2.7-exr.5.1.3.x86_64.rpm

Download link https://docs.google.com/open?id=0B7S...E9oVks2UWloemM

Other packages created at the package build : ( rpmbuild -bb ImageMagick.spec )
ImageMagick-devel-6.7.2.7-exr.5.1.3.x86_64.rpm
ImageMagick-extra-6.7.2.7-exr.5.1.3.x86_64.rpm
libMagick++5-6.7.2.7-exr.5.1.3.x86_64.rpm
libMagickCore5-6.7.2.7-exr.5.1.3.x86_64.rpm
libMagick++-devel-6.7.2.7-exr.5.1.3.x86_64.rpm
libMagickWand5-6.7.2.7-exr.5.1.3.x86_64.rpm
perl-PerlMagick-6.7.2.7-exr.5.1.3.x86_64.rpm

.


All times are GMT -5. The time now is 07:53 PM.