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 (将#修改为@)