# Couldn’t Compile OpenCV with WITH_CUDA=ON

## post by kev1n on Feb 4, 2021

I try to install OpenCV with CUDA. I followed the instruction from [OpenCV in lambda-stack - non-gpu? - #2 by leonnowsden](https://deeptalk.lambda.ai/t/opencv-in-lambda-stack-non-gpu/2129/2)

When I cmake the file, I got the error that said:

> – Found Threads: TRUE
> 
> CMake Warning at cmake/OpenCVFindLibsPerf.cmake:45 (message):
> 
> OpenCV is not able to find/configure CUDA SDK (required by WITH_CUDA).
> 
> CUDA support will be disabled in OpenCV build.
> 
> To eliminate this warning remove WITH_CUDA=ON CMake configuration option.

I think this may be related to the CUDA path. Because if you install the nvidia-cuda-toolkit manually, by default the path of CUDA should be /usr/local/cuda-11.0. But I can’t find this path with Lambda Stack installed.

Any help would be appreciated.

## post by MikeBee on Feb 5, 2021

I don’t think you want cuda to build opencv. You want to use it later, but the make file doesn’t have anything that wants cuda.
