微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Openpose:libopenpose.dylib 上的编译错误

如何解决Openpose:libopenpose.dylib 上的编译错误

当我编译 CMake 的 Makefile 时,我得到了架构 x86_64 的未定义符号。查看 this post,我使用的是我自己的 Caffe 版本(通过 brew install caffe 安装)。

[ 39%] Building CXX object src/openpose/CMakeFiles/openpose.dir/wrapper/wrapperStructPose.cpp.o
[ 39%] Linking CXX shared library libopenpose.dylib
Undefined symbols for architecture x86_64:
  "_glutLeaveMainLoop",referenced from:
      op::Gui3D::~Gui3D() in gui3D.cpp.o
  "_glutMainLoopEvent",referenced from:
      op::Gui3D::update() in gui3D.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command Failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/openpose/libopenpose.1.7.0.dylib] Error 1
make[1]: *** [src/openpose/CMakeFiles/openpose.dir/all] Error 2
make: *** [all] Error 2

我也试过清理 brew 安装目录的整个列表,但没有任何运气。

以下是我使用的系统配置: 运行 macOS 11.2 (20D64) - Big Sur Apple clang 版本 12.0.0 (clang-1200.0.32.29) 目标:x86_64-apple-darwin20.3.0 线程模型:posix 安装目录:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

这里的任何帮助将不胜感激。谢谢!

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。