[GRASS-dev] GRASS won't compile - can't 'find' gdal

William Kyngesburye woklist at kyngchaos.com
Mon Jan 19 10:11:59 EST 2009


On Jan 19, 2009, at 3:03 AM, Andreas Hörsken wrote:

> gcc -o conftest -g -O2  -I/Library/Frameworks/GDAL.framework/ 
> Versions/1.5/Headers    conftest.c  -L/Library/Frameworks/ 
> GDAL.framework/Versions/1.5/unix/lib -lgdal  1>&5
> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning can't open  
> dynamic library: @loader_path/Libraries/libogdi.dylib referenced  
> from: /Library/Frameworks/GDAL.framework/Versions/1.5/unix/lib/ 
> libgdal.dylib (checking for undefined symbols may be affected) (No  
> such file or directory, errno = 2)
> ...
>
> So there are problems with loading other libraries (not the gdal- 
> library).
> Has someone an idea why this goes wrong? I installed all frameworks  
> needed from http://www.kyngchaos.com/software:grass/
>
Which exact version of the GDAL framework do you have installed?

Does "gdalinfo --formats" work in a Terminal?

Try these exports before running configure:

export CFLAGS=-Os
export CXXFLAGS=-Os

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Time is an illusion - lunchtime doubly so."

- Ford Prefect




More information about the grass-dev mailing list