我有些怀疑:
用例:
A static library containing a global variable, static variable, a function
and a class defined
A shared library uses these and hence they are part of the same.
A executable program also uses the same and they are part of the same.
The executable loads the shared library
我在OpenCV linux版本上做了一个cmake,它创建了所有所需的共享对象(库)。我甚至能够使用这些库调用示例OpenCV程序,在我的系统上使用JNI调用Java。它在跑。但是,当我试图在Hadoop中加载libhighgui.so.2.0时,使用
System.load("path/to/libhighgui.so.2.0");
我知道错误:
UnsatisfiedLinkError:/path/to/libhighgui.so.2.0: libjpeg.so.62: cannot
open shared object file: No such file or dir