ImageMagick appears broken.
Ryan Schmidt
ryandesign at macports.org
Mon Jun 3 08:36:38 PDT 2013
On Jun 3, 2013, at 09:50, David Barto wrote:
> I'm doing a fresh install to upgrade to Mt. Lion - format/install Mt. Lion/install macports as needed.
>
> On a co-workers Mac, he has ImageMagick @6.8.0-7_2+q16 (active) and it is installed properly.
>
> My install is for 'ImageMagick @6.8.5-5 graphics/ImageMagick' as reported by 'port list'
"port list" tells you what ports are available, not what ports are installed.
"port installed" tells you what ports are installed.
See https://trac.macports.org/wiki/FAQ#portlist
> My /opt/local/include doesn't have an ImageMagick directory, it has 'ImageMagick-6'.
That however does sound like you have the new version. Between 6.8.0-7 and 6.8.5 the ImageMagick developers made some rather major changes to where files are installed, what they're called, how they work, etc. This has caused some software that uses ImageMagick to break. Any such software needs to be fixed.
> So I hack in the link (ImageMagick -> ImageMagic-6)
That's not a good solution; you should remove that link again. Sounds like the program you're trying to compile assumes the include files are in the ImageMagick directory, which they aren't anymore. Software that's properly using pkg-config to locate where ImageMagick files are and what they're called should continue to work, so any software that's not working, and that's making assumptions about where ImageMagick files are, should be changed to use pkg-config.
> and when I attempt to compile
What are you trying to compile?
> I get:
>
> compile color_snap_converter.cpp -o color_snap_converter.sh
> In file included from /opt/local/include/ImageMagick/Magick++/Include.h:13:0,
> from /opt/local/include/ImageMagick/Magick++.h:9,
> from color_snap_converter.cpp:15:
> /opt/local/include/ImageMagick/magick/magick-config.h:29:3: error: #warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default" [-Werror=cpp]
> /opt/local/include/ImageMagick/magick/magick-config.h:30:3: error: #warning "this is an obsolete behavior please fix your makefile" [-Werror=cpp]
> /opt/local/include/ImageMagick/magick/magick-config.h:52:3: error: #warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default" [-Werror=cpp]
> /opt/local/include/ImageMagick/magick/magick-config.h:53:3: error: #warning "this is an obsolete behavior please fix yours makefile" [-Werror=cpp]
> cc1plus: all warnings being treated as errors
> ln: shared/color_snap_converter.o: No such file or directory
> gmake[5]: *** [color_snap_converter.sh] Error 1
>
> My /opt/local/include/ImageMagick-6 directory doesn't appear to have the same files as my workmates Mac.
>
> Is the 6.8.5 install broken?
No; it's just a newer version, which behaves differently from the older version.
> Can I get the 6.8.0-7 version?
Yes:
https://trac.macports.org/wiki/howto/InstallingOlderPort
But instead you should fix whatever program you're trying to compile so that it works with the current version.
More information about the macports-users
mailing list