Page 1 of 1

Libfreetype not detected by configure 6.8.5-5

Posted: 2013-05-08T18:41:20-07:00
by justin
Hi, I am trying to compile ImageMagick-6.8.5-5 on OpenIndiana (x86), but I'm having problems with configure. I am using the Sun C compiler. I want to compile with the basic options enabled plus PerlMagick.

Code: Select all

./configure --with-perl=/usr/local/bin/perl
Output of configure:

Code: Select all

ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.

Host system type: i386-pc-solaris2.11
Build system type: i386-pc-solaris2.11

                  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=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
Dejavu fonts      --with-dejavu-font-dir=default        none
DJVU              --with-djvu=yes               no
DPS               --with-dps=yes                no
FFTW              --with-fftw=yes               yes
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.64)
Ghostscript fonts --with-gs-font-dir=default    /usr/share/ghostscript/fonts/
Ghostscript lib   --with-gslib=no               no
Graphviz          --with-gvc=no         
JBIG              --with-jbig=yes               no
JPEG v1           --with-jpeg=yes               yes
JPEG-2000         --with-jp2=yes                no
LCMS v1           --with-lcms=yes               yes
LCMS v2           --with-lcms2=yes              no
LQR               --with-lqr=yes                no
LTDL              --with-ltdl=yes               no
LZMA              --with-lzma=yes               no
Magick++          --with-magick-plus-plus=yes   no (failed tests)
OpenEXR           --with-openexr=yes            no
PANGO             --with-pango=yes              no
PERL              --with-perl=yes               /usr/local/bin/perl
PNG               --with-png=yes                yes
RSVG              --with-rsvg=no                no
TIFF              --with-tiff=yes               yes
WEBP              --with-webp=no                no
Windows fonts     --with-windows-font-dir=      none
WMF               --with-wmf=no         no
X11               --with-x=                     yes
XML               --with-xml=yes                yes
ZLIB              --with-zlib=yes               yes

X11 Configuration:
      X_CFLAGS        = 
      X_PRE_LIBS      = -lSM -lICE
      X_LIBS          = 
      X_EXTRA_LIBS    = 

Options used to compile and link:
  PREFIX          = /usr/local
  EXEC-PREFIX     = /usr/local
  VERSION         = 6.8.5
  CC              = /opt/SunStudioExpress/bin/cc
  CFLAGS          = -xopenmp -g -v -mt -D_REENTRANT -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
  CPPFLAGS        = -I/usr/local/include/ImageMagick-6
  PCFLAGS         = -xopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
  DEFS            = -DHAVE_CONFIG_H
  LDFLAGS         = -Wl,-zlazyload
  MAGICK_LDFLAGS  = -L/usr/local/lib -Wl,-zlazyload
  LIBS            = -lMagickCore -llcms -ltiff -ljpeg -lpng14 -lfftw3 -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lmtsk -lpthread
  CXX             = g++
  CXXFLAGS        = -g -O2 -mt -D_REENTRANT
  FEATURES        = DPC OpenMP
  DELEGATES       = bzlib fftw jng jpeg lcms png ps tiff x xml zlib
By default, the configure has:

Code: Select all

--with-freetype=yes
My machine has freetype installed:

Code: Select all

