[GRASS-dev] GRASS Mac compiling - cairo problems

Vaclav Petras wenzeslaus at gmail.com
Wed Jul 26 17:26:30 PDT 2017


On Wed, Jul 26, 2017 at 7:10 PM, Michael Barton <Michael.Barton at asu.edu>
wrote:

>
> But fontconfig.h is IN the directory I've pointed to in the
> --with-cairo-includes= statement.
>
> Here is my configure script:
>
> ./configure --with-macosx-sdk=/Developer/SDKs/MacOSX10.8.sdk
> --with-freetype --with-freetype-includes=/Library/Frameworks/FreeType.framework/unix/include/
> --with-freetype-libs=/Library/Frameworks/FreeType.framework/unix/lib
> --with-gdal=/Library/Frameworks/GDAL.framework/Programs/gdal-config
> --with-gdal-libs=/Library/Frameworks/GDAL.framework/Libraries --with-proj
> --with-proj-includes=/Library/Frameworks/PROJ.framework/unix/include
> --with-proj-libs=/Library/Frameworks/PROJ.framework/unix/lib
> --with-proj-share=/Library/Frameworks/PROJ.framework/Resources/proj
> --with-geos=/Library/Frameworks/GEOS.framework/Versions/3/unix/bin/geos-config
> --with-jpeg-includes=/Library/Frameworks/UnixImageIO.framework/unix/include
> --with-jpeg-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib
> --with-png-includes=/Library/Frameworks/UnixImageIO.framework/unix/include
> --with-png-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib
> --with-tiff-includes=/Library/Frameworks/UnixImageIO.framework/unix/include
> --with-tiff-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib
> --with-cairo --with-cairo-includes=/Library/Frameworks/cairo.framework/Headers/
> --with-cairo-libs=/Library/Frameworks/cairo.framework/unix/lib
> --with-cairo-ldflags="-lcairo" --without-postgres --without-mysql
> --with-sqlite
>

...


> Finished compilation: Wed Jul 26 17:02:45 MDT 2017
> make: *** [default] Error 1
> CMB-MacBook-Pro:releasebranch_7_2 cmbarton$ cd /Users/cmbarton/grass_
> source/releasebranch_7_2/lib/cairodriver
> CMB-MacBook-Pro:cairodriver cmbarton$ make
> gcc  -g -O2   -arch i386 -isysroot /Developer/SDKs/MacOSX10.8.sdk
> -fno-common  -I/Users/cmbarton/grass_source/releasebranch_7_2/dist.x86_64-apple-darwin16.7.0/include
> -I/Users/cmbarton/grass_source/releasebranch_7_2/dist.
> x86_64-apple-darwin16.7.0/include   -I../driver -I/
> Library/Frameworks/cairo.framework/Headers/ -I/Library/Frameworks/
> FreeType.framework/unix/include/ -DPACKAGE=\""grasslibs"\"   -I/Users/
> cmbarton/grass_source/releasebranch_7_2/dist.x86_64-apple-darwin16.7.0/include
> -I/Users/cmbarton/grass_source/releasebranch_7_2/dist.
> x86_64-apple-darwin16.7.0/include -DRELDIR=\"lib/cairodriver\" -o
> OBJ.x86_64-apple-darwin16.7.0/text.o -c text.c
> text.c:20:10: fatal error: 'fontconfig/fontconfig.h' file not found
> #include <fontconfig/fontconfig.h>
>          ^
> 1 error generated.
> make: *** [OBJ.x86_64-apple-darwin16.7.0/text.o] Error 1
>
>
Hi Michael,

As far as I understand, compiler simply looks at all directories specified
by -I (which are configured by ./configure) and pastes the -I path and the
path in #include together and tests if the file exists. So I would first
double check:

ls /Library/Frameworks/cairo.framework/Headers/
ls /Library/Frameworks/cairo.framework/Headers/fontconfig/fontconfig.h

Vaclav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20170726/76440b2c/attachment-0001.html>


More information about the grass-dev mailing list