Jetson Nano Opencv ,C++

Hello, I installed OPENCV 4.5.0 on Jetson nano with Cuda and cuDNN. Everything ok. But I typed an example opencv but could not combi. How do I do it? I am getting the following error.

main.cpp: 1: 10: fatal error: opencv2 / opencv.hpp: no such file or directory #include compilation terminated.

I get the same error on Qt. I think I need to introduce the library. How am I going to solve this problem?

I don’t have much experience on this case, you may try to find he answer from

Maybe your setup can not linked right directions of OpenCV files.
If you share some details about your environment to help further, we can help you better
Best wishes