[Gdal-dev] Re: Issue running Swig-Java gdalinfo

Daniel Siino drsiino at gmail.com
Mon Apr 16 12:33:33 EDT 2007


Hi,

Ok, I've found out what I was missing, thanks to a link in a previous post:

I've included the manifest to the ogrjni.dll by adding
mt -manifest ogrjni.dll.manifest -outputresource:ogrjni.dll;2
in the swig\java makefile.

Best regards,

Daniel


On 4/15/07, Daniel Siino <drsiino at gmail.com> wrote:
>
> Hi,
>
> I've build GDAL on Windows XP using nmake from VC++ 2005 express.
> I can run ogrinfo.exe without problems. However, after building the Java
> binding using Swig (swigwin-1.3.31), I ran the gdalinfo test class
> provided and got an error:
> Native library load failed.
> java.lang.UnsatisfiedLinkError: D:\ms4w\gdal\swig\java\gdaljni.dll: The
> specified procedure could not be found
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> org.gdal.gdal.gdalJNI.AllRegister ()V.
>
> I've searched the forum and looked at similar issues but was not able to
> correct it.
>
> The DLL is on my path and from the error message, it is being loaded.
> Is this an issue with the compiler messing up the name of the entry point
> by adding underscore?
> I've look at the dll using DependencyWalker  and this is what I see:
> _Java_org_gdal_gdal_gdalJNI_AllRegister at 8
>
> Is this correct?
>
> As a side question, is the MITab format supported through the Swig Java
> binding?
>
> Regards,
>
> Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070416/6cbbdc5a/attachment.html


More information about the Gdal-dev mailing list