[GRASS-dev] [GRASS GIS] #2491: configure: error: *** Unable to locate FreeType includes.

#2491: configure: error: *** Unable to locate FreeType includes.
-------------------------+--------------------------------------------------
Reporter: strk | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Compiling | Version: unspecified
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Configuration of grass-7.0.0beta3 sources fail with:
{{{
checking whether to use FreeType... yes
checking for location of FreeType includes...
checking for ft2build.h... no
configure: error: *** Unable to locate FreeType includes.
}}}

I have the file in /usr/include/freetype2/ft2build.h

Adding --with-freetype-includes=/usr/include/freetype2 switch fixes the
configuration, but I'm wondering if the detector could do a better job by
also looking in there, being the default install on ubuntu 14.04

NOTE: 7.0.0beta3 is missing a Version (would it be trunk?)

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2491&gt;
GRASS GIS <http://grass.osgeo.org>

#2491: configure: error: *** Unable to locate FreeType includes.
-------------------------+--------------------------------------------------
Reporter: strk | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Compiling | Version: unspecified
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by glynn):

As a matter of policy, configure doesn't add directories to the header or
library search paths automatically. It only adds directories which are
either specified by the user or obtained from pkg-config or package-
specific config scripts (e.g. gdal-config).

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2491#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#2491: configure: error: *** Unable to locate FreeType includes.
-------------------------+--------------------------------------------------
Reporter: strk | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Compiling | Version: unspecified
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by strk):

$ freetype-config --cflags
-I/usr/include/freetype2

Is that acceptable by policy then ?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2491#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#2491: configure: error: *** Unable to locate FreeType includes.
-------------------------+--------------------------------------------------
Reporter: strk | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Compiling | Version: unspecified
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by strk):

That is (with proper trac syntax):
{{{
[strk@cdb:~] freetype-config --cflags
-I/usr/include/freetype2
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2491#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#2491: configure: error: *** Unable to locate FreeType includes.
-------------------------+--------------------------------------------------
Reporter: strk | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Compiling | Version: unspecified
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by neteler):

Replying to [ticket:2491 strk]:
> Adding --with-freetype-includes=/usr/include/freetype2 switch fixes the
configuration

FWIW, the same is needed on Fedora 20.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2491#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#2491: configure: error: *** Unable to locate FreeType includes.
-------------------------+--------------------------------------------------
Reporter: strk | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Compiling | Version: unspecified
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by glynn):

Replying to [comment:2 strk]:
> $ freetype-config --cflags
> -I/usr/include/freetype2
>
> Is that acceptable by policy then ?

Yes. But the configure script doesn't currently use freetype-config.

Before making that change, we should decide whether to use freetype-config
or pkg-config.

Also, we don't currently have a macro for *-config scripts; each package
which uses them has the same boilerplate.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2491#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>