[Gdal-dev] Java and the build environment

Simon Perkins sy at perkins.net
Sun Apr 22 23:55:54 EDT 2007


Andrea Aime wrote:
> I also tried with Microsoft Visual C++ Express 2005 + windows sdk + 
> atl fixes I grabbed on a random internet page.
> Gdal builds and all the gdal* apps, as well as the ogr* apps do work. 
> Swig bindings to build. But for the life of me, I cannot make JNI load
> the resulting libraries, it always complains about missing dependent
> libraries. I tried using Dependency Walker to figure out the missing
> ones and copied them right besides the gdal/ogr ones, and in the end
> I was missing only the delay load library that makes up the Vista UI
> (which of course I don't have on Windows) without luck, the error
> was always the same.

It's sometimes surprisingly hard to track down missing dependency 
libraries, and often Dependency Walker will give misleading results.

I would tend to suspect the C++ runtime libraries as the missing 
component. If you can, find the C++ library suite that lives in 
C:\Program Files\Microsoft Visual Studio 
8\VC\redist\x86\Microsoft.VC80.CRT\, and put a copy of that directory 
and its contents in your application folder. Only thing is, VS Express 
might not have this package, so, find someone with standard or 
professional and get it from them. If you're still stuck, let me know 
and I'll send you a zip file (I'd post it here, but the zip file will be 
several MB).


Cheers,

Sy




More information about the Gdal-dev mailing list