Compiling IM with lqr enabled

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Tangui

Compiling IM with lqr enabled

Post by Tangui »

Hi,

I'm trying to compile ImageMagick with seam carving (lqr) enabled.
I've been successful in doing this on my computer but on the production server I work on, it doesn't work.
The problem is that although liblqr-1-0-dev and liblqr-1-0 are installed, when running

Code: Select all

./configure --with-lqr
the output tells me lqr will not be compiled :

Code: Select all

                  Option                        Value
-------------------------------------------------------------------------------
Shared libraries  --enable-shared=yes		yes
Static libraries  --enable-static=yes		yes
Module support    --with-modules=no		no
GNU ld            --with-gnu-ld=yes		yes
Quantum depth     --with-quantum-depth=16	16
High Dynamic Range Imagery
                  --enable-hdri=no		no

Delegate Configuration:
BZLIB             --with-bzlib=yes		yes
Autotrace         --with-autotrace=no		no
Dejavu fonts      --with-dejavu-font-dir=default	none
DJVU              --with-djvu=yes		no
DPS               --with-dps=yes		no
FFTW              --with-fftw=yes		no
FlashPIX          --with-fpx=yes		no
FontConfig        --with-fontconfig=yes		no
FreeType          --with-freetype=yes		no
GhostPCL          None				pcl6 (unknown)
GhostXPS          None				gxps (unknown)
Ghostscript       None				gs (8.62)
Ghostscript fonts --with-gs-font-dir=default	/usr/share/fonts/type1/gsfonts/
Ghostscript lib   --with-gslib=no		no
Graphviz          --with-gvc=yes		no
JBIG              --with-jbig=yes		no
JPEG v1           --with-jpeg=yes		yes
JPEG-2000         --with-jp2=yes		yes
LCMS v1           --with-lcms=yes		no
LCMS v2           --with-lcms2=yes		no
LQR               --with-lqr=yes		no
LZMA              --with-lzma=yes		no
Magick++          --with-magick-plus-plus=yes	yes
OpenEXR           --with-openexr=yes		no
PERL              --with-perl=no		no
PNG               --with-png=yes		yes
RSVG              --with-rsvg=yes		no
TIFF              --with-tiff=yes		no
Windows fonts     --with-windows-font-dir=	none
WMF               --with-wmf=yes		no
X11               --with-x=			yes
XML               --with-xml=yes		yes
ZLIB              --with-zlib=yes		yes
Second problem : the packages are broken since the server administrator has added the unstable repository (Debian) and I'm not able to install some packages like libjpeg62-dev, etc.

Code: Select all

apibox:~/ImageMagick-6.6.6-7# apt-get install libjpeg62-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  libjpeg62-dev: Depends: libjpeg62 (= 6b-14) but 6b1-1 is to be installed
E: Broken packages
Any help is welcome :)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Compiling IM with lqr enabled

Post by fmw42 »

Did you install the liblqr delegate library before compiling IM?
Tangui

Re: Compiling IM with lqr enabled

Post by Tangui »

What do you mean by the liblqr delegate library ?

I've installed liblqr and liblqr-dev, is this it ?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Compiling IM with lqr enabled

Post by fmw42 »

All I installed on my Mac was liblqr. I don't know about the -dev.

Did you include --with-lqr in your ./configure file and recompile IM after installing the lqr delegate(s)?
Tangui

Re: Compiling IM with lqr enabled

Post by Tangui »

Yes I did :

Code: Select all

./configure --with-lqr
but the fact is in the output of this script I have the line :

Code: Select all

LQR               --with-lqr=yes      no
And this worked on my desktop (ubuntu) !

I think this is a problem with library version or something like that but liblqr-dev (the headers) are here and I really don't know why the configure script doesn't want to enable it (no error msg).

Thank you for your answers :)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Compiling IM with lqr enabled

Post by fmw42 »

Look in the config.log file in the IM download folder and see if it has an clues about why it did not compile with it.
Tangui

Re: Compiling IM with lqr enabled

Post by Tangui »

I was searching lowercase, so I didn't notice it :

Code: Select all

configure:28086: checking if LCMS package is complete
configure:28101: result: no
configure:28144: result: -------------------------------------------------------------
configure:28148: checking for LQR
configure:28213: result:
configure:28255: result: -------------------------------------------------------------
configure:28257: checking for LZMA
configure:28259: result:
configure:28263: checking lzma.h usability
configure:28263: gcc -std=gnu99 -std=gnu99 -c  -fopenmp -g -O2 -Wall -pthread   conftest.c >&5
configure:28263: $? = 0
configure:28263: result: yes
configure:28263: checking lzma.h presence
configure:28263: gcc -E   conftest.c
...
That's weird !
Post Reply