[Gdal-dev] Compiling ogr/gdal on win32 using MingW

Woon Wei Lee wlwoon at must.edu.my
Thu Jul 15 13:53:06 EDT 2004


Dear all

Thanks for all the hints. I'd never heard of MSys before this but it rocks!! Also, think it works with cross compiling as well (I didn't know to use "-host=mingw32" before this -> tried with host=win32, win9x, windows, etc etc, without any luck)

In case anyone is coding in C like i was (I was using the C API): I had a million undefined symbols when compiling (this doesn't occur normally because it is dynamically linked under the usual configuration) - the simple fix was to compile to object files with gcc, then proceed using g++... 

Cheers
Wei Lee



On Wed, 14 Jul 2004 11:35:14 -0400
"Norman Vine" <nhv at cape.com> wrote:

> Norman Vine writes:
> > 
> > or do as I do and install a MingW tree inside of Cygwin
> > 
> > i.e.  I have established my MingW root at /usr/mingw
> > and install mingw files under it
> > 
> > then  # mingw make doesn't understand Unix filenames
> > % cp /bin/make.exe to /usr/mingw/bin
> > 
> > and when I configure a MingW build I use
> > 
> > ./configure --prefix=/usr/mingw --host=mingw32
> 
> OF course you need to insure that 
> 
> Of course when using MingW like this you have to setup your path
> appropriately too
> 
> i.e.
> % export PATH="/usr/mingw/bin:$PATH"
> 
> HTH
> 
> Norman
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at xserve.flids.com
> http://xserve.flids.com/mailman/listinfo/gdal-dev
> 



More information about the Gdal-dev mailing list