Ask Your Question

Revision history [back]

installation problem opencv-2.4.4 on Mac OS X 10.8.3

I reffered....
http://docs.opencv.org/2.4.4-beta/doc/tutorials/introduction/desktop_java/java_dev_intro.html

git clone git://github.com/Itseez/opencv.git <br />
cd opencv <br />
git checkout 2.4 <br />
mkdir build <br />
cd build <br />
cmake -DBUILD_SHARED_LIBS=OFF .. <br />
make -j8 <br />

But make fail at "make -j8" step...

Linking CXX shared library ../../bin/libopencv_java244.dylib <br />
ld: unknown option: -whole-archive <br />
clang: error: linker command failed with exit code 1 (use -v to see invocation) <br />
make[2]: *** [bin/libopencv_java244.dylib] Error 1 <br />
make[1]: *** [modules/java/CMakeFiles/opencv_java.dir/all] Error 2 <br />
make[1]: *** Waiting for unfinished jobs.... <br />
Linking CXX executable ../../bin/opencv_perf_gpu <br />
[ 89%] Built target opencv_perf_gpu <br />
make: *** [all] Error 2 <br />

How can I build it????

installation problem opencv-2.4.4 on Mac OS X 10.8.3

I reffered....
http://docs.opencv.org/2.4.4-beta/doc/tutorials/introduction/desktop_java/java_dev_intro.html

git clone git://github.com/Itseez/opencv.git <br />
 cd opencv <br />
 git checkout 2.4 <br />
 mkdir build <br />
 cd build <br />
 cmake -DBUILD_SHARED_LIBS=OFF .. <br />
 make -j8 <br />
-j8

But make fail at "make -j8" step...

Linking CXX shared library ../../bin/libopencv_java244.dylib <br />
 ld: unknown option: -whole-archive <br />
 clang: error: linker command failed with exit code 1 (use -v to see invocation) <br />
 make[2]: *** [bin/libopencv_java244.dylib] Error 1 <br />
 make[1]: *** [modules/java/CMakeFiles/opencv_java.dir/all] Error 2 <br />
 make[1]: *** Waiting for unfinished jobs.... <br />
 Linking CXX executable ../../bin/opencv_perf_gpu <br />
 [ 89%] Built target opencv_perf_gpu <br />
 make: *** [all] Error 2 <br />
2

How can I build it????