[Gdal-dev] Trying the python bindings in windows

Ari Jolma ari.jolma at tkk.fi
Sat Sep 15 04:07:19 EDT 2007


I'm stuck trying to install the python bindings in windows. I've got the 
gdal.dll made in msys and the bindings hint at possibilities with mingw, 
but no luck:

c:\dev\gdal\swig\python>python setup.py build
running build
running build_py
running build_ext
error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible 
binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin 
installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.

c:\dev\gdal\swig\python>python setup.py -c mingw32 build
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: option -c not recognized

What are my options? http://trac.osgeo.org/gdal/wiki/GdalOgrInPython is 
not very helpful.

Ari

-- 
Prof. Ari Jolma
Geoinformaatio- ja paikannustekniikka / Geoinformation and positioning
Teknillinen Korkeakoulu / Helsinki University of Technology
tel: +358 9 451 3886 address: POBox 1200, 02015 TKK, Finland
Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma





More information about the Gdal-dev mailing list