[GRASS-dev] grass compilation problem on mac

Anna Petrášová kratochanna at gmail.com
Thu Mar 12 10:44:31 PDT 2015


Hi,

I am trying to compile grass on a fresh mac (yosemite) and the configure
fails with

checking for gdal-config...
/Library/Frameworks/GDAL.Framework/Versions/1.11/Programs/gdal-config

configure: error: *** Unable to locate GDAL library.


and this is the configure log:

configure:6036: checking whether to use GDAL
configure:6054: checking for gdal-config
configure:6116: gcc -o conftest -g -O2   -arch i386 -arch x86_64
-I/Library/Frameworks/GDAL.framework/Versions/1.11/Headers    -arch i386
-arch x86_64  conftest.c  -framework GDAL 1>&5
configure:6112:1: warning: ignoring return value of function declared with
warn_unused_result attribute [-Wunused-result]
GDALOpen("foo", GA_ReadOnly);
^~~~~~~~ ~~~~~~~~~~~~~~~~~~
1 warning generated.
ld: framework not found GDAL
configure:6112:1: warning: ignoring return value of function declared with
warn_unused_result attribute [-Wunused-result]
GDALOpen("foo", GA_ReadOnly);
^~~~~~~~ ~~~~~~~~~~~~~~~~~~
1 warning generated.
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
configure: failed program was:
#line 6109 "configure"
#include "confdefs.h"
#include <gdal.h>
int main() {
GDALOpen("foo", GA_ReadOnly);
; return 0; }
configure:6132: gcc -o conftest -g -O2   -arch i386 -arch x86_64
-I/Library/Frameworks/GDAL.framework/Versions/1.11/Headers    -arch i386
-arch x86_64  conftest.c  -framework GDAL  1>&5
configure:6128:1: warning: ignoring return value of function declared with
warn_unused_result attribute [-Wunused-result]
GDALOpen("foo", GA_ReadOnly);
^~~~~~~~ ~~~~~~~~~~~~~~~~~~
1 warning generated.
ld: framework not found GDAL
configure:6128:1: warning: ignoring return value of function declared with
warn_unused_result attribute [-Wunused-result]
GDALOpen("foo", GA_ReadOnly);
^~~~~~~~ ~~~~~~~~~~~~~~~~~~
1 warning generated.
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
configure: failed program was:
#line 6125 "configure"
#include "confdefs.h"
#include <gdal.h>
int main() {
GDALOpen("foo", GA_ReadOnly);
; return 0; }


I installed the GDAL framework from Michael's page and then from William's
too. Nothing really helped.

Any idea? I was able to compile grass couple of months ago without problem
on a different computer so I don't know why it doesn't work now.

Thanks,

Anna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150312/40c6c912/attachment.html>


More information about the grass-dev mailing list