[GRASSLIST:2760] Re: compiling grass and gd includes

cmbarton michael.barton at asu.edu
Thu Dec 6 14:41:23 EST 2001


Thanks again. Here is some info and a question. I hope that this helps 
with the configure script (as well as helping me compile grass).



On Wednesday, December 5, 2001, at 11:46 PM, Glynn Clements wrote:
>> Thanks for all the help you have  offered. I am still working on
>> compiling grass and nearing the end of the compile script--finally. But
>> I have run into a very perplexing problem. The configuration script
>> looks for freetype2 (ft2build.h) and can't find it.
>>
>> I have these libraries and this file. I put in the correct path to this
>> file in my with-includes= and with-libs= flags. Then, I tried putting 
>> in
>> a flag specifically for freetype (see below for both). It still can't
>> find the file. I am beginning to suspect a problem with the configure
>> script, but can't ferret it out.
>>
>> Any thoughts on this?
>
> Not really. It would help if you could send me the relevant sections
> of the config.log file. It should include lines similar to:
>
> configure:8399: checking whether to use FreeType
> configure:8418: checking for location of FreeType includes
> configure:8444: checking for ft2build.h
> configure:8452: gcc -E   -I/usr/X11R6/include/freetype2 conftest.c 
> >/dev/null 2>conftest.out
> configure:8486: checking for location of FreeType library
> configure:8511: checking for FT_Init_FreeType in -lfreetype
> configure:8528: gcc -o conftest -g -O2     -L/usr/X11R6/lib conftest.c 
> -lfreetype   1>&5
>
> plus any error messages.
>

Here is the relevant section of config.log. It seems OK, but there may 
be something I am missing.

-L/usr/lib  conftest.c -lfftw   1>&5
configure:7925: checking whether to use BLAS
configure:8078: checking whether to use LAPACK
configure:8231: checking whether to use Motif
configure:8399: checking whether to use FreeType
configure:8418: checking for location of FreeType includes
configure:8444: checking for ft2build.h
configure:8452: cc -E -traditional-cpp   -I/sw/include -I/usr/include  
-I/sw/include conftest.c >/dev/null 2>conftest.out
In file included from configure:8448:
/sw/include/ft2build.h:55: freetype/config/ftheader.h: No such file or 
directory
configure: failed program was:
#line 8447 "configure"
#include "confdefs.h"
#include <ft2build.h>

Here is the error message.

checking whether to use Motif... no
checking whether to use FreeType... yes
checking for location of FreeType includes... /sw/include
checking for ft2build.h... no
configure: error: *** Unable to locate FreeType includes.

Finally, it may not help, but here is the configure command string I am 
using:

sudo ./configure --prefix=/sw/grass5 --with-includes="/sw/include 
/usr/include" --with-libs="/sw/lib /usr/lib" --with-gdal=/sw/lib 
--without-postgres --without-blas --without-lapack --without-motif 
--with-freetype-includes=/sw/include --with-freetype-libs=/sw/lib

>> Also, I have had to put in --without-blas and --without-lapack.
>
> That *is* a bug in configure; these were meant to be off by default
> (along with freetype and motif). I've committed a fix to CVS.
>

So I should just ./configure with all turned off -- including freetype?

>> sudo ./configure --prefix=/sw/grass5 --with-includes="/sw/include
>> /usr/include" --with-libs="/sw/lib /usr/lib" --with-gdal=/sw/lib
>
> Note: If an argument is passed to --with-gdal, it should be the path
> to the "gdal-config" script, e.g. "--with-gdal=/sw/bin/gdal-config".
>

I had to use the precompiled binary of gdal for OSX. It only comes with 
a dynamic library (libgdal.1.1.dylib). No gdal-config. Should I let the 
configure script default to without gdal?




Michael Barton, Professor & Curator
Department of Anthropology
Arizona State University
Tempe, AZ  85287-2402
USA



More information about the grass-user mailing list