linux - OpenPose 库 - 构建发布问题

标签 linux opencv open-source caffe object-detection

我们正在尝试安装和运行 Github 上可用的 OpenPose 库演示: https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/installation.md#manual-compilation

已完成安装 Caffe 和所有先决条件,但在执行安装命令时我们收到以下错误:

CXX examples/tutorial_wrapper/2_user_synchronous.cpp
AR -o .build_release/lib/libopenpose.a
LD -o .build_release/lib/libopenpose.so.1.0.0-rc3
CXX/LD -o .build_release/examples/tutorial_pose/2_extract_pose_or_heatmat_from_image.bin
.build_release/lib/libopenpose.so: undefined reference to `cv::VideoCapture::VideoCapture(cv::String const&)'
.build_release/lib/libopenpose.so: undefined reference to `cv::VideoCapture::set(int, double)'
.build_release/lib/libopenpose.so: undefined reference to `cv::VideoCapture::release()'
.build_release/lib/libopenpose.so: undefined reference to `cv::VideoCapture::operator>>(cv::Mat&)'
.build_release/lib/libopenpose.so: undefined reference to `cv::VideoWriter::VideoWriter(cv::String const&, int, double, cv::Size_<int>, bool)'
.build_release/lib/libopenpose.so: undefined reference to `cv::VideoCapture::isOpened() const'
.build_release/lib/libopenpose.so: undefined reference to `cv::VideoCapture::get(int) const'
.build_release/lib/libopenpose.so: undefined reference to `cv::VideoCapture::VideoCapture(int)'
.build_release/lib/libopenpose.so: undefined reference to `cv::VideoCapture::~VideoCapture()'
.build_release/lib/libopenpose.so: undefined reference to `vtable for cv::VideoWriter'
collect2: error: ld returned 1 exit status
Makefile:492: recipe for target '.build_release/examples/tutorial_pose/2_extract_pose_or_heatmat_from_image.bin' failed
make: *** [.build_release/examples/tutorial_pose/2_extract_pose_or_heatmat_from_image.bin] Error 1
make: *** Waiting for unfinished jobs....

------------------------- -------------------------
Errors detected. Exiting script. The software might have not been successfully installed.
------------------------- -------------------------

请帮我摆脱这个。

谢谢

最佳答案

这可能是因为 libopencv_video 和/或 libopencv_videoio 尚未添加到项目中。如果您从源代码构建 opencv,请检查是否已构建这些库。

关于linux - OpenPose 库 - 构建发布问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44793123/

相关文章:

ios - 适用于 iOS 的 CvVideoWriter WriteFrame 无法正常工作

python - SQL 查询生成器

linux - 如何为微处理器 SA1100 安装交叉编译器(在 ubuntu 12.04 LTS 上)?

linux - 构建 GCC 4.6 - libmpfr.so.4 - 无法打开共享对象文件

linux - 控制 M 字符的奇怪外观

python - Python 中的 OpenCV : "ImportError: DLL load failed"

c++ - 图像处理 - 两张图像之间的差异

open-source - 其他开源项目如何使用捐款?

C# 库根据您自己的数据库、facebook、twitter、OpenID 对用户进行身份验证,

linux - 将 bash 脚本上传到 MAAS 部署的 Ubuntu 机器上