I need some help with building Magick++ library on AIX 6.1.
Code: Select all
myhost:/home/alchy/ImageMagick-6.5.3-7 # uname -a
AIX myhost 1 6 00CB25304C00
Code: Select all
./configure \
--disable-installed \
--disable-shared \
--disable-largefile \
--without-threads \
--without-modules \
--without-perl \
--without-dps \
--without-jbig \
--without-lcms \
--without-xml \
--without-x \
--without-gslib \
--without-freetype \
CXX='xlC' \
CXXFLAGS='-q64 -qsrcmsg -qflag=w:e -qlanglvl=newexcp' \
CPPFLAGS='-I/path/to/jpeg-6b -I/path/to/zlib -I/path/to/bzip2 -I/path/to/tiff/libtiff' \
LDFLAGS='-q64 -L/path/to/jpeg-6b -L/path/to/zlib -L/path/to/bzip2 -L/path/to/tiff/libtiff/.libs' \
CC='xlc' \
CFLAGS='-q64 -qsrcmsg -qflag=w:e -qlanglvl=newexcp' \
AR_FLAGS='-v -q -X64'
Output from ./configure :
Code: Select all
Host system type: powerpc-ibm-aix6.1.0.0
Build system type: powerpc-ibm-aix6.1.0.0
Option Value
-------------------------------------------------------------------------------
Shared libraries --enable-shared=no no
Static libraries --enable-static=yes yes
Module support --with-modules=no no
GNU ld --with-gnu-ld=no no
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
DJVU --with-djvu=yes no
DPS --with-dps=no no
FlashPIX --with-fpx=yes no
FontConfig --with-fontconfig=no no
FreeType --with-freetype=no no
GhostPCL None pcl6 (unknown)
GhostXPS None gxps (unknown)
Ghostscript None gs (unknown)
Ghostscript fonts --with-gs-font-dir=default none
Ghostscript lib --with-gslib=no no
Graphviz --with-gvc=yes no
JBIG --with-jbig=no no
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=yes no
LCMS --with-lcms=no no
LQR --with-lqr=yes no
Magick++ --with-magick-plus-plus=yes yes
OpenEXR --with-openexr=yes no
PERL --with-perl=no no
PNG --with-png=yes no
RSVG --with-rsvg=no no
TIFF --with-tiff=yes yes
Windows fonts --with-windows-font-dir= none
WMF --with-wmf=no no
X11 --with-x=no no
XML --with-xml=no no
ZLIB --with-zlib=yes yes
X11 Configuration:
X_CFLAGS =
X_PRE_LIBS =
X_LIBS =
X_EXTRA_LIBS =
Options used to compile and link:
PREFIX = /usr/local
EXEC-PREFIX = /usr/local
VERSION = 6.5.3
CC = xlc
CFLAGS = -q64 -qsrcmsg -qflag=w:e -qlanglvl=newexcp
MAGICK_CFLAGS = -q64 -qsrcmsg -qflag=w:e -qlanglvl=newexcp
CPPFLAGS = -I/usr/local/include/ImageMagick
PCFLAGS =
DEFS = -DHAVE_CONFIG_H
LDFLAGS = -q64 -L/path/to/jpeg-6b -L/path/to/zlib -L/path/to/bzip2 -L/path/to/tiff/libtiff/.libs
MAGICK_LDFLAGS = -L/usr/local/lib -q64 -L/path/to/jpeg-6b -L/path/to/zlib -L/path/to/bzip2 -L/path/to/tiff/libtiff/.libs
LIBS = -lMagickCore -ltiff -ljpeg -lbz2 -lz -lm
CXX = xlC
CXXFLAGS = -q64 -qsrcmsg -qflag=w:e -qlanglvl=newexcp
But I got this error after running make:
Code: Select all
...
...
source='magick/annotate.c' object='magick/magick_libMagickCore_la-annotate.lo' libtool=yes \
DEPDIR=.deps depmode=aix /bin/sh ./config/depcomp \
/bin/sh ./libtool --silent --tag=CC --mode=compile xlc -DHAVE_CONFIG_H -I. -I./config -I./ltdl -I./ltdl -I/path/to/jpeg-6b -I/path/to/zlib -I/path/to/bzip2 -I/path/to/tiff/libtiff -q64 -qsrcmsg -qflag=w:e -qlanglvl=newexcp -c -o magick/magick_libMagickCore_la-annotate.lo `test -f 'magick/annotate.c' || echo './'`magick/annotate.c
78 | # include <ft2build.h>
...........a...........
a - 1506-296 (S) #include file <ft2build.h> not found.
83 | # include <freetype/freetype.h>
...........a....................
a - 1506-296 (S) #include file <freetype/freetype.h> not found.
88 | # include <freetype/ftglyph.h>
...........a...................
a - 1506-296 (S) #include file <freetype/ftglyph.h> not found.
93 | # include <freetype/ftoutln.h>
...........a...................
a - 1506-296 (S) #include file <freetype/ftoutln.h> not found.
98 | # include <freetype/ftbbox.h>
...........a..................
a - 1506-296 (S) #include file <freetype/ftbbox.h> not found.
...
...
It seems that configure script does not re-generates config headers.
I found this line in magick/magick-config.h :
Code: Select all
#define MAGICKCORE_FREETYPE_DELEGATE 1