[gdal-dev] Compile GDAL with swig(Java) on MAC OS X
Even Rouault
even.rouault at mines-paris.org
Tue Dec 6 05:40:51 EST 2011
Dennis,
>
> This works well so far, but the libgdaljni.dylib is directly linked to
> libgdal in the base Folder. So, if copy my program to another location,
> I will get a UnsatisfiedLinkError.
Yes, both libs must be accessible through the java.library.path property (or in
a system library directory, or in LD_LIBRARY_PATH if this works on MacOSX)
>
> Interestingly, I've done it once. the libgdaljni.dylib was much
> bigger(~16mb) and it worked without dependency problems.
> Unfortunately I have no idea how I did it !
Sounds like your libgdaljni.dylib was linked against a static version
of libgdal.
Best regards,
Even
More information about the gdal-dev
mailing list