opencv2.4.10+CUDA6.5+Mac OS X 10.9.5+clang

asked 2015-02-05 14:29:55 -0600

Sean gravatar image

I have a problem like this:

image description

I know CUDA is not compatible with clang libc++, so I set the compiler related variables in cmake like this: CMAKE_C_COMPILER /usr/bin/cc CMAKE_CXX_COMPILER /usr/bin/c++ CMAKE_CXX_FLAGS -stdlib=libstdc++

CUDA_HOST_COMPILER /usr/bin/clang CUDA_NVCC_FLAGS -Xcompiler -stdlib=libstdc++; -Xlinker -stdlib=libstdc++"

However, I still got errors like this. I also searched online, no one has the same problem with me. Could anyone offer any help?

edit retag flag offensive close merge delete