当我编译 CMake 的 Makefile 时,我得到了架构 x86_64 的未定义符号。看这篇文章,我正在使用我自己的 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
安装目录的整个列表,但没有任何运气。
以下是我正在使用的系统配置: Running macOS 11.2 (20D64) - Big Sur Apple clang version 12.0.0 (clang-1200.0.32.29) Target: x86_64-apple-darwin20.3.0 Thread model: posix InstalledDir: /Applications /Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
任何帮助将不胜感激。谢谢!