[gdal-dev] Swig Java bindings GDAL 1.5 Windows

Nidel, Mike mike.nidel at lmco.com
Tue Jul 29 15:57:37 EDT 2008


I'm building GDAL 1.5 (from the branch) on both Linux and Windows. I
noticed a difference in the way swig is invoked between the GNUMakefile
and the makefile.vc. The result is java code that's slightly different
at first glance but vastly different when you run it (it leads to a
hotspot crash). I traced the problem to the "-nopgcpp" argument -- this
causes the signatures of the generated Java functions to change. The
flag is present in the linux build but not in the makefile.vc for the
windows build.

So in my own build I'm adding -nopgcpp to GDAL/swig/makefile.vc for each
of the java packages, but I wanted to see if, first of all, this makes
sense, and second of all, perhaps someone else might want to know about
this and make the same change in the baseline.

regards,

Mike


More information about the gdal-dev mailing list