Page 1 of 1

Configure switch --without-magic-plus-plus ignored?

Posted: 2014-02-08T10:56:27-07:00
by pyzo
I'm trying to build a bare bones ImageMagick rpm.

I've tried building with "--without-magick-plus-plus" and "--with-magick-plus-plus=no".

Either way it looks like Magick++ is still getting built:

Code: Select all

RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/bin/Magick++-config
   /usr/include/ImageMagick-6/Magick++.h
   /usr/include/ImageMagick-6/Magick++/Blob.h
   /usr/include/ImageMagick-6/Magick++/CoderInfo.h
   /usr/include/ImageMagick-6/Magick++/Color.h
   /usr/include/ImageMagick-6/Magick++/Drawable.h
   /usr/include/ImageMagick-6/Magick++/Exception.h
   /usr/include/ImageMagick-6/Magick++/Functions.h
   /usr/include/ImageMagick-6/Magick++/Geometry.h
   /usr/include/ImageMagick-6/Magick++/Image.h
   /usr/include/ImageMagick-6/Magick++/Include.h
   /usr/include/ImageMagick-6/Magick++/Montage.h
   /usr/include/ImageMagick-6/Magick++/Pixels.h
   /usr/include/ImageMagick-6/Magick++/ResourceLimits.h
   /usr/include/ImageMagick-6/Magick++/STL.h
   /usr/include/ImageMagick-6/Magick++/TypeMetric.h
   /usr/lib64/libMagick++-6.Q16.a
   /usr/lib64/libMagick++-6.Q16.so
   /usr/lib64/libMagick++-6.Q16.so.3
   /usr/lib64/libMagick++-6.Q16.so.3.0.0
   /usr/lib64/libMagickCore-6.Q16.a
   /usr/lib64/libMagickWand-6.Q16.a
   /usr/lib64/pkgconfig/Magick++-6.Q16.pc
   /usr/lib64/pkgconfig/Magick++.pc
   /usr/share/man/man1/Magick++-config.1.gz
Is there any way to prevent ImageMagick from building Magick++?

Re: Configure switch --without-magic-plus-plus ignored?

Posted: 2014-02-08T12:00:39-07:00
by magick
We're using ImageMagick 6.8.8-4. This configure script command-line:
  • ./configure --without-magick-plus-plus --prefix=/usr
returns:
  • Magick++ --with-magick-plus-plus=no no
The make completes without building Magick++.

If you're using the ImageMagick.spec.in file, it requires Magick++. If you don't want it, you'll need to edit ImageMagick.spec.in and remove the c++-devel package and references to the Magick++ documentation. After the edit, rerun the configure script to generate the ImageMagick.spec.

Re: Configure switch --without-magic-plus-plus ignored?

Posted: 2014-02-08T15:11:00-07:00
by pyzo
I'm also trying with the 6.8.8-4.

When I ran .configure to generate the spec file, ./configure produced this output:

Magick++ --with-magick-plus-plus=no no

Nevertheless, the Magick++ packages and code were still in the spec file.

I manually removed all references to Magick++ from the spec file and rpmbuilt it, but the Magick++ stuff still got built.

I've solved my need by removing all the Magick++ stuff before the %files stage so rpmbuild wouldn't complain about unpackaged files.

Perhaps this is a bug?