[Gdal-dev] GDAL Python bindings on Cygwin

Jose Luis Gomez Dans josegomez at gmx.net
Wed Feb 22 04:08:24 EST 2006


Hi!

I just compiled GDAL 1.3.1 on cygwin. Up to now, 1.3.0 worked fine, and I
could use the library from Python and from C programs. Now, at some point,
the cygwin setup program updated python to version 2.4.1 (from python -V),
and gdal stopped working. I compiled the 1.3.1 version of the library (and
1.3.0, for that matter) , and still no luck. Here's a snippet of what
happens:
$ python
Python 2.4.1 (#1, May 27 2005, 18:02:40) 
[GCC 3.3.3 (cygwin special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
 import gdal
Segmentation fault (core dumped)

Importing GDAL results in a bad crash. Part of the config.log that deals
with python:

checking for NG SWIG python bindings
 result: enabled
checking for python
 found /usr/bin/python
result: 
 checking where python Makefiles are
result: found
checking Python makefile
result: found
checking where .py files should go
result: /usr/lib/python2.4/site-packages
checking for python headers
result: found
checking definitions from Python makefile
result: done
checking for special pymod link hacks
result: default
checking for NumPy include files
result: found
checking if local/include already standard
result: no, everything is ok
creating ./config.status"
[...]
 PYTHON='python'
PYTHON_CC='gcc'
PYTHON_CFLAGS=' $(OPT)'
PYTHON_INCLUDES='-I/usr/include/python2.4 -I/usr/include/python2.4'
PYTHON_LIBS='-L/usr/lib/python2.4/config -lpython2.4.dll'
PYTHON_LINK='gcc -shared -Wl,--enable-auto-image-base -o $@'
PYTHON_OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes'
PYTHON_SO='.dll'
PY_LD_SHARED='$(LD_SHARED)'
PY_SO_EXT='$(SO_EXT)'

As you can see, it all appears normal. My compiler is GCC 3.4.4, and the
different unames are:

uname -m = i686
uname -r = 1.5.19(0.150/4/2)
uname -s = CYGWIN_NT-5.0
uname -v = 2006-01-20 13:28

I'm a bit lost, as I don't really know how to tackle this one. Can anyone
suggest anything?

Many thanks!
Jose

-- 
Telefonieren Sie schon oder sparen Sie noch?
NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie



More information about the Gdal-dev mailing list