[GRASS-dev] freetype on gentoo
Glynn Clements
glynn at gclements.plus.com
Fri May 19 05:43:12 EDT 2006
Stef-Bán István wrote:-A
> I would like to compile Grass with freetype support, but the configure fails:
> checking for location of FreeType includes...
> checking for ft2build.h... no
> configure: error: *** Unable to locate FreeType includes.
>
> I'm using Gentoo and I have installed freetype package, and the ft2build.h
> file is in the /usr/include directory, so I don't understand why Grass
> doesn't find it, even if I add --with-freetype-includes=/usr/include to the
> configure script.
You need --with-freetype-includes=/usr/include/freetype2.
ft2build.h simply includes <freetype/config/ftheader.h>. In order to
be able to find that header, /usr/include/freetype2 has to be added to
the compiler's include path.
Note that header checks don't simply try to locate a file with a given
name, they try to use it (i.e. preprocess a test program which
includes the specified header).
More generally, if a configure test fails, the contents of the
config.log file will provide an indication of exactly what the test
did and any error messages which it generated.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list