Subject: | Image::Magick::Thumbnail won't install without --with-modules LDFLAGS |
When I compile Alien::ImageMagick normally on a Ubuntu 14.04 box I get it installed, but when I later try to install Image::Magick::Thumbnail it says that the DrawPathStart symbol is undefined in libMagickCore-7.Q16HDRI.so.1. Digging around on the ImageMagick forums lead me to this post: http://www.imagemagick.org/discourse-server/viewtopic.php?t=28634#p127217
It says: "I did a little digging, the problem seems to be that the coders are being linked into libMagickCore. When libMagickCore-6.Q16.so is linked, the coders are included, and wmf.c uses functions like DrawPathFinish(), which are part of Wand, not Core. Therefore MagickCore programs will not link with default configure settings, you must use --with-modules. Should --with-modules be made the default if shared libraries are enabled? It doesn't seem right that MagickCore linking should fail with the default settings."
I changed the LDFLAGS line inside alien_build_commands section in Build.PL to make things work:
'LDFLAGS='.$LDFLAGS.' %pconfigure --prefix=%s --exec-prefix='.$siteprefix.' --with-perl='.$perlbin.' '.$enable_shared.' '.$use_threads.' --with-modules',
(notice the addition of ' --with-modules' at the end)
Once that was in compilation of Image::Magick::Thumbnail worked without issues.
Subject: | build.log |
Message body not shown because it is not plain text.