Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE

Hello,

I am working on Nvidia Xavier AGX hardware, I am trying to build one application which is using OpenCV. But when i compile this application I get following error.

| Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE
| CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is exact version “10.2”)

I am using following items in image file.
IMAGE_INSTALL += “cuda-libraries cuda-nvcc cuda-nvtx cuda-nvml cudnn”
IMAGE_INSTALL += “cuda-cudart cuda-cudart-dev”
IMAGE_INSTALL += “cuda-misc-headers cuda-misc-headers-dev”
IMAGE_INSTALL += “cuda-misc-headers-container-csv”
IMAGE_INSTALL += “cuda-cusparse cuda-cusparse-dev”
IMAGE_INSTALL += “cuda-cusolver cuda-cusolver-dev”
IMAGE_INSTALL += “libcublas libcublas-dev”
IMAGE_INSTALL += “cuda-toolkit cuda-target-environment cuda-npp”
IMAGE_INSTALL += “cuda-command-line-tools cuda-nvcc-headers”

I request you to please help me in resolving it.

Regards,
Hariom

Hi

it looks like you dont have CUDA installed. Can you try to re-install CUDA either via SDKmanager (re-flash AGX) or manually :

Hi @neel_patel,

Thanks for reply,

I am having CUDA installed in my system and i verified it by checking the /usr/local folder.

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Have you set the path variable correctly ?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.