compilation error on ubuntu 14.04

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
bwana
Posts: 18
Joined: 2013-05-02T15:26:05-07:00
Authentication code: 6789

compilation error on ubuntu 14.04

Post by bwana »

I followed these instructions to build ImageMagick

sudo apt-get install build-essential checkinstall && apt-get build-dep imagemagick -y
wget http://www.imagemagick.org/download/Ima ... 1-2.tar.gz
tar xzvf ImageMagick-6.9.1-2.tar.gz
cd ImageMagick-6.9.1-2/
./configure --prefix=/opt/imagemagick-6.9.1-2 && make


and get these errors at the end

CCLD magick/libMagickCore-6.Q16.la
/bin/grep: /opt/anaconda1anaconda2anaconda3/lib/libfreetype.la: No such file or directory
/bin/sed: can't read /opt/anaconda1anaconda2anaconda3/lib/libfreetype.la: No such file or directory
libtool: link: `/opt/anaconda1anaconda2anaconda3/lib/libfreetype.la' is not a valid libtool archive
make[1]: *** [magick/libMagickCore-6.Q16.la] Error 1
make[1]: Leaving directory `/home/stefan/ImageMagick-6.9.1-2'
make: *** [all] Error 2
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: compilation error on ubuntu 14.04

Post by glennrp »

It looks as though you need to install freetype, then run "configure" again.
Alternatively, add "--with-freetype=no" to your configure line (but then you'll lack freetype!)
bwana
Posts: 18
Joined: 2013-05-02T15:26:05-07:00
Authentication code: 6789

Re: compilation error on ubuntu 14.04

Post by bwana »

ok so i did this

sudo apt-get install freetype*
and it seemed to install stuff.
I repeated the attempt to compile ImageMagick and got the same errors.

I thought perhaps the free type install went bad so I tried it again to make sure I did not overlook any errors.
This time 'sudo apt-get install freetype*' gave the error
'Unable to locate package freetype2'

I check in /usr/include
and there is a directory freetype2 and it is full of header files and all of them begin with the letter 'f'. There are NONE that look like 'libfreetype'.

Looking closely at the compilation errors for ImageMAgick I see it looking for libfreetype.la in a weird directory
/opt/anaconda1anaconda2anaconda3/lib/libfreetype
The error of course is:
make[1]: *** [magick/libMagickCore-6.Q16.la] Error 1

It seems that installing free type did not fix the error and rather the compiler is looking in a weird place for it.
bwana
Posts: 18
Joined: 2013-05-02T15:26:05-07:00
Authentication code: 6789

Re: compilation error on ubuntu 14.04

Post by bwana »

adding the "--with-freetype=no" to the configure line does not fix the problem. The same error occurs.
Post Reply