[osgeo4w-dev] Problems in using Perl wrappers with osgeo4w distro
ari.jolma at tkk.fi
Sun Mar 16 12:15:00 EDT 2008
I'm able to build Perl wrappers from GDAL 1.5 against the latest osgeo4w
binary release. I use MinGW (g++ is 3.4.5 with which my perl 5.10 is
also built). The link library is gdal_i.lib - it just needs to be
renamed to gdal.dll.a for perl to find and use it.
The module loads ok, and calls some functions ok from gdal15.ddl but
fails when calling CPLError. Debugging the ogr_wrap.cpp I see that
OGR_G_CreateFromWkb is called ok (but it returns deliberately an error),
OGRErrMessages(err) gives me correct error message, but then calling
CPLError(CE_Failure, err, "%s", OGRErrMessages(err)); never returns and
Windows pops up the "has encountered a problem" dialog. gdb says that
there is a Segmentation fault and the stack looks corrupt.
I wonder what could be the problem and how to even study what's the real
With what compiler is gdal15.dll built?
Prof. Ari Jolma
Geoinformatiikka / Geoinformatics
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 osgeo4w-dev