/usr/local/share/aclocal/freetype2.m4
/usr/local/bin/freetype-config
/usr/local/include/freetype2
/usr/local/include/freetype2/freetype
/usr/local/include/freetype2/freetype/ftbitmap.h
/usr/local/include/freetype2/freetype/t1tables.h
/usr/local/include/freetype2/freetype/ftoutln.h
/usr/local/include/freetype2/freetype/ftgasp.h
/usr/local/include/freetype2/freetype/ftrender.h
/usr/local/include/freetype2/freetype/ftbzip2.h
/usr/local/include/freetype2/freetype/tttags.h
/usr/local/include/freetype2/freetype/fttypes.h
/usr/local/include/freetype2/freetype/ftotval.h
/usr/local/include/freetype2/freetype/ftglyph.h
/usr/local/include/freetype2/freetype/ttnameid.h
/usr/local/include/freetype2/freetype/ftlzw.h
/usr/local/include/freetype2/freetype/fterrdef.h
/usr/local/include/freetype2/freetype/ftbbox.h
/usr/local/include/freetype2/freetype/ftbdf.h
/usr/local/include/freetype2/freetype/ftlist.h
/usr/local/include/freetype2/freetype/ftpfr.h
/usr/local/include/freetype2/freetype/ftimage.h
/usr/local/include/freetype2/freetype/ftxf86.h
/usr/local/include/freetype2/freetype/tttables.h
/usr/local/include/freetype2/freetype/ftstroke.h
/usr/local/include/freetype2/freetype/ftsizes.h
/usr/local/include/freetype2/freetype/ftwinfnt.h
/usr/local/include/freetype2/freetype/freetype.h
/usr/local/include/freetype2/freetype/ftchapters.h
/usr/local/include/freetype2/freetype/ftlcdfil.h
/usr/local/include/freetype2/freetype/ftadvanc.h
/usr/local/include/freetype2/freetype/fterrors.h
/usr/local/include/freetype2/freetype/ftsnames.h
/usr/local/include/freetype2/freetype/ftgxval.h
/usr/local/include/freetype2/freetype/ftgzip.h
/usr/local/include/freetype2/freetype/ftincrem.h
/usr/local/include/freetype2/freetype/ftcid.h
/usr/local/include/freetype2/freetype/ftcache.h
/usr/local/include/freetype2/freetype/ftmac.h
/usr/local/include/freetype2/freetype/fttrigon.h
/usr/local/include/freetype2/freetype/ftcffdrv.h
/usr/local/include/freetype2/freetype/ftsynth.h
/usr/local/include/freetype2/freetype/ftmodapi.h
/usr/local/include/freetype2/freetype/ftautoh.h
/usr/local/include/freetype2/freetype/config
/usr/local/include/freetype2/freetype/config/ftstdlib.h
/usr/local/include/freetype2/freetype/config/ftconfig.h
/usr/local/include/freetype2/freetype/config/ftheader.h
/usr/local/include/freetype2/freetype/config/ftmodule.h
/usr/local/include/freetype2/freetype/config/ftoption.h
/usr/local/include/freetype2/freetype/ttunpat.h
/usr/local/include/freetype2/freetype/ftsystem.h
/usr/local/include/freetype2/freetype/ftmoderr.h
/usr/local/include/freetype2/freetype/ftmm.h
/usr/local/lib/libfreetype.la
/usr/local/lib/libfreetype.so
/usr/local/lib/libfreetype.so.6.10.1
/usr/local/lib/libfreetype.so.6
/usr/local/lib/libfreetype.a
/usr/local/lib/pkgconfig/freetype2.pc
The output of config.log isn't very useful:

Code: Select all

configure:29064: checking for FONTCONFIG
configure:29129: result:
configure:29175: result: -------------------------------------------------------------
configure:29179: checking for FREETYPE
configure:29244: result:
configure:29603: result: -------------------------------------------------------------
configure:29605: checking for JBIG
So, I'm not sure what's going wrong. I've tried just about every command known to man to invoke freetype's inclusion. As far as what builds with a gmake after the configure is done, it works if I add -lsocket to the LIB list. So, hopefully somebody has an idea how to help add in freetype!

Re: Libfreetype not detected by configure 6.8.5-5

Posted: 2013-05-11T07:00:58-07:00
by justin
So, after working on this a while. It's not working because I didn't have pkg-config. It's now configuring correctly. Configure doesn't check to see if pkg-config works before using it to find other packages. So, this is built and solved.

Re: Libfreetype not detected by configure 6.8.5-5

Posted: 2013-05-30T12:58:57-07:00
by jawzx
Thanks! This solved my problem with a cygwin build of 6.8.5-8 too!