[Gdal-dev] recent compile on cygwin?

Matt Wilkie matt.wilkie at gov.yk.ca
Thu Nov 15 13:43:21 EST 2007


Hello all,

Some time ago I was able to compile gdal on cygwin out of the box. Today 
  it seems it's not so straightforward anymore. Has anyone else done so 
lately? Any tips to share?

the error I'm running into at the moment is "cpl_port.h: No such file or 
directory". That file does exist in the gdal/port directory. Perhaps I 
need another one somewhere else too?

$ configure --without-expat
...snip...
$ make
...snip...
(cd port; make)
make[1]: Entering directory `/cygdrive/d/src/gdal-trunk/port'
make[1]: Nothing to be done for `default'.
make[1]: Leaving directory `/cygdrive/d/src/gdal-trunk/port'
(cd gcore; make)
make[1]: Entering directory `/cygdrive/d/src/gdal-trunk/gcore'
/bin/sh /d/src/gdal-trunk/libtool --mode=compile --tag=CXX g++ 
-DHAVE_MITAB -Wal
l  -O2   -I/d/src/gdal-trunk/port -I/d/src/gdal-trunk/gcore 
-I/d/src/gdal-trunk/
alg -I/d/src/gdal-trunk/ogr -I/d/src/gdal-trunk/ogr/ogrsf_frmts 
-DOGR_ENABLED -I
/d/src/gdal-trunk/port  -DPAM_ENABLED -c -o gdalopeninfo.o gdalopeninfo.cpp
libtool: compile:  g++ -DHAVE_MITAB -Wall -O2 -I/d/src/gdal-trunk/port 
-I/d/src/
gdal-trunk/gcore -I/d/src/gdal-trunk/alg -I/d/src/gdal-trunk/ogr 
-I/d/src/gdal-t
runk/ogr/ogrsf_frmts -DOGR_ENABLED -I/d/src/gdal-trunk/port 
-DPAM_ENABLED -c gda
lopeninfo.cpp  -DDLL_EXPORT -DPIC -o .libs/gdalopeninfo.o
In file included from gdal_priv.h:50,
                  from gdalopeninfo.cpp:30:
gdal.h:40:22: cpl_port.h: No such file or directory
gdal.h:41:23: cpl_error.h: No such file or directory
In file included from gdal_priv.h:50,
                  from gdalopeninfo.cpp:30:
gdal.h:50: error: expected constructor, destructor, or type conversion 
before
....etc.



thanks,

-- 
matt wilkie
--------------------------------------------
Geographic Information,
Information Management and Technology,
Yukon Department of Environment
10 Burns Road * Whitehorse, Yukon * Y1A 4Y9
867-667-8133 Tel * 867-393-7003 Fax
http://environmentyukon.gov.yk.ca/geomatics/
--------------------------------------------




More information about the gdal-dev mailing list