<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
I solved it. I typo in the configure string. Thanks.
<div class=""><br class="">
</div>
<div class="">Michael<br class="">
<div class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;" class="">
____________________</div>
<div style="font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font face="Helvetica" size="3" class="">C. Michael Barton</font></div>
<div style="font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font face="Helvetica" size="3" class="">Director, Center for Social Dynamics & Complexity </font></div>
<div style="font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font face="Helvetica" size="3" class="">Professor of Anthropology, School of Human Evolution & Social Change</font></div>
<div class=""><font face="Helvetica" size="3" class="">Head, Graduate Faculty in Complex Adaptive Systems Science</font></div>
<div style="font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font face="Helvetica" size="3" class="">Arizona State University</font></div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;" class="">
<br class="">
</div>
<font face="Helvetica" size="3" class=""><font class="">voice:  </font><font class="">480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)</font><br class="">
<font class="">fax: 480-965-7671 (SHESC),  480-727-0709 (CSDC)</font><br class="">
</font>
<div style="font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font face="Helvetica" size="3" class="">www: <a href="http://www.public.asu.edu/~cmbarton" class="">
http://www.public.asu.edu/~cmbarton</a>, <a href="http://csdc.asu.edu" class="">http://csdc.asu.edu</a></font></div>
<br class="">
</div>
<br class="">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br class="">
<div style="">
<blockquote type="cite" class="">
<div class="">On Jul 26, 2017, at 6:26 PM, Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com" class="">wenzeslaus@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class=""><br class="">
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Wed, Jul 26, 2017 at 7:10 PM, Michael Barton <span dir="ltr" class="">
<<a href="mailto:Michael.Barton@asu.edu" target="_blank" class="">Michael.Barton@asu.edu</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" class="">
<div class=""><br class="">
</div>
<div class="">But fontconfig.h is IN the directory I've pointed to in the --with-cairo-includes= statement.</div>
<div class=""><br class="">
</div>
<div class="">Here is my configure script:</div>
<div class=""><br class="">
</div>
<div class="">./configure --with-macosx-sdk=/Developer/<wbr class="">SDKs/MacOSX10.8.sdk --with-freetype --with-freetype-includes=/<wbr class="">Library/Frameworks/FreeType.<wbr class="">framework/unix/include/ --with-freetype-libs=/Library/<wbr class="">Frameworks/FreeType.framework/<wbr class="">unix/lib
 --with-gdal=/Library/<wbr class="">Frameworks/GDAL.framework/<wbr class="">Programs/gdal-config --with-gdal-libs=/Library/<wbr class="">Frameworks/GDAL.framework/<wbr class="">Libraries --with-proj --with-proj-includes=/Library/<wbr class="">Frameworks/PROJ.framework/<wbr class="">unix/include
 --with-proj-libs=/Library/<wbr class="">Frameworks/PROJ.framework/<wbr class="">unix/lib --with-proj-share=/Library/<wbr class="">Frameworks/PROJ.framework/<wbr class="">Resources/proj --with-geos=/Library/<wbr class="">Frameworks/GEOS.framework/<wbr class="">Versions/3/unix/bin/geos-<wbr class="">config
 --with-jpeg-includes=/Library/<wbr class="">Frameworks/UnixImageIO.<wbr class="">framework/unix/include --with-jpeg-libs=/Library/<wbr class="">Frameworks/UnixImageIO.<wbr class="">framework/unix/lib --with-png-includes=/Library/<wbr class="">Frameworks/UnixImageIO.<wbr class="">framework/unix/include
 --with-png-libs=/Library/<wbr class="">Frameworks/UnixImageIO.<wbr class="">framework/unix/lib --with-tiff-includes=/Library/<wbr class="">Frameworks/UnixImageIO.<wbr class="">framework/unix/include --with-tiff-libs=/Library/<wbr class="">Frameworks/UnixImageIO.<wbr class="">framework/unix/lib
 --with-cairo --with-cairo-includes=/<wbr class="">Library/Frameworks/cairo.<wbr class="">framework/Headers/ --with-cairo-libs=/Library/<wbr class="">Frameworks/cairo.framework/<wbr class="">unix/lib --with-cairo-ldflags="-lcairo" --without-postgres --without-mysql
 --with-sqlite <br class="">
</div>
</div>
</blockquote>
<div class=""><br class="">
...<br class="">
 </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" class="">
<div class="">Finished compilation: Wed Jul 26 17:02:45 MDT 2017<br class="">
make: *** [default] Error 1<br class="">
CMB-MacBook-Pro:releasebranch_<wbr class="">7_2 cmbarton$ cd /Users/cmbarton/grass_<wbr class="">source/releasebranch_7_2/lib/<wbr class="">cairodriver<br class="">
CMB-MacBook-Pro:cairodriver cmbarton$ make<br class="">
gcc  -g -O2   -arch i386 -isysroot /Developer/SDKs/MacOSX10.8.sdk -fno-common  -I/Users/<wbr class="">cmbarton/grass_source/<wbr class="">releasebranch_7_2/dist.x86_64-<wbr class="">apple-darwin16.7.0/include -I/Users/cmbarton/grass_<wbr class="">source/releasebranch_7_2/dist.<wbr class="">x86_64-apple-darwin16.7.0/<wbr class="">include   -I../driver -I/<wbr class="">Library/Frameworks/cairo.<wbr class="">framework/Headers/
 -I/Library/Frameworks/<wbr class="">FreeType.framework/unix/<wbr class="">include/ -DPACKAGE=\""<wbr class="">grasslibs"\"   -I/Users/<wbr class="">cmbarton/grass_source/<wbr class="">releasebranch_7_2/dist.x86_64-<wbr class="">apple-darwin16.7.0/include -I/Users/cmbarton/grass_<wbr class="">source/releasebranch_7_2/dist.<wbr class="">x86_64-apple-darwin16.7.0/<wbr class="">include
 -DRELDIR=\"lib/cairodriver\" -o OBJ.x86_64-apple-darwin16.7.0/<wbr class="">text.o -c text.c<br class="">
text.c:20:10: fatal error: 'fontconfig/fontconfig.<wbr class="">h' file not found<br class="">
#include <fontconfig/fontconfig.h><br class="">
         ^<br class="">
1 error generated.<br class="">
make: *** [OBJ.x86_64-apple-darwin16.7.<wbr class="">0/text.o] Error 1</div>
<div class=""><br class="">
</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">Hi Michael,<br class="">
<br class="">
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:<br class="">
<br class="">
</div>
<div class="">ls /<wbr class="">Library/Frameworks/cairo.<wbr class="">framework/Headers/<br class="">
ls /<wbr class="">Library/Frameworks/cairo.<wbr class="">framework/Headers/fontconfig/fontconfig.h<br class="">
<br class="">
</div>
<div class="">Vaclav<br class="">
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>