[Gdal-dev] recent compile on cygwin?

Mateusz Loskot mateusz at loskot.net
Thu Nov 15 15:22:06 EST 2007


Matt,

I'm sorry but I've misinform you the cpl_port.h is generated by
./configure. I mistaken the cpl_port.h as with cpl_config.h file which
is generated by configure.

Sorry for confusing.

-- Mateusz

Frank Warmerdam wrote:
> 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,


-- 
Mateusz Loskot
http://mateusz.loskot.net



More information about the gdal-dev mailing list