This queue is for tickets about the PerlMagick CPAN distribution.

Report information
The Basics
Id:
82701
Status:
open
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
blue [...] thisisnotmyrealemail.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: automatically determine where ImageMagick library is installed
Please use Devel::CheckLib to probe the user's systems to automatically determine where ImageMagick is installed. There are many distributions on CPAN that use it. Here's a couple of distributions that use it to probe for library locations: http://cpansearch.perl.org/src/SHLOMIF/XML-LibXML-2.0014/Makefile.PL http://cpansearch.perl.org/src/TONYC/Imager-0.94/lib/Imager/Probe.pm
From: justincase@yopmail.com
On Mon Jan 14 16:54:16 2013, blue wrote:
Show quoted text
> Please use Devel::CheckLib to probe the user's systems to automatically > determine where ImageMagick is installed.
yes, this is sorely needed. right now you can't do "cpanm Image::Magick" because of this. when i try to install on a mac where imagemagick was installed with macports, it can't find magick/MagickCore.h, but it's located in a standard location:
Show quoted text
> locate magick/MagickCore.h
/opt/local/include/ImageMagick/magick/MagickCore.h and looking at the Makefile.PL it checks for the output of a program to determine the paths to use, and the output looks like this should be easy to find:
Show quoted text
> identify -list Configure
Path: /opt/local/lib/ImageMagick-6.8.0/config/configure.xml Name Value ------------------------------------------------------------------------------- CC /usr/bin/clang CFLAGS -D_THREAD_SAFE -D_THREAD_SAFE -pthread -pipe -O2 -arch x86_64 -Wall -D_THREAD_SAFE -pthread CODER_PATH /opt/local/lib/ImageMagick-6.8.0/modules-Q16/coders CONFIGURE ./configure '--prefix=/opt/local' '--enable-shared' '--enable-static' '--disable-ltdl-install' '--disable-silent-rules' '--with-frozenpaths' '--without-openexr' '--disable-hdri' '--with-dps' '--with-bzlib' '--with-fontconfig' '--with-gslib' '--with-jpeg' '--with-lcms' '--with-png' '--with-tiff' '--with-webp' '--with-zlib' '--with-modules' '--with-xml' '--without-perl' '--without-fpx' '--without-jbig' '--without-jp2' '--without-wmf' '--without-gvc' '--without-rsvg' '--without-lqr' '--without-pango' '--with-gs-font-dir=/opt/local/share/fonts/urw-fonts' '--without-x' '--with-quantum-depth=16' 'CC=/usr/bin/clang' 'CFLAGS=-pipe -O2 -arch x86_64' 'LDFLAGS=-L/opt/local/lib -arch x86_64' 'CPPFLAGS=-I/opt/local/include' 'CXX=/usr/bin/clang++' 'CXXFLAGS=-pipe -O2 -arch x86_64' CONFIGURE_PATH /opt/local/etc/ImageMagick/ COPYRIGHT Copyright (C) 1999-2012 ImageMagick Studio LLC CPPFLAGS -I/opt/local/include/ImageMagick CXX /usr/bin/clang++ CXXFLAGS -pipe -O2 -arch x86_64 -D_THREAD_SAFE -pthread DEFS -DHAVE_CONFIG_H DELEGATES bzlib fftw fontconfig freetype gs jpeg jng lcms2 lzma png tiff xml zlib DISTCHECK_CONFIG_FLAGS 'CC=/usr/bin/clang' 'CFLAGS=-pipe -O2 -arch x86_64' 'CPPFLAGS=-I/opt/local/include' 'CXX=/usr/bin/clang++' 'LDFLAGS=-L/opt/local/lib -arch x86_64' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fpx=no --with-fontpath= --with-gs-font-dir=/opt/local/share/fonts/urw-fonts --with-gvc=no --with-jp2=no --with-lqr=no --with-openexr=no --with-pango=no --with-rsvg=no --with-wmf=no --with-perl=no DOCUMENTATION_PATH /opt/local/share/doc/ImageMagick-6.8.0 EXEC-PREFIX /opt/local EXECUTABLE_PATH /opt/local/bin FEATURES OpenCL FILTER_PATH /opt/local/lib/ImageMagick-6.8.0/modules-Q16/filters HOST x86_64-apple-darwin11.4.2 INCLUDE_PATH /opt/local/include/ImageMagick LDFLAGS -L/opt/local/lib -L/opt/local/lib -arch x86_64 -L/opt/local/lib -L/opt/local/lib LIB_VERSION 0x680 LIB_VERSION_NUMBER 6,8,0,7 LIBRARY_PATH /opt/local/lib/ImageMagick-6.8.0 LIBS -lMagickCore -llcms2 -lfreetype -lfftw3 -L/opt/local/lib -lfontconfig -L/opt/local/lib -llzma -lbz2 -lz -lltdl -lm -Wl,-framework,OpenCL -lm -lpthread NAME ImageMagick PCFLAGS PREFIX /opt/local QuantumDepth 16 RELEASE_DATE 2013-02-15 SHARE_PATH /opt/local/share/ImageMagick-6.8.0 SVN_REVISION 10029 TARGET_CPU x86_64 TARGET_OS darwin11.4.2 TARGET_VENDOR apple VERSION 6.8.0 WEBSITE http://www.imagemagick.org Path: [built-in] Name Value ------------------------------------------------------------------------------- NAME ImageMagick


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.