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

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
pyzo
Posts: 3
Joined: 2013-05-22T07:26:14-07:00
Authentication code: 6789

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

Post 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++?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
pyzo
Posts: 3
Joined: 2013-05-22T07:26:14-07:00
Authentication code: 6789

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

Post 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?
Post Reply