I am using: Visual Studio 2017, OpenCV 3.3 + contrib, CUDA 9, CMake 3.9.3, windows10
The project configuration in CMake always fails with the following message:
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:
In the CUDA-directory i can only find : nppial.lib, nppicc.lib, nppicom.lib, nppidei.lib, nppif.lib, nppig.lib, nppist.lib nppisu.lib, nppitc.lib and npps.lib libraries but no nppi as expected.
I found two postings related to that problem:
problem related to FindCUDA-module in CMake (superseded by first-class support for CUDA language)
create nppi.lib from all the other libs mentioned above with “x64 Native Tools Command Prompt for VS 2017”:
lib.exe /out:nppi.lib nppial.lib nppicc.lib nppicom.lib nppidei.lib nppif.lib nppig.lib nppim.lib nppist.lib nppisu.lib nppitc.lib
(Doesn’t work for me. CMake doesn’t show me errors anymore but I get a huge amount of errors in the Visual Studio building process.)
I would appreciate it very much if someone could help me with my problem.