The C compiler identification is unknown?

I’m going to activate the cuda compiler in opencv but when doing a make build I get an error like this “the c compiler identification is unknown”

You want to manually enable CUDA filters and build OpenCV, right?
A user has shared a script:
GitHub - mdegans/nano_build_opencv: Build OpenCV on Nvidia Jetson Nano

Please give it a try.

I got the error “the c compiler identification is unknown”

Hi,
We have tried the script and it works fine. If you still hit issue, please re-install system image through SDKManager and try again.

I saw some non-Jetson related issues suggesting to post the output of:
CMakefiles/CMakeError.log

Another post suggested that in some cases the files in need of access required root privilege (sudo), but the CMakeError.log would probably clarify that. The key seems to be that the compiler must be found, and a simple test program must compile. The error log might give details on why this failed.