從http://docs.opencv.org/2.4.4-beta/doc/tutorials/introduction/desktop_java/java_dev_intro.html下面的指令,我遇到了這一點:OpenCV的建設與Java支持在Mac OS X(64位)
make -j8
...
...
Linking CXX shared library ../../lib/libopencv_java244.dylib
ld: unknown option: -whole-archive
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: * [lib/libopencv_java244.dylib] Error 1
make[1]: * [modules/java/CMakeFiles/opencv_java.dir/all] Error 2
make: *** [all] Error 2
有什麼建議?
你能鏈接以OpenCV的2.4.11(32位版本)的Java包裝與JDK編譯1.6? (http://stackoverflow.com/questions/34103709/build-opencv-jdk-6-32-bit-for-mac?noredirect=1#comment55959146_34103709) –
如何用2.4.4初始化本地庫看到你無法調用System.loadLibrary(Core.NATIVE_LIBRARY_NAME); ? –