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目录下就能看到下列文件
在这里插入图片描述
之后再点击configure–>generate,再打开文件

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值