[GRASS-dev] grass6_devel, problems to find gdal library

Yann Chemin yann.chemin at gmail.com
Fri Jul 4 20:56:08 EDT 2008


config.log
-------------
configure:7599: checking whether to use GDAL
configure:7612: checking for gdal-config
configure:7677: gcc -o conftest -g -O2    -Wl,--export-dynamic
conftest.c  -L/usr/lib -lgdal1.5.0 1>&5
configure:7671:18: error: gdal.h: No such file or directory
configure: In function 'main':
configure:7673: error: 'GA_ReadOnly' undeclared (first use in this function)
configure:7673: error: (Each undeclared identifier is reported only once
configure:7673: error: for each function it appears in.)
configure: failed program was:
#line 7670 "configure"
#include "confdefs.h"
#include <gdal.h>
int main() {
GDALOpen("foo", GA_ReadOnly);
; return 0; }
configure:7693: gcc -o conftest -g -O2    -Wl,--export-dynamic
conftest.c  -L/usr/lib -lgdal1.5.0 -L/usr/lib -lgeos_c -I/usr/include
-lsqlite3 -lodbc -lodbcinst -L/usr/lib -lexpat -L/usr/lib -lxerces-c
-lpthread -ljasper -lhdf5 -lmfhdf -ldf -logdi -lgif -ljpeg -ltiff
-lpng -lnetcdf -lpq -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl -lcurl
-L/usr/lib/mysql -lmysqlclient 1>&5
configure:7687:18: error: gdal.h: No such file or directory
configure: In function 'main':
configure:7689: error: 'GA_ReadOnly' undeclared (first use in this function)
configure:7689: error: (Each undeclared identifier is reported only once
configure:7689: error: for each function it appears in.)
configure: failed program was:
#line 7686 "configure"
#include "confdefs.h"
#include <gdal.h>
int main() {
GDALOpen("foo", GA_ReadOnly);
; return 0; }


locate gdal.h returns: /usr/include/gdal/gdal.h

Added in configure options:
--with-includes=/usr/include/gdal

and it compiled properly
Thanks Glynn
Yann


2008/7/5 Glynn Clements <glynn at gclements.plus.com>:
>
> Massimo Di Stefano wrote:
>
>> i'm tring to update grass from svn, on osx .
>>
>> the configure find gdal-config
>> but fail to find gdal libraries
>> ....
>> .....
>> ......
>> checking for location of JPEG includes... /Library/Frameworks/
>> UnixImageIO.framework/unix/include
>> checking for jpeglib.h... yes
>> checking for location of JPEG library... /Library/Frameworks/
>> UnixImageIO.framework/unix/lib
>> checking for jpeg_start_compress in -ljpeg... yes
>> checking whether to use GDAL... yes
>> checking for gdal-config... /Library/Frameworks/GDAL.framework/
>> Programs/gdal-config
>> configure: error: *** Unable to locate GDAL library.
>
> Look in config.log for the command which fails and any error messages
> which it generates.
>
> --
> Glynn Clements <glynn at gclements.plus.com>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>



-- 
Yann Chemin
International Rice Research Institute
Office: http://www.irri.org/gis
Perso: http://www.freewebs.com/ychemin


More information about the grass-dev mailing list