openpose编译告诉未定义的引用cv :: VideoCapture :: VideoCapture(cv :: String const&) [英] openpose compilation tells undefined reference to cv::VideoCapture::VideoCapture(cv::String const&)

查看:953
本文介绍了openpose编译告诉未定义的引用cv :: VideoCapture :: VideoCapture(cv :: String const&)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将禁用cpu的状态改为caffe,然后

I have comipled caffe with GPU disabled,then

cp caffe/build/Makefile openpose/Makefile.conf

运行

 make all -j 6

忘记这些错误:

-- Generating done
-- Build files have been written to: /path/to/caffe/build
CXX/LD -o ._release/examples/tutorial_thread/1_openpose_read_and_display.bin
._release/lib/libopenpose.so: undefined reference to `cv::VideoCapture::VideoCapture(cv::String const&)'
._release/lib/libopenpose.so: undefined reference to `cv::VideoCapture::set(int, double)'
._release/lib/libopenpose.so: undefined reference to `op::renderPartAffinityFieldGpu(float*, op::PoseModel, cv::Size_<int> const&, float const*, cv::Size_<int> const&, float, int, float)'
._release/lib/libopenpose.so: undefined reference to `cv::VideoCapture::release()'
._release/lib/libopenpose.so: undefined reference to `op::renderBodyPartsGpu(float*, op::PoseModel, cv::Size_<int> const&, float const*, cv::Size_<int> const&, float, float)'
._release/lib/libopenpose.so: undefined reference to `cv::VideoCapture::operator>>(cv::Mat&)'

找不到opencv,我从源代码编译了最新的opencv 3.2-dev,所有的opencv程序(c ++和python)都起作用了,那么为什么openpose找不到opencv?

can't find opencv,and I compiled latest opencv 3.2-dev from source,all opencv programs(both c++ and python) worked,so why cann't openpose find opencv?

推荐答案

Caffe实际上识别opencv,这些参考是在opencv3.2中丢弃的方法,但在opencv 3.1.0或更早版本中可用.安装3.2并最终降级到3.1.0时出现的问题为我解决了这个问题,

Caffe recognized opencv actually,those reference are method that were discarded in opencv3.2 ,but are available in opencv 3.1.0 or earlier version.i had the same problem while installing 3.2 and eventualy downgrading to 3.1.0 solved the issue for me,here is a nice guide to install opencv 3.1.0 and according to

讨论,看来该标准是为了支持可用的opencv在Ubuntu源码中,我认为您现在无法通过apt-get安装opencv3.2,只需要从源码构建即可.

this discussion,it seems that the standard is to support opencv that are available in Ubuntu sources and i think you can't install opencv3.2 through apt-get by now,only need to build from source

这篇关于openpose编译告诉未定义的引用cv :: VideoCapture :: VideoCapture(cv :: String const&amp;)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