问题
I'm giving this command
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/developments/opencv/install/opencv/* -D WITH_CUDA=ON -D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda/ ..
but always cmake gives me
-- Other third-party libraries: -- Use IPP: NO -- Use TBB: NO -- Use Cuda: NO -- Use Eigen: NO -- Use Clp: NO
How can it be done? Thanks.
回答1:
Most probably you don't have the required CUDA version installed. The output of cmake should be warning you about it.
OpenCV 2.3.1 supports only CUDA 4.0.
OpenCV 2.4 supports CUDA 4.1 and 4.2.
来源:https://stackoverflow.com/questions/10608762/opencv-compiling-with-cuda