[Gdal-dev] Compling GDAL 1.3.1 in MinGW
Pete Nagy
Peter.Nagy at vexcel.com
Fri Dec 9 16:41:44 EST 2005
I was able to build gdal c libs with mingw using cygwin bash shells with a
few tweaks. But, if you're planning on using python, you may encounter
problems with your mingw-built gdal, if you're using the precompiled
windows binaries for python. This is because the python wants to link
with the newer MSVCR71.dll instead of the older MSVCRT.dll that mingw
uses. I believe you would need to try the version of python built with
mingw (which I didn't do, I went ahead and built gdal with MSVC6 instead,
since the rest of my mingw project works fine with the MSVC6-built gdal).
-> Pete
--------------------------------------------------------------------
====================================================================
Pete Nagy tel: (303) 583-0248
Vexcel Corporation fax: (303) 583-0246
http://www.vexcel.com home: (303) 823-2336
====================================================================
On Fri, 9 Dec 2005, Mike Leahy wrote:
> Frank,
>
> Thanks - that did the trick.
>
> This leads me to a more general question: would I be better off if I
> were to use Cygwin instead of MinGW/MSYS for compiling code on Win32?
> It's been a while for me, but I seem to recall that Cygwin uses bash...
>
> Thanks again,
> Mike
>
> Frank Warmerdam wrote:
> > On 12/8/05, Mike Leahy <mgleahy at golden.net> wrote:
> >> Ok, without sqlite, I get a new error:
> >>
> >> (cd .libs && rm -f libgdal.la && ln -s ../libgdal.la libgdal.la)
> >> make[1]: Leaving directory `/Downloads/gdal-1.3.1'
> >> (cd swig; make build)
> >> make[1]: Entering directory `/Downloads/gdal-1.3.1/swig'
> >> for dir in ; do (cd $dir; make build ); done
> >> /bin/sh.exe: -c: line 1: syntax error near unexpected token `;'
> >> /bin/sh.exe: -c: line 1: `for dir in ; do (cd $dir; make build ); done'
> >> make[1]: *** [build] Error 2
> >> make[1]: Leaving directory `/Downloads/gdal-1.3.1/swig'
> >> make: *** [swig-target] Error 2
> >
> > Mike,
> >
> > This is a known problem with GDAL 1.3.1 on non-bash
> > based systems. You will need to comment out the swig
> > related stuff in the GDAL GNUmakefile. It will be fixed
> > in 1.3.2.
> >
> > 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 | Geospatial Programmer for Rent
> >
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
>
More information about the Gdal-dev
mailing list