Page 1 of 1

Cannot build from source with LCMS

Posted: 2015-03-23T07:19:11-07:00
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

Re: Cannot build from source with LCMS

Posted: 2015-04-10T02:11:28-07:00
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?

Re: Cannot build from source with LCMS

Posted: 2015-04-10T08:35:40-07:00
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.