[Gdal-dev] recent compile on cygwin?

Frank Warmerdam warmerdam at pobox.com
Thu Nov 15 14:24:58 EST 2007


Matt Wilkie wrote:
> 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

Matt,

Does cpl_port.h exist in /d/src/gdal-trunk/port?  If so, it is quite
unclear to me why the above compile command wouldn't have found it.

I will concede I have not tried a cygwin build of GDAL in a while.  It
is my intention that we continue to build properly on cygwin.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the gdal-dev mailing list