Hi,

I just faced a problem during the installation of image-1.0.7.tar.gz
under octave-3.0.1


octave:2> pkg install image-1.0.7.tar.gz
/usr/bin/ld: cannot find -lMagick
collect2: ld returned 1 exit status
make: *** [__magick_read__.oct] Error 1
error: 'make' returned the following error: make: Entering directory
`/tmp/oct-7k4nfJ/image-1.0.7/src'
mkoctfile __cordfltn__.cc
mkoctfile __bilateral__.cc
mkoctfile __custom_gaussian_smoothing__.cc
mkoctfile bwlabel.cc
mkoctfile bwfill.cc
mkoctfile rotate_scale.cc
mkoctfile hough_line.cc
mkoctfile graycomatrix.cc
mkoctfile deriche.cc
mkoctfile __bwdist.cc
mkoctfile nonmax_supress.cc
mkoctfile jpgwrite.cc -ljpeg
mkoctfile jpgread.cc -ljpeg
mkoctfile pngread.cc -lpng
mkoctfile pngwrite.cc -lpng
mkoctfile __magick_read__.cc `Magick++-config --cppflags` -lMagick++ -lMagick
make: Leaving directory `/tmp/oct-7k4nfJ/image-1.0.7/src'
error: called from `pkg:configure_make' in file
/usr/share/octave/3.0.1/m/pkg/pkg.m near line 1245, column 2


I solved this issue by doing a dirty hack: cd /usr/lib && ln -s
libMagickCore.so libMagick.so
this solved the error because libMagick has been simply renamed by
libMagickCore by the imagemagick dev team.

A correct solution should be to use Magick-config during the makefile
generation process.

Indeed, the command Magick-config --libs returns:
-L/usr/lib -lMagickCore which is correct.

regards

-- 
Pierre Gronlier

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to