igorcoroli / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Wrong buid for javacv-0.4-bin.zip #289

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
On Fedora 18, x86_64

Java 1.7.15 applet

With javacv 0.4 I get this error:

java.lang.UnsatisfiedLinkError: /tmp/libjniopencv_core3442316206027896605.so: 
libopencv_core.so.2.3: impossibile aprire il file oggetto condiviso: File o 
directory non esistente
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
    at java.lang.Runtime.load0(Runtime.java:792)
    at java.lang.System.load(System.java:1059)
    at com.googlecode.javacpp.Loader.load(Loader.java:352)
    at com.googlecode.javacpp.Loader.load(Loader.java:285)
    at com.googlecode.javacv.cpp.opencv_core.<clinit>(opencv_core.java:136)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:188)

Output of "ldd libjniopencv_core.so" extracted from javacv-linux-x86-64.jar

    linux-vdso.so.1 =>  (0x00007fffc2ffe000)
    libopencv_core.so.2.3 => not found
    libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fc9f97c8000)
    libm.so.6 => /lib64/libm.so.6 (0x00007fc9f94c7000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fc9f92b1000)
    libc.so.6 => /lib64/libc.so.6 (0x00007fc9f8ef8000)
    /lib64/ld-linux-x86-64.so.2 (0x00000034ada00000)

libjniopencv_core.so references libopencv_core.so.2.3 instead of 
libopencv_core.so.2.4

Original issue reported on code.google.com by davide.c...@gmail.com on 6 Mar 2013 at 2:36

GoogleCodeExporter commented 8 years ago
That's strange.. Must be a bug in newer versions of GCC. Stranger is that I get 
no errors at runtime. Anyway, thanks for reporting! Will fix

Original comment by samuel.a...@gmail.com on 7 Mar 2013 at 1:36

GoogleCodeExporter commented 8 years ago
Hum, can you give me the exact URL where you downloaded your 
javacv-0.4-bin.zip? I've just downloaded this one: 
http://javacv.googlecode.com/files/javacv-0.4-bin.zip

And this is the output I get from ldd:

$ unzip javacv-0.4-bin.zip
$ cd javacv-bin/
$ unzip javacv-linux-x86.jar
$ unzip javacv-linux-x86_64.jar 
$ ldd  com/googlecode/javacv/cpp/linux-x86/libjniopencv_core.so 
    linux-gate.so.1 =>  (0xf778a000)
    libopencv_core.so.2.4 => /usr/local/lib/libopencv_core.so.2.4 (0xf7494000)
    libstdc++.so.6 => /lib/libstdc++.so.6 (0xf737f000)
    libm.so.6 => /lib/libm.so.6 (0xf7354000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xf7337000)
    libc.so.6 => /lib/libc.so.6 (0xf7184000)
    libdl.so.2 => /lib/libdl.so.2 (0xf717f000)
    libpthread.so.0 => /lib/libpthread.so.0 (0xf7165000)
    librt.so.1 => /lib/librt.so.1 (0xf715c000)
    libtbb.so => /lib/libtbb.so (0xf7131000)
    /lib/ld-linux.so.2 (0x4ab77000)
$ $ ldd com/googlecode/javacv/cpp/linux-x86_64/libjniopencv_core.so 
    linux-vdso.so.1 =>  (0x00007fff676cf000)
    libjvm.so => /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/jre/lib/amd64/server/libjvm.so (0x00007f6ef5301000)
    libopencv_core.so.2.4 => /usr/local/lib64/libopencv_core.so.2.4 (0x00007f6ef4ea7000)
    libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f6ef4b78000)
    libm.so.6 => /lib64/libm.so.6 (0x00007f6ef487d000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f6ef4667000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f6ef42b0000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007f6ef40ac000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f6ef3e8f000)
    librt.so.1 => /lib64/librt.so.1 (0x00007f6ef3c87000)
    libtbb.so => /lib64/libtbb.so (0x00007f6ef3a5a000)
    /lib64/ld-linux-x86-64.so.2 (0x0000003033800000)

Looks alright to me. Do you see anything wrong?

Original comment by samuel.a...@gmail.com on 9 Mar 2013 at 6:24

GoogleCodeExporter commented 8 years ago
No, you are right. I had wrong permission on a directory and so I deployed a 
mixed release. Sorry.

Original comment by davide.c...@gmail.com on 11 Mar 2013 at 9:36

GoogleCodeExporter commented 8 years ago
Great! One less issue :)

Original comment by samuel.a...@gmail.com on 12 Mar 2013 at 6:39