Hi guys. <br>I have some problems using GDAL java bindings on linux.<br><br>I'm using Fedora Core 6.<br>I downloaded GDAL from SVN, TAG 1.4.2.<br>I added MrSID support and I built GDAL. (I downloaded the GeoDSDK from Lizardtech, version
6.0.7.1047, for linux x86.gcc34)<br><br>It works fine... I can successfully use gdalinfo with a MrSID file sample.<br><br>The GDAL/.libs folder contains 3 files: libgdal.so.1.11.2, libgdal.so and libgdal.so.1 (last 2 are symbolic links)
<br>Next step is building Java Binding through SWIG.<br><br>I launched:<br>cd swig<br>gmake<br>cd java<br>gmake<br><br>I built the 4 .so (libgdaljni.so, libgdalconstjni.so, libogrjni.so and libosrjni.so) without any error.
<br><br>Then, I put all .SO and Lizardtech lib in java/JDKversion/jre/lib/i386 and launched eclipse.<br>I written a little section of code which uses GDAL and I received the error in the attached file.<br>
<br>Since I'm not an expert Linux user, I'm surely doing some wrong things.<br><br>Somewhere, I read that I would have to build GDAL with the same version of GCC used to build the MrSID lib provided by lizardtech.
<br>Fedoracore6
uses GCC 4.1.1 but, checking some forums, I think that this error is
unrelated with the gcc version but is simply an error due to a wrong
use of the .so.<br><br>As my last recent attempt, I built GDAL without MrSID support and tried the GDALTest java application available in gdal/swig/java but I received the same error.<br>The strange thing is that GDALTest successfully call
gdal.AllRegister() as well as gdal.getDriverCount() and similar things. <br>Furthermore, I open a BMP file and I successfully obtain a Dataset instance (Not null). <br>The error occurs when the code does: dataset.getDriver
()<br><br>So, I'm pretty sure I'm wrong in the use of the .SO.
<br>Any suggestion/question to help me solving my problems?<br><br>Thank you very much.<br><br clear="all"><br>-- <br>Best Regards,<br>Daniele Romagnoli