Cannot build from source with LCMS

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
gabw
Posts: 28
Joined: 2014-07-20T09:20:15-07:00
Authentication code: 6789

Cannot build from source with LCMS

Post by gabw »

Hey there.

I cannot build IM from source with some delegates.

Because I'm on a managed host I have to set tmp path before:

Code: Select all

export TMPDIR=~/.tmp/
Lets go: so here is what I've done:

Code: Select all

$ wget http://www.imagemagick.org/download/ImageMagick.tar.gz
$ tar xvzf ImageMagick.tar.gz
$ cd ImageMagick-6.9.1-0/
$ ./configure --enable-shared --with-jpeg=yes --with-png=yes --with-tiff=yes --with-lcms2=yes

So the configuration finished and did not "find" liblcms... Full end output of configure:
https://gist.github.com/CodeBrauer/668adb7076697b29c617

On 'make' i got an error...
https://gist.github.com/CodeBrauer/87f25ad2439f73929eb8

Without "--enable-shared" or with "--with-lcms=yes" for configure did not change anything. Still same errors on make

So I checked I have liblcms installed:

Code: Select all

$ find / -name "liblcms*" 2>/dev/null | grep 'so'
/usr/lib/x86_64-linux-gnu/liblcms2.so.2
/usr/lib/x86_64-linux-gnu/liblcms.so.1
/usr/lib/x86_64-linux-gnu/liblcms2.so.2.0.2
/usr/lib/x86_64-linux-gnu/liblcms.so.1.0.19
Now I really don't know what could be the problem...

I'm using Debian wheezy.

Regards,
Gabriel
gabw
Posts: 28
Joined: 2014-07-20T09:20:15-07:00
Authentication code: 6789

Re: Cannot build from source with LCMS

Post by gabw »

Nobody has an idea?

I checked LCMS and LIBTIFF is installed, but no configure command could find them...

Code: Select all

$ find / -name "*lcms*" 2>/dev/null | grep 'so'
/usr/lib/x86_64-linux-gnu/liblcms2.so.2
/usr/lib/x86_64-linux-gnu/liblcms.so.1
/usr/lib/x86_64-linux-gnu/liblcms2.so.2.0.2
/usr/lib/x86_64-linux-gnu/liblcms.so.1.0.19

$ find / -name "*tiff*" 2>/dev/null | grep 'so'
/usr/lib/x86_64-linux-gnu/ImageMagick-6.7.7/modules-Q16/coders/tiff.so
/usr/lib/x86_64-linux-gnu/libtiff.so.4.3.6
/usr/lib/x86_64-linux-gnu/libtiff.so.5.1.0
/usr/lib/x86_64-linux-gnu/libtiff.so.5
/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-tiff.so
/usr/lib/x86_64-linux-gnu/libtiff.so.4
I tried it with "--prefix" and enable-static, enable-shared ... nothing changed the result.. Any ideas?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Cannot build from source with LCMS

Post by fmw42 »

./configure --enable-shared --with-jpeg=yes --with-png=yes --with-tiff=yes --with-lcms2=yes

You should not in general put =yes/no in the ./configure. It will be just -with-lcms2, etc or it happens automatically without adding --with.... Perhaps you do not have lcms2 delegate installed properly or it needed another subordinate delegate or you put in in a location that IM cannot find. You must install all delegates before you configure/compile IM.

see
http://www.imagemagick.org/script/advan ... #configure.
Post Reply