[Gdal-dev] Compiling gdal with MinGW/MSYS?

Thom DeCarlo t.r.decarlo at larc.nasa.gov
Wed May 11 09:42:35 EDT 2005


Thanks Norman,
I figured you had already worked this out. Being stuck halfway between
Windoze and Linux is a real chore.

Thom
--
Thom DeCarlo
--------------------------------------------------------
      Any sufficiently advanced technology
    is indistinguishable from a rigged demo.



> -----Original Message-----
> From: Norman Vine [mailto:nhv at cape.com]
> Sent: Wednesday, May 11, 2005 9:42 AM
> To: Thom DeCarlo; Gdal-Dev at Remotesensing.Org
> Subject: RE: [Gdal-dev] Compiling gdal with MinGW/MSYS?
> 
> Thom DeCarlo writes:
> >
> > Hi,
> > I'm trying for the first time to compile gdal with MinGW under Win2K. I
> > think I've got all the required MinGW packages, but the build is failing
> > with these messages:
> >
> >
> > make[1]: Entering directory `/s/OSG/gdal/port'
> > /bin/sh.exe ../libtool --mode=compile g++ -Wall  -O2    -I../port  -c -o
> > cpl_vsil_unix_stdio_64.o cpl_vsil_unix_stdio_64.cpp
> >   g++ -Wall -O2 -I../port -c cpl_vsil_unix_stdio_64.cpp  -DDLL_EXPORT
> > -DPIC -o .libs/cpl_vsil_unix_stdio_64.o
> > cpl_vsil_unix_stdio_64.cpp: In function `int VSIStat(const char*,
> > VSIStatBuf*)':
> > cpl_vsil_unix_stdio_64.cpp:175: error: `stat64' undeclared (first use
> > this function)
> > cpl_vsil_unix_stdio_64.cpp:175: error: (Each undeclared identifier is
> > reported only once for each function it appears in.)
> > make[1]: *** [cpl_vsil_unix_stdio_64.o] Error 1
> > make[1]: Leaving directory `/s/OSG/gdal/port'
> > make: *** [port-target] Error 2
> >
> > I suspect I'm missing something in the include path, but I thought the
> > ./configure should have picked up all the appropriate stuff.
> >
> > Can anyone give me more info about the proper setup of mingw for gdal?
> 
> Hi Thom
> 
> I had a similar problem and don't really know the correct way to fix this
> but ...
> 
> I just hand edited my cpl_config.h as attached and things seem to work OK
> 
> You will probably want to edit this line to reflect what is in your
> current file
> This is what --prefix=WAS_SET_TO in your configure
> 
> /* --prefix directory for GDAL install */
> #define GDAL_PREFIX "/usr/mingw"
> 
> HTH
> 
> Norman




More information about the Gdal-dev mailing list