Ask Your Question
1

Opencv Installation Errors in Mac OSX

asked 2015-01-19 12:45:10 -0600

srinivas7 gravatar image

Hi, I'm tired of using methods to install opencv in my Mac OS X My laptop runs OS X Yosemite X64.

First i tried to install using port which installed opencv with no problem but later when i compile programs i got error no symbols found for x64 architecture.

Then i tried to google problem did whatever solutions i got, but couldn't solve problem, Then uninstalled it.

I found that brew can does the same thing, so again i installed opencv using brew, no problem installing it. Later i received same error again google search didn't help much.

Now i want to install it by myself. I've downloaded opencv 2.4.10 using link:[http://sourceforge.net/projects/opencvlibrary/files] extracted and used following commands [source: stackoverflow]

mkdir build

cd build

cmake -D WITH_TBB=OFF -D BUILD_NEW_PYTHON_SUPPORT=OFF -D BUILD_FAT_JAVA_LIB=OFF -D BUILD_TBB=OFF -D BUILD_EXAMPLES=ON -D CMAKE_CXX_COMPILER=g++ CMAKE_CC_COMPILER=gcc -D CMAKE_OSX_ARCHITECTURES=x86_64 -D BUILD_opencv_java=OFF -G "Unix Makefiles" ..

make -j8 make gives me following error:

In file included from /Developer/NVIDIA/CUDA-6.5/include/cuda_runtime.h:59:0, from <command-line>:0: /Developer/NVIDIA/CUDA-6.5/include/host_config.h:82:2: error: #error -- unsupported GNU version! gcc 4.9 and up are not supported! #error -- unsupported GNU version! gcc 4.9 and up are not supported! ^ CMake Error at cuda_compile_generated_matrix_operations.cu.o.cmake:206 (message): Error generating /Users/user/Downloads/opencv-2.4.10/build/modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/./cuda_compile_generated_matrix_operations.cu.o

make[2]: * [modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/cuda_compile_generated_matrix_operations.cu.o] Error 1 make[1]: [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 make: ** [all] Error 2

I tried sudo ln -s /usr/bin/gcc-4.4 /usr/local/cuda/bin/gcc But it doesn't work

Please help me

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-19 20:55:17 -0600

I used this tutorial to build OpenCV from source under OS X 10.9 Mavericks even though it's written for OS X 10.10 Yosemite. It was straightforward and worked easily.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-01-19 12:45:10 -0600

Seen: 1,784 times

Last updated: Jan 19 '15