Page 1 of 1

compilation error on ubuntu 14.04

Posted: 2015-05-11T17:25:30-07:00
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

Re: compilation error on ubuntu 14.04

Posted: 2015-05-11T19:33:45-07:00
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!)

Re: compilation error on ubuntu 14.04

Posted: 2015-05-13T08:27:16-07:00
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.

Re: compilation error on ubuntu 14.04

Posted: 2015-05-13T08:34:12-07:00
by bwana
adding the "--with-freetype=no" to the configure line does not fix the problem. The same error occurs.