sawpawan / javacv

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

Problems while running javacv on ubuntu #297

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

running javacv 0.4 code on Debian 6.0 gives me the following output

Exception in thread "main" java.lang.UnsatisfiedLinkError: 
/tmp/javacpp3719911886549/libjniopencv_core.so: /lib/libc.so.6: version 
`GLIBC_2.14' not found (required by 
/tmp/javacpp3719911886549/libjniopencv_core.so)

Has someone an idea what could solve this issue? By googling I found out that 
this error may appear if libraries have been compiled with a newer/older 
version of glibc. As I am a Linux-noob and do not even know what that glibc 
library is, I hoped that rebuilding the JNI interfaces of JavaCV would fix that 
issue. The problem is that I do not know how to build them as there are no docs 
about that. 
I downloaded the sources from the downloads section but I have no idea how to 
build it. Can someone give me any suggestion? I hope that I can solve my 
problem by building from scratch.

Thank you

Original issue reported on code.google.com by jscheinm...@googlemail.com on 30 Mar 2013 at 12:36

GoogleCodeExporter commented 8 years ago
I was able to build with maven, however I get this error right after the 
jniopencv_calib3d.cpp build :(:

[INFO] Error for project: JavaCV (during package)
[INFO] ------------------------------------------------------------------------
[INFO] Command execution failed.

Embedded error: Process exited with an error: 137(Exit value: 137)

Original comment by jscheinm...@googlemail.com on 30 Mar 2013 at 5:50

GoogleCodeExporter commented 8 years ago
OK finally I was able to manage the compilation process...but even with the 
fresh compiled sources same error appears:
`GLIBC_2.14' not found

Now I'm stuck, how comes that he is asking me for a newer version of glibc 
although I have built it with my version which is 2.11 I guess:
ii  klibc-utils                          1.5.20-1+squeeze1            small 
util                                          ities built with klibc for early 
boot
ii  libc-bin                             2.11.3-4                     Embedded 
G                                          NU C Library: Binaries
ii  libc-dev-bin                         2.11.3-4                     Embedded 
G                                          NU C Library: Development binaries
ii  libc6                                2.11.3-4                     Embedded 
G                                          NU C Library: Shared libraries
ii  libc6-dev                            2.11.3-4                     Embedded 
G 

Original comment by jscheinm...@googlemail.com on 31 Mar 2013 at 7:37

GoogleCodeExporter commented 8 years ago
That just means you haven't recompiled everything... Make sure to rebuild both 
OpenCV (cmake & make install), and JavaCPP + JavaCV (mvn install).

And please post your questions on the mailing list next time, thank you!

Original comment by samuel.a...@gmail.com on 31 Mar 2013 at 11:47