ragtag
15th March 2011, 02:48 PM
Hi,
I've been trying to rebuild ImageMagick with OpenEXR support. I've downloaded the SRPMs, have the build environment set up, and am able to rebuild the rpm just fine, but not with OpenEXR support. What I've been trying to do is add it to the .SPEC file.
I've added this to the .SPEC file (see attachment for complete SPEC file).
line18
BuildRequires: OpenEXR-devel, ilmbase-devel
line 46
Requires: OpenEXR-devel, ilmbase-devel
line 147 (modified)
%configure --enable-shared \
--enable-hdri \
--with-openexr \
--disable-static \
--with-modules \
--with-perl \
--with-x \
--with-threads \
--with-magick_plus_plus \
--with-gslib \
--with-wmf \
--with-lcms \
--with-rsvg \
--with-xml \
--with-perl-options="INSTALLDIRS=vendor %{?perl_prefix} CC='%__cc -L$PWD/magick/.libs' LDDLFLAGS='-shared -L$PWD/magick/.libs'" \
--without-dps \
--without-included-ltdl --with-ltdl-include=%{_includedir} \
--with-ltdl-lib=%{_libdir}
I noticed that there was also a ImageMagick.spec.in file in ~/rpmbuild/SOURCES/ImageMagick-6.6.4-1/ImageMagick-6.6.4-1.tar.xz that I don't know if is overriding my modified .spec file.
The output includes (see attachment for complete log):
checking for OPENEXR... yes
OpenEXR --with-openexr=yes yes
+ ./configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --disable-static --enable-hdri --with-openexr --with-modules --with-perl --with-x --with-threads --with-magick_plus_plus --with-gslib --with-wmf --with-lcms --with-rsvg --with-xml '--with-perl-options=INSTALLDIRS=vendor CC='\''gcc -L/home/fedora/rpmbuild/BUILD/ImageMagick-6.6.4-1/magick/.libs'\'' LDDLFLAGS='\''-shared -L/home/fedora/rpmbuild/BUILD/ImageMagick-6.6.4-1/magick/.libs'\''' --without-dps --without-included-ltdl --with-ltdl-include=/usr/include --with-ltdl-lib=/usr/lib64
Once built, if I do:
cd ~/rpmbuild/BUILD/ImageMagick-6.6.4-1/utilities/
./convert -list format | grep -i EXR
it returns nothing. Without the 'grep' it returns all the supported image formats, but exr is not included. Trying to convert an actual working EXR file, returns:
lt-convert: no decode delegate for this image format `bla.exr' @ error/constitute.c/ReadImage/532.
lt-convert: missing an image filename `bla.jpg' @ error/convert.c/ConvertImageCommand/2953.
I'm no expert on building stuff, so it might very well be something completely obvious I'm doing wrong. :doh:
Any ideas how to solve this?
I've been trying to rebuild ImageMagick with OpenEXR support. I've downloaded the SRPMs, have the build environment set up, and am able to rebuild the rpm just fine, but not with OpenEXR support. What I've been trying to do is add it to the .SPEC file.
I've added this to the .SPEC file (see attachment for complete SPEC file).
line18
BuildRequires: OpenEXR-devel, ilmbase-devel
line 46
Requires: OpenEXR-devel, ilmbase-devel
line 147 (modified)
%configure --enable-shared \
--enable-hdri \
--with-openexr \
--disable-static \
--with-modules \
--with-perl \
--with-x \
--with-threads \
--with-magick_plus_plus \
--with-gslib \
--with-wmf \
--with-lcms \
--with-rsvg \
--with-xml \
--with-perl-options="INSTALLDIRS=vendor %{?perl_prefix} CC='%__cc -L$PWD/magick/.libs' LDDLFLAGS='-shared -L$PWD/magick/.libs'" \
--without-dps \
--without-included-ltdl --with-ltdl-include=%{_includedir} \
--with-ltdl-lib=%{_libdir}
I noticed that there was also a ImageMagick.spec.in file in ~/rpmbuild/SOURCES/ImageMagick-6.6.4-1/ImageMagick-6.6.4-1.tar.xz that I don't know if is overriding my modified .spec file.
The output includes (see attachment for complete log):
checking for OPENEXR... yes
OpenEXR --with-openexr=yes yes
+ ./configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --disable-static --enable-hdri --with-openexr --with-modules --with-perl --with-x --with-threads --with-magick_plus_plus --with-gslib --with-wmf --with-lcms --with-rsvg --with-xml '--with-perl-options=INSTALLDIRS=vendor CC='\''gcc -L/home/fedora/rpmbuild/BUILD/ImageMagick-6.6.4-1/magick/.libs'\'' LDDLFLAGS='\''-shared -L/home/fedora/rpmbuild/BUILD/ImageMagick-6.6.4-1/magick/.libs'\''' --without-dps --without-included-ltdl --with-ltdl-include=/usr/include --with-ltdl-lib=/usr/lib64
Once built, if I do:
cd ~/rpmbuild/BUILD/ImageMagick-6.6.4-1/utilities/
./convert -list format | grep -i EXR
it returns nothing. Without the 'grep' it returns all the supported image formats, but exr is not included. Trying to convert an actual working EXR file, returns:
lt-convert: no decode delegate for this image format `bla.exr' @ error/constitute.c/ReadImage/532.
lt-convert: missing an image filename `bla.jpg' @ error/convert.c/ConvertImageCommand/2953.
I'm no expert on building stuff, so it might very well be something completely obvious I'm doing wrong. :doh:
Any ideas how to solve this?