<div dir="ltr">Hi<div><br></div><div>I'm trying to compile GRASS7 on OSX 10.11 Beta, but I'm stuck with GDAL. I'm using <span style="font-family:Helvetica;font-size:12px;line-height:normal">Kyngesburye's frameworks, and I have gdal-config in my PATH as</span></div><div><span style="line-height:normal"><br></span></div><div><div>export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH</div></div><div><br></div><div><br></div><div>this minimum example of configure fails:</div><div><br></div><div><div><span style="line-height:normal">export MACOSX_DEPLOYMENT_TARGET=10.10</span></div><div><span style="line-height:normal"><br></span></div><div><span style="line-height:normal">./configure \</span><br></div><div>> --prefix=/Applications \</div><div>> --enable-macosx-app \</div><div>> --with-macosx-archs="x86_64" \</div><div>> --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/ \</div><div>> --with-proj \</div><div>> --with-proj-includes=/Library/Frameworks/PROJ.framework/unix/include \</div><div>> --with-proj-libs=/Library/Frameworks/PROJ.framework/unix/lib \</div><div>> --with-proj-share=/Library/Frameworks/PROJ.framework/Resources/proj \</div><div>> --with-gdal=/Library/Frameworks/GDAL.framework/Programs/gdal-config \</div><div>> </div><div>checking host system type... x86_64-apple-darwin15.0.0</div><div>checking for gcc... gcc</div><div>checking whether the C compiler (gcc -Os ) works... yes</div><div>checking whether the C compiler (gcc -Os ) is a cross-compiler... no</div><div>checking whether we are using GNU C... yes</div><div>checking whether gcc accepts -g... yes</div><div>checking for Cygwin environment... no</div><div>checking for mingw32 environment... no</div><div>checking for executable suffix... no</div><div>checking for full floating-point support... yes</div><div>checking for pwd... /bin/pwd</div><div>checking for source directory... /Users/guano/Documents/installs/grass70_release</div><div>checking for build directory... /Users/guano/Documents/installs/grass70_release</div><div>checking for svnversion... /usr/bin/svnversion</div><div>checking for MacOSX App... yes</div><div>checking for MacOSX architectures...  -arch x86_64</div><div>checking for MacOSX SDK... checking for /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk//SDKSettings.plist... yes</div><div>checking how to build libraries... shared</div><div>checking for additional include dirs... </div><div>checking for additional library dirs... </div><div>checking for a BSD compatible install... /usr/bin/install -c</div><div>checking for flex... flex</div><div>checking for yywrap in -lfl... no</div><div>checking for bison... bison -y</div><div>checking for ranlib... ranlib</div><div>checking for ar... ar</div><div>checking for env... env</div><div>checking for perl... /usr/bin/perl</div><div>checking how to run the C preprocessor... gcc -E</div><div>checking for ANSI C header files... yes</div><div>checking for limits.h... yes</div><div>checking for termio.h... no</div><div>checking for termios.h... yes</div><div>checking for unistd.h... yes</div><div>checking for values.h... no</div><div>checking for f2c.h... no</div><div>checking for g2c.h... no</div><div>checking for sys/ioctl.h... yes</div><div>checking for sys/mtio.h... no</div><div>checking for sys/resource.h... yes</div><div>checking for sys/time.h... yes</div><div>checking for sys/timeb.h... yes</div><div>checking for sys/types.h... yes</div><div>checking for sys/utsname.h... yes</div><div>checking for libintl.h... no</div><div>checking for iconv.h... yes</div><div>checking for langinfo.h... yes</div><div>checking whether time.h and sys/time.h may both be included... yes</div><div>checking for off_t... yes</div><div>checking for uid_t in sys/types.h... yes</div><div>checking return type of signal handlers... void</div><div>checking for Cygwin environment... no</div><div>checking for ftime... yes</div><div>checking for gethostname... yes</div><div>checking for gettimeofday... yes</div><div>checking for lseek... yes</div><div>checking for nice... yes</div><div>checking for time... yes</div><div>checking for uname... yes</div><div>checking for seteuid... yes</div><div>checking for setpriority... yes</div><div>checking for setreuid... yes</div><div>checking for setruid... yes</div><div>checking for drand48... yes</div><div>checking for putenv... yes</div><div>checking for setenv... yes</div><div>checking for nanosleep... yes</div><div>checking whether setpgrp takes no argument... yes</div><div>checking for long long int... yes</div><div>checking for W11... no</div><div>checking for X... no</div><div>checking for library containing cuserid... no</div><div>checking for asprintf... yes</div><div>checking for atan... yes</div><div>checking for dlsym... yes</div><div>checking for iconv... no</div><div>checking for iconv in -liconv... yes</div><div>checking for socket... yes</div><div>checking for location of zlib includes... </div><div>checking for zlib.h... yes</div><div>checking for location of zlib library... </div><div>checking for deflate in -lz... yes</div><div>checking for location of External PROJ.4 includes... /Library/Frameworks/PROJ.framework/unix/include</div><div>checking for proj_api.h... yes</div><div>checking External PROJ.4 version... 491</div><div>checking for location of External PROJ.4 library... /Library/Frameworks/PROJ.framework/unix/lib</div><div>checking for pj_get_def in -lproj... yes</div><div>checking for location of External PROJ.4 data files... /Library/Frameworks/PROJ.framework/Resources/proj</div><div>checking for /Library/Frameworks/PROJ.framework/Resources/proj/epsg... yes</div><div>checking for nad2bin... /Library/Frameworks/PROJ.framework/Versions/Current/Programs//nad2bin</div><div>checking whether to use regex... yes</div><div>checking for location of regex includes... </div><div>checking for regex.h... yes</div><div>checking for location of regex library... </div><div>checking for regcomp... yes</div><div>checking whether to use Readline... no</div><div>checking whether to use GDAL... yes</div><div>checking for gdal-config... /Library/Frameworks/GDAL.framework/Programs/gdal-config</div><div>configure: error: *** Unable to locate GDAL library.</div></div><div><br></div><div><span style="line-height:normal"> </span><br><div><br></div><div><br></div><div>This is the last part of config.log:</div><div><br></div><div><div>configure:6036: checking whether to use GDAL</div><div>configure:6054: checking for gdal-config</div><div>configure:6116: gcc -o conftest -Os   -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/ -I/Library/Frameworks/GDAL.framework/Versions/1.11/Headers    -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/  conftest.c  -framework GDAL 1>&5</div><div>configure:6112:1: warning: ignoring return value of function declared with warn_unused_result attribute [-Wunused-result]</div><div>GDALOpen("foo", GA_ReadOnly);</div><div>^~~~~~~~ ~~~~~~~~~~~~~~~~~~</div><div>1 warning generated.</div><div>ld: framework not found GDAL</div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div>configure: failed program was:</div><div>#line 6109 "configure"</div><div>#include "confdefs.h"</div><div>#include <gdal.h></div><div>int main() {</div><div>GDALOpen("foo", GA_ReadOnly);</div><div>; return 0; }</div><div>configure:6132: gcc -o conftest -Os   -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/ -I/Library/Frameworks/GDAL.framework/Versions/1.11/Headers    -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/  conftest.c  -framework GDAL  1>&5</div><div>configure:6128:1: warning: ignoring return value of function declared with warn_unused_result attribute [-Wunused-result]</div><div>GDALOpen("foo", GA_ReadOnly);</div><div>^~~~~~~~ ~~~~~~~~~~~~~~~~~~</div><div>1 warning generated.</div><div>ld: framework not found GDAL</div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div>configure: failed program was:</div><div>#line 6125 "configure"</div><div>#include "confdefs.h"</div><div>#include <gdal.h></div><div>int main() {</div><div>GDALOpen("foo", GA_ReadOnly);</div><div>; return 0; }</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>looking for gdal-config:</div><div><div>which gdal-config</div><div>/Library/Frameworks/GDAL.framework/Programs/gdal-config</div></div><div><br></div><div>and for gdal.h:</div><div><div>locate gdal.h</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/docs/html/r.in.gdal.html</div><div>/Applications/GRASS-6.4.app/Contents/MacOS/docs/html/r.out.gdal.html</div><div>/Applications/GRASS-7.0.app/Contents/MacOS/docs/html/r.in.gdal.html</div><div>/Applications/GRASS-7.0.app/Contents/MacOS/docs/html/r.out.gdal.html</div><div>/Applications/QGIS.app/Contents/MacOS/grass/docs/html/r.in.gdal.html</div><div>/Applications/QGIS.app/Contents/MacOS/grass/docs/html/r.out.gdal.html</div><div>/Library/Frameworks/GDAL.framework/Versions/1.10/Headers/gdal.h</div><div>/Library/Frameworks/GDAL.framework/Versions/1.10/Resources/doc/gdal/java/org/gdal/gdal/gdal.html</div><div>/Library/Frameworks/GDAL.framework/Versions/1.11/Headers/gdal.h</div><div>/Library/Frameworks/GDAL.framework/Versions/1.11/Resources/doc/gdal/java/org/gdal/gdal/gdal.html</div></div><div><br></div><div><br></div><div><br></div><div>So it looks to me that configure is looking at the right place for gdal.h...</div><div><br></div><div>any ideas?</div><div><br></div><div>thanks</div><div><br></div><div>Carlos</div><div><br></div><div><br></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Prof. Carlos Henrique Grohmann<br>Institute of Energy and Environment - Univ. of São Paulo, Brazil<div>- Digital Terrain Analysis | GIS | Remote Sensing - </div><div><br></div><div><a href="http://carlosgrohmann.com/" target="_blank">http://carlosgrohmann.com</a></div><div><a href="http://orcid.org/0000-0001-5073-5572" style="font-size:13px;color:rgb(17,85,204);font-family:arial,sans-serif;background-color:rgb(255,255,255)" target="_blank">http://orcid.org/0000-0001-5073-5572</a><br><div>________________<br>Can’t stop the signal.</div></div></div></div>
</div></div>