opencv cmake警告含义:CMakeLists.txt:1066(包括)

时间:2019-06-15 02:18:36

标签: opencv

我现在正在使用opencv4.1.0从源头构建cmake3.13。 cmake配置会给出警告消息,提示:

CMake Warning at cmake/OpenCVGenSetupVars.cmake:54 (message):
  CONFIGURATION IS NOT SUPPORTED: validate setupvars script in install
  directory
Call Stack (most recent call first):
  CMakeLists.txt:1066 (include)

此警告是什么意思?启动构建过程是否需要认真解决?

1 个答案:

答案 0 :(得分:1)

检查文件cmake / OpenCVGenSetupVars.cmake

if(DEFINED __python_path)
  if(IS_ABSOLUTE "${__python_path}")
    set(OPENCV_PYTHON_DIR_RELATIVE_CMAKECONFIG "${__python_path}")
    message(WARNING "CONFIGURATION IS NOT SUPPORTED: validate setupvars script in install directory")

似乎您将Python路径设置为错误