[GRASS-user] Compiling the weekly source (configure bug?)

Seth Price seth at pricepages.org
Mon Jun 22 19:02:32 EDT 2009


Hey all, I'm interested in making some changes to the GRASS core so I'm
trying to work with the latest source package. However, I'm having a hard
time getting it to install. It says it's unable to locate my FreeType
includes. I think that there's bug in the configure where someone forgot
to include "-I/usr/local/include/freetype2"

Thoughts on the problem and/or how to get this configured? Here's my
Terminal's text and a bunch of relevant info:
$ ./configure --enable-shared --prefix=/Applications --enable-macosx-app
--with-opengl=aqua && make && sudo make install
checking host system type... i386-apple-darwin9.7.0
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
[... snip ...]
checking for cairo_xlib_surface_create_with_xrender_format... yes
checking for cairo_xlib_surface_get_xrender_format... yes
checking whether to use FreeType... yes
checking for location of FreeType includes...
checking for ft2build.h... no
configure: error: *** Unable to locate FreeType includes.
$ freetype-config
Usage: freetype-config [OPTION]...
Get FreeType compilation and linking information.

Options:
  --prefix               display `--prefix' value used for building the
                         FreeType library
  --prefix=PREFIX        override `--prefix' value with PREFIX
  --exec-prefix          display `--exec-prefix' value used for building
                         the FreeType library
  --exec-prefix=EPREFIX  override `--exec-prefix' value with EPREFIX
  --version              display libtool version of the FreeType library
  --ftversion            display FreeType version number
  --libs                 display flags for linking with the FreeType library
  --libtool              display library name for linking with libtool
  --cflags               display flags for compiling with the FreeType
                         library
$ tail -n 20 config.log
configure:13590: checking for cairo.h
configure:13598: gcc -E -I/usr/local/include/cairo
-I/usr/local/include/pixman-1 -I/usr/local/include/freetype2
-I/usr/local/include -I/usr/local/include/libpng12 -I/usr/X11/include   
conftest.c >/dev/null 2>conftest.out
configure:13634: checking for location of cairo library
configure:13654: checking for cairo linking flags
configure:13670: checking for cairo_create
configure:13696: gcc -o conftest -g -O2       conftest.c  -L/usr/local/lib
-L/usr/X11/lib -lfreetype -lfontconfig -lXrender -lSM -lICE -lX11 -lcairo 
   1>&5
configure:13730: checking for cairo_xlib_surface_create_with_xrender_format
configure:13756: gcc -o conftest -g -O2       conftest.c  -L/usr/local/lib
-L/usr/X11/lib -lfreetype -lfontconfig -lXrender -lSM -lICE -lX11 -lcairo 
   1>&5
configure:13789: checking for cairo_xlib_surface_get_xrender_format
configure:13815: gcc -o conftest -g -O2       conftest.c  -L/usr/local/lib
-L/usr/X11/lib -lfreetype -lfontconfig -lXrender -lSM -lICE -lX11 -lcairo 
   1>&5
configure:13857: checking whether to use FreeType
configure:13876: checking for location of FreeType includes
configure:13902: checking for ft2build.h
configure:13910: gcc -E   conftest.c >/dev/null 2>conftest.out
In file included from configure:13906:
/usr/local/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No
such file or directory
configure: failed program was:
#line 13905 "configure"
#include "confdefs.h"
#include <ft2build.h>
$ locate ftheader.h
/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/freetype2/freetype/config/ftheader.h
/Developer/SDKs/MacOSX10.5.sdk/usr/X11/include/freetype2/freetype/config/ftheader.h
/usr/X11/include/freetype2/freetype/config/ftheader.h
/usr/local/freetype/freetype-2.3.9/include/freetype/config/ftheader.h
/usr/local/include/freetype2/freetype/config/ftheader.h
$



Thanks,
Seth



More information about the grass-user mailing list