[GRASS-dev] FIXED: Re: compiling GRASS-latest - configure fails with Unable to locate PostgreSQL includes
Maris Nartiss
maris.gis at gmail.com
Mon Jun 28 08:44:59 PDT 2021
Hello Denis,
please create a PR.
Māris.
2021-06-22 16:32 GMT+03:00, Denis Ovsienko <denis at ovsienko.info>:
> On Mon, 21 Jun 2021 23:24:40 +0200
> Markus Neteler <neteler at osgeo.org> wrote:
>
>> Maybe others here have suggestions how to improve the current
>> (message) situation?
>
> As far as I understand it, since GRASS C source includes <ft2build.h>,
> it uses FreeType 2. FreeType 2 documentation suggests using pkg-config
> to tell where the headers are:
> https://www.freetype.org/freetype2/docs/tutorial/step1.html#section-1
>
> On my system (Ubuntu 18.04) the headers are in /usr/include/freetype2
> (and not just):
>
> $ pkg-config --cflags freetype2
> -I/usr/include/freetype2 -I/usr/include/libpng16
>
> FWIW, running configure with
> --with-freetype-includes=/usr/include/freetype2 was always mandatory and
> sufficient for building GRASS on my PC. I didn't always remember this
> detail, so some of my builds were slightly more difficult than the
> others.
>
> GRASS configure script uses pkg-config, but not for FreeType 2
> detection. So it defaults to a hard-coded path,
> which is now /usr/include/freetype. It is worth checking how many
> distributions put FreeType 2 headers there instead
> of /usr/include/freetype2. In other words, this default path might be
> well out of date.
>
> In terms of improving this situation (such that GRASS configure "just
> works" for most users), the following changes could add to a more
> useful error message:
>
> 1. Default to /usr/include/freetype2 if that's the most common location
> in supported distributions now.
> 2. Use pkg-config to detect the necessary FreeType 2 CFLAGS
> automatically.
>
> As a side note, it might be a good time to migrate to a current version
> of autoconf (2.69 seems to be a popular choice).
>
> --
> Denis Ovsienko
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-dev
>
More information about the grass-dev
mailing list