Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This is most likely caused by an incorrect setting of CUDA_HOST_COMPILER in the CMake settings. By default OpenCV chooses /usr/bin/cc (an alias for /usr/bin/clang), but this is unrecognized by the NVidia host compiler driver and hence the inappropriate compiler flags that are being passed to clang. The fix is simple: just change CUDA_HOST_COMPILER to /usr/bin/clang and everything should work just fine. Also make sure you have installed the updated version of the CUDA 5.5 Toolkit specific for 10.9.

This is most likely caused by an incorrect setting of CUDA_HOST_COMPILER in the CMake settings. By default OpenCV chooses /usr/bin/cc (an alias for /usr/bin/clang), but this is unrecognized by the NVidia host compiler driver and hence the inappropriate compiler flags that are being passed to clang. The fix is simple: just change CUDA_HOST_COMPILER to /usr/bin/clang and everything should work just fine. Also make sure you have installed the updated version of the CUDA 5.5 Toolkit specific for 10.9.

EDIT: I should note that Cuda will most likely not work for 10.9 because Cuda uses libstdc++, whereas most packages link to libc++ by default. I suggest opening a bug report a the Cuda developer zone to raise awareness of the issue: developer zone