[Gdal-dev] Building GDAL by MinGW
Hisaji Ono
hi_ono2001 at ybb.ne.jp
Mon Aug 25 15:12:11 EDT 2003
Hi.
>
gcc -I/home/Administrator/gdal-cvs-030825/port -I/home/Administrator/gdal-cv
> s-03
>
0825/gcore -I/home/Administrator/gdal-cvs-030825/ogr -I/home/Administrator/g
> dal-
> cvs-030825/frmts -I/home/Administrator/gdal-cvs-030825/alg -c -Wall -O2
> gdal
> info.c -o gdalinfo.o
> gdalinfo.c:116:18: gdal.h: No such file or directory
> gdalinfo.c:117:25: ogr_srs_api.h: No such file or directory
> gdalinfo.c:118:24: cpl_string.h: No such file or directory
> gdalinfo.c:120: parse error before string constant
I've modified GNUMakefile as follows and could build GDAL at last. MinGW's
gcc seems not to like specifying fullpaths.
#INCLUDE = $(GDAL_INCLUDE) -I$(GDAL_ROOT)/frmts -I$(GDAL_ROOT)/alg
INCLUDE = -I../port -I../gcore -I../ogr -I../frmts -I../alg
-------------------------------------------------------------
CONFIG_LIBS = -L../ -lgdal.1.1 -lm -lm
Thanks.
More information about the Gdal-dev
mailing list