Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

OpenCV CUDA CMake error

📅 2017-Dec-23 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ cmake, cuda, error, npp, opencv ⬩ 📚 Archive


I was building OpenCV using CMake and got this error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:


The error was related to CUDA and probably some dependency on the NVIDIA Performance Primitives (NPP) library. Since, I needed neither, I rebuilt OpenCV without CUDA support as described here by setting WITH_CUDA=OFF.