Ask Your Question
0

installation problem opencv-2.4.4 on Mac OS X 10.8.3

asked 2013-03-15 20:21:31 -0600

Developer gravatar image

updated 2013-03-16 08:35:53 -0600

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 
cd opencv 
git checkout 2.4 
mkdir build 
cd build 
cmake -DBUILD_SHARED_LIBS=OFF .. 
make -j8

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

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

How can I build it????

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-03-16 06:03:22 -0600

emreozanalkan gravatar image

updated 2013-03-16 06:04:36 -0600

I was successful to install 2.4.4 on my mountain lion. Before building and installing anything, I've checked if I had gcc, g++, XCode Command Line Tools and CMake from http://www.cmake.org/cmake/resources/software.html.

I just followed the same steps as you did and I was able to instal it :(

http://blog.emreozanalkan.com.tr/opencv-ve-xcode/

edit flag offensive delete link more

Comments

Thank you!!! Your way work. Just different is [cmake -G "Unix Makefiles" ..]

Developer gravatar imageDeveloper ( 2013-03-16 09:04:12 -0600 )edit

I had the same problem and using the above fixed it! It seemed to stop when it tried to build the dynamic libraries needed to run it but using the above cmake command instead allowed them to be built. Thanks!

sam5827 gravatar imagesam5827 ( 2013-03-21 08:16:19 -0600 )edit

Question Tools

Stats

Asked: 2013-03-15 20:21:31 -0600

Seen: 2,573 times

Last updated: Mar 16 '13