Page 1 of 1
libjpeg.la not found
Posted: 2009-08-26T04:59:20-07:00
by stefano@BL
Hi to all
during the compilation of ImageMagick-6.5.3-8 I have this error:
Code: Select all
make all-am
make[1]: Entering directory `/root/ImageMagick-6.5.3-8'
/bin/sh ./libtool --silent --tag=CC --mode=link gcc -std=gnu99 -fopenmp -g -O2 -Wall -W -pthread -no-undefined -export-symbols-regex ".*" -module -avoid-version -o coders/jp2.la -rpath /usr/local/lib/ImageMagick-6.5.3/modules-Q16/coders coders/coders_jp2_la-jp2.lo magick/libMagickCore.la -ljasper -ljpeg -lm
grep: /usr/lib/libjpeg.la: No such file or directory
/bin/sed: can't read /usr/lib/libjpeg.la: No such file or directory
libtool: link: `/usr/lib/libjpeg.la' is not a valid libtool archive
make[1]: *** [coders/jp2.la] Error 1
make[1]: Leaving directory `/root/ImageMagick-6.5.3-8'
make: *** [all] Error 2
I have already tried to install libjpeg-devel but I have still the error.
What can be the problem?
Thank you
bye
stefano
Re: libjpeg.la not found
Posted: 2009-08-26T05:51:35-07:00
by magick
Try Google with this query '`/usr/lib/libjpeg.la' is not a valid libtool archive'. You'll see a number of solutions to this problem.
Re: libjpeg.la not found
Posted: 2009-08-26T07:05:37-07:00
by stefano@BL
I've already done it, but I doesn't find the solution.
I find some suggestions to install libjpeg-devel and I did it, but I have still the error
Re: libjpeg.la not found
Posted: 2011-12-04T09:16:31-07:00
by jbuehl
Has anyone identified a solution to this? I am having the same problem compiling ImageMagick under Angstrom linux on a beaglebone (ARM processor).
Code: Select all
root@beaglebone:~/ImageMagick-6.7.3-10# make
make all-am
make[1]: Entering directory `/home/root/ImageMagick-6.7.3-10'
CC wand/wand_libMagickWand_la-wand.lo
CCLD wand/libMagickWand.la
/bin/sed: can't read =/usr/lib/libjpeg.la: No such file or directory
libtool: link: `=/usr/lib/libjpeg.la' is not a valid libtool archive
make[1]: *** [wand/libMagickWand.la] Error 1
make[1]: Leaving directory `/home/root/ImageMagick-6.7.3-10'
make: *** [all] Error 2
root@beaglebone:~/ImageMagick-6.7.3-10# ls -l /usr/lib/libjpeg.la
-rwxr-xr-x 1 root root 910 Nov 4 22:42 /usr/lib/libjpeg.la
root@beaglebone:~/ImageMagick-6.7.3-10#
/usr/lib/libjpeg.la is clearly there so the first error 'No such file or directory' is bogus. It's not a permissions problem and the file is a text file that is not corrupt. I have tried re-installing libjpeg-devel which seems to have been the solution for a number of people, but it just replaces libjpeg.la with the same file.
There are no RPMs available for this linux distribution as far as I know, so that's not an option for me.
Re: libjpeg.la not found
Posted: 2011-12-04T09:36:41-07:00
by magick
Your libjpeg.la may be older and not compatible with the latest incarnation of the libtool script. The libtool script itself issues this exception. Add some debugging statements to libtool to identify why its complaining and fix. You could also grab a modern *.la script from the ImageMagick hierarchy to help identify why your libjpeg.la does not conform to the more recent standard.
Re: libjpeg.la not found
Posted: 2011-12-04T17:32:35-07:00
by jbuehl
I got it to work.
The problem seems to be related to libtool and not ImageMagick. There a lot of posts by people having the same problem with different packages. It seems to be the way the dependency_libs parameter is specified. The Gentoo linux distribution even provides a script to fix this
http://dev.gentoo.org/~zmedico/portage/ ... pysrc.html. The comments in this script explain what the problem is and how it fixes it. I confirmed this works by editing some of the .la files, but there are too many to do by hand and the Gentoo script won't run on ny distribution.
When you refer to the "ImageMagick hierarchy" I assume you are talking about the source tree of the distribution. The .la files I found there, such as wand/libMagickWand.la seem to have the same problem with the way they specify the dependency_libs parameter. This is confusing, since I'm using the latest version of libtool, 2.4.2. It's almost as though I need to use an
older version of libtool.
I found quite a few posts that say that .la files can be problematic and that they aren't required, such as this one
http://wiki.mandriva.com/en/Libtool_archives. They don't exist on my Fedora system and libtool isn't even installed there, but ImageMagick can be built with no problems. So I deleted all the /usr/lib/*.la fileson my Angstrom system then rebuilt ImageMagick from scratch and it did not have the error.