Compiling on AIX 5.3 II

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
Posts: 50
Joined: 2005-09-28T07:47:13-07:00

Compiling on AIX 5.3 II

Post by elisegev »

The configure utility returned the following:

Delegate Configuration:
BZLIB --with-bzlib=yes yes
DPS --with-dps=yes no
FlashPIX --with-fpx=no no
FontConfig --with-fontconfig=yes no
FreeType --with-freetype=yes no (failed tests)
GhostPCL None pcl6 (unknown)
Ghostscript None gs (8.50)
Ghostscript fonts --with-gs-font-dir=default /usr/local/share/ghostscript/fonts/
Ghostscript lib --with-gslib=yes no (failed tests)
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes no (failed tests)
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=yes no
LCMS --with-lcms=yes no (failed tests)
Magick++ --with-magick-plus-plus=yes no (failed tests)
PERL --with-perl=yes /bin/perl
PNG --with-png=yes yes
RSVG --with-rsvg=yes no
TIFF --with-tiff=yes yes
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

X11 Configuration:

Options used to compile and link:
PREFIX = /usr/local
EXEC-PREFIX = /usr/local
VERSION = 6.2.8
CC = gcc
CFLAGS = -g -O2 -Wall
CPPFLAGS = -I/usr/local/include
LDFLAGS = -L/usr/local/lib -L/usr/local/lib
LIBS = -lMagick -ltiff -ljpeg -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm
CXX = g++

It seems that 'configure' does not see lcms and jbig, although they exist on the system. Any ideas what I am doing wrong?

What is the Ghostscript library, which is missing too? I have Ghostscript 8.50 on this system. But, there is no library. There is a lib directory under 'share', which contains PS files.
User avatar
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

See the config.log file to determine why the configure script fails to validate your lcms and jpeg delegate libraries.

The Ghostscript library is not required. Without it, ImageMagick defaults to the Ghostscript command line utility, gs.
Posts: 50
Joined: 2005-09-28T07:47:13-07:00

Post by elisegev »

From config.log:

configure:44542: checking for LCMS support
configure:44544: result:
configure:44559: checking lcms.h usability
configure:44571: gcc -c -g -O2 -Wall conftest.c >&5
configure:44577: $? = 0
configure:44581: test -z
|| test ! -s conftest.err
configure:44584: $? = 0
configure:44587: test -s conftest.o
configure:44590: $? = 0
configure:44600: result: yes
configure:44604: checking lcms.h presence
configure:44614: gcc -E conftest.c
configure:44620: $? = 0
configure:44640: result: yes
configure:44675: checking for lcms.h
configure:44682: result: yes
configure:44854: checking for cmsOpenProfileFromMem in -llcms
configure:44884: gcc -o conftest -g -O2 -Wall conftest.c -llcms -ljpeg -lpng -lXext -lXt -lSM -lICE -lX11 -lbz2 -lz -lm >&5
ld: 0706-006 Cannot find or open library file: -l lcms
ld:open(): No such file or directory

The lcms library is in /usr/local/lib/liblcms.a and /usr/local/lib/

configure:46058: checking for JBIG support
configure:46060: result:
configure:46074: checking jbig.h usability
configure:46086: gcc -c -g -O2 -Wall conftest.c >&5
configure:46092: $? = 0
configure:46096: test -z
|| test ! -s conftest.err
configure:46099: $? = 0
configure:46102: test -s conftest.o
configure:46105: $? = 0
configure:46115: result: yes
configure:46119: checking jbig.h presence
configure:46129: gcc -E conftest.c
configure:46135: $? = 0
configure:46155: result: yes
configure:46190: checking for jbig.h
configure:46197: result: yes
configure:46208: checking for jbg_dec_init in -ljbig
configure:46238: gcc -o conftest -g -O2 -Wall conftest.c -ljbig -ltiff -ljpeg -lpng -lXext -lXt -lSM -lICE -lX11 -lbz2 -lz -lm >&5
ld: 0706-006 Cannot find or open library file: -l jbig
ld:open(): No such file or directory
collect2: ld returned 255 exit status
configure:46244: $? = 1
configure: failed program was:

The library libjbig.a is in /usr/local/lib.

So what is wrong here?
Post Reply