CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please

文章目录

  • 问题描述
  • 解决方案

问题描述

使用cmake配置openpose项目,点击configure时报出以下错误

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:
Caffe_LIB_DEBUG
    linked by target "openpose" in directory D:/Openpose/openpose/src/openpose
Caffe_LIB_RELEASE
    linked by target "openpose" in directory D:/Openpose/openpose/src/openpose
Caffe_Proto_LIB_DEBUG
    linked by target "openpose" in directory D:/Openpose/openpose/src/openpose
Caffe_Proto_LIB_RELEASE
    linked by target "openpose" in directory D:/Openpose/openpose/src/openpose
GFLAGS_LIBRARY_DEBUG
    linked by target "openpose" in directory D:/Openpose/openpose/src/openpose
GFLAGS_LIBRARY_RELEASE
    linked by target "openpose" in directory D:/Openpose/openpose/src/openpose
GLOG_LIBRARY_DEBUG
    linked by target "openpose" in directory D:/Openpose/openpose/src/openpose
GLOG_LIBRARY_RELEASE
    linked by target "openpose" in directory D:/Openpose/openpose/src/openpose
OpenCV_LIBS_DEBUG
    linked by target "openpose" in directory D:/Openpose/openpose/src/openpose
OpenCV_LIBS_RELEASE
    linked by target "openpose" in directory D:/Openpose/openpose/src/openpose

Configuring incomplete, errors occurred!
See also "D:/Openpose/openpose/build/CMakeFiles/CMakeOutput.log".

解决方案

首先检查openpose用到的依赖库caffe、opencv等是否下载成功(在\openpose\3rdparty\windows目录下)

由于我是通过别的博主的网盘链接下载的这些依赖库,已经确保了没有出现下载不成功的问题。

如果下载成功依旧有此问题,记得把解压之后的文件往前提一级目录,例如针对caffe_cpu保证在\openpose\3rdparty\windows\caffe_cpu目录下就能看到下列文件
CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please_第1张图片
之后再点击configure–>generate,再打开文件

你可能感兴趣的:(openpose)