在利用cmake编译Opencv源码时,编译最后出现一个警告提示:
CMake Warning at cmake/OpenCVGenSetupVars.cmake:54 (message):CONFIGURATION IS NOT SUPPORTED: validate setupvars script in install directory
忽略此警告后,编译仍然成功。因此,只需去除 OPENCV_GENERATE_SETUPVARS选项,将会configure成功。具体如下图:
去掉勾选后,再次点击上图的Configure ,最后编译成功。结果如下图: