Hi,
I'm getting compiler errors building OpenCV with CUDA 6.5 on OS X 10.10.3:
$ mkdir build $ cd build
CC=clang CXX=clang++ cmake -DCMAKE_INSTALL_PREFIX=/usr/local -Wno-dev -DNVCC_FLAGS_EXTRA="-Xcompiler -stdlib=libstdc++; -Xlinker -stdlib=libstdc++" -DOPENCV_EXTRA_CXX_FLAGS="-stdlib=libstdc++" -DOPENCV_EXTRA_EXE_LINKER_FLAGS="-stdlib=libstdc++" ..
$make ...
[ 6%] Building CXX object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_stream.cxx.o c++: error: unrecognized command line option '-stdlib=libstdc++' make[2]: * [3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_stream.cxx.o] Error 1 make[1]: [3rdparty/libtiff/CMakeFiles/libtiff.dir/all] Error 2 make: ** [all] Error 2
Any suggestions?