-DBUILD_SHARED_LIBS=OFF but cv2.so library still linked dynamically. (Bug #3107)
Description
Hello,
I built OpenCV as instructed on http://docs.opencv.org/doc/tutorials/introduction/desktop_java/java_dev_intro.html. On the page, it says "When OpenCV is built as a set of static libraries (-DBUILD_SHARED_LIBS=OFF option) the Java bindings dynamic library is all-sufficient, i.e. doesn’t depend on other OpenCV libs, but includes all the OpenCV code inside." and "Besides all this will create a jar containing the Java interface (bin/opencv-244.jar) and a native dynamic library containing Java bindings and all the OpenCV stuff (lib/libopencv_java244.so or bin/Release/opencv_java244.dll respectively).". In reality, however, the file libopencv_java245.so links to cv2.so dynamically.
[echo@apollo abV1.1]$ ldd external/libopencv_java245.so linux-vdso.so.1 => (0x00007fffc190a000) cv2.so => not found libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f61cfa1c000) ...
Associated revisions
Merge pull request #3107 from vpisarev:fixed_win_build
History
Updated by Kirill Kornyakov over 11 years ago
- Assignee set to Andrey Pavlenko
- Category set to java bindings
- Operating System set to Linux
- HW Platform set to x64
Updated by Andrey Pavlenko almost 11 years ago
Fixed in 2.4.8.
- Target version set to 2.4.9
- Affected version changed from 2.4.5 (latest release) to 2.4.0 - 2.4.7
- Status changed from Open to Done