CMake Error at /usr/share/cmake-3.10/Modules/FindCUDA.cmake:682 (message): Specify CUDA_TOOLKIT_ROOT_DIR

Hello,
I am trying to use ZED camera with Jetson TX2. When I install the ZED SDK, it reminds me that cuda 10 can not be found.
When I try to make ZED related examples, I also got messages the title:

CMake Error at /usr/share/cmake-3.10/Modules/FindCUDA.cmake:682 (message):
  Specify CUDA_TOOLKIT_ROOT_DIR

The Jetpack is installed from SDK manager, version number

nvidia@nvidia-desktop:~/catkin_ws$ head -n 1 /etc/nv_tegra_release
# R32 (release), REVISION: 3.1, GCID: 18186506, BOARD: t186ref, EABI: aarch64, DATE: Tue Dec 10 07:03:07 UTC 2019

Is there some ways to check if CUDA is intalled and if its version number fits ZED?
Thanks,
Bo

Hi,

Please try this:

cmake -D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-10.0 ..

Thanks.

Actually I do not have that folder cuda-10.0 in /usr/local/.
Do I need to install cuda 10 or it is installed somewhere else?
Thanks,
Bo

I didn’t install CUDA. After installed CUDA with SDK manager, the problem solved.