[gdal-dev] GDAL with mdb support on Ubuntu 12.04

Luca Casagrande luca.casagrande at gmail.com
Sun May 27 14:23:58 PDT 2012


Il 27/05/2012 23:13, Even Rouault ha scritto:
> Selon Luca Casagrande<luca.casagrande at gmail.com>:
>
>> Hello everybody,
>> I can't find a way to enable support for mdb on my Ubuntu 12.04.
>> Gdal version is 1.9.1, Java is OpenJDK 7 and this is an extract from
>> configure:
>>
>> --with-java=yes --with-mdb=yes
>> --with-jvm-lib=/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/
>>
>> This is the error:
>> checking whether we should include Java support... yes
>> checking whether we should include MDB support... checking for
>> JNI_CreateJavaVM in -ljvm... no
>> configure: error: "--with-jvm-lib must point to a directory with a libjvm."
>>
>> luca at scummbar:~$ locate libjvm.so
>> /usr/lib/jvm/java-1.5.0-gcj-4.6/lib/libjvm.so
>> /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/cacao/libjvm.so
>> /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/jamvm/libjvm.so
>> /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server/libjvm.so
>> /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/cacao/libjvm.so
>> /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/jamvm/libjvm.so
>> /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so
>> /usr/lib/x86_64-linux-gnu/gcj-4.6-12/libjvm.so
>>
>> Any idea?
>>
>
> I don't see anything wrong, and sometimes ago I did test on a Ubuntu 12.04 VM to
> make the necessary changes to support the new paths. I'm not sure if I tested
> setting --with-jvm-lib= . You could perhaps try removing it, since ./configure
> should autodetect it on that OS.
>
> I'll test again once I have access to that VM.

If I try without it, I have got this error message:

--with-java=yes --with-mdb=yes

configure: error: "--with-jvm-lib must be specified."

Thanks for the help!

L.


More information about the gdal-dev mailing list