<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'm trying to do a basic compilation of GRASS 7.2 on my Mac to get started in a new binary packaging attempt. I'm hitting new issues with cairo and wonder if anyone can shed some light on this.
<div class=""><br class="">
</div>
<div class="">This is the first time I've tried compiling on my current machine. It is up to date with the newest version of OS X (Sierra, OS X 10.12.6) and current developer tools. </div>
<div class=""><br class="">
</div>
<div class="">I have William Kyngesburye's cairo framework 12.2-1.</div>
<div class=""><br class="">
</div>
<div class="">First problem is that configure could not find cairo with the path in the configure string I used last October. I tried a couple of other paths and found one that worked. </div>
<div class=""><br class="">
</div>
<div class="">When I tried to make GRASS, I ran into the following errors, all related to cairo. cairodriver can't find fonconfig.h, which I think are leading to the rest of the errors.</div>
<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/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 --with-sqlite-libs=/Library/Frameworks/SQLite3.framework/unix/lib --with-sqlite-includes=/Library/Frameworks/SQLite3.framework/unix/include
 --with-fftw-includes=/Library/Frameworks/FFTW3.framework/unix/include --with-fftw-libs=/Library/Frameworks/FFTW3.framework/unix/lib --with-x --with-cxx --with-opengl=aqua --without-readline --prefix=/Applications --enable-macosx-app --with-python --with-wxwidgets=/usr/local/lib/wxPython-unicode-2.8.12.1/bin/wx-config
 --with-macosx-archs="i386 x86\_64" --with-opencl</div>
<div class=""><br class="">
</div>
<div class="">Here are the errors (I can give a full log dump if it would be helpful):</div>
<div class=""><br class="">
</div>
<div class="">Errors in:<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/lib/cairodriver<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/lib/display<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.barscale<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.colortable<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.erase<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.font<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.fontlist<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.geodesic<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.graph<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.grid<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.his<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.histogram<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/<a href="http://d.info" class="">d.info</a><br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.labels<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.legend<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.legend.vect<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.linegraph<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.mon<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.northarrow<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.path<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.profile<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.rast<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.rast.arrow<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.rast.num<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.rgb<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.rhumbline<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.text<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.vect<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.vect.chart<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.vect.thematic<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/display/d.where<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/vector/v.label<br class="">
/Users/cmbarton/grass_source/releasebranch_7_2/misc/m.nviz.script<br class="">
--<br class="">
In case of errors please change into the directory with error and run 'make'.<br class="">
If you get multiple errors, you need to deal with them in the order they<br class="">
appear in the error log. If you get an error building a library, you will<br class="">
also get errors from anything which uses the library.<br class="">
--<br class="">
Finished compilation: Wed Jul 26 17:02:45 MDT 2017<br class="">
make: *** [default] Error 1<br class="">
CMB-MacBook-Pro:releasebranch_7_2 cmbarton$ cd /Users/cmbarton/grass_source/releasebranch_7_2/lib/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/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<br class="">
text.c:20:10: fatal error: 'fontconfig/fontconfig.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.0/text.o] Error 1</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Thanks</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; 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>
</body>
</html>