
[英]openpose compilation tells libopenpose.so: undefined references to `op::renderPartAffinityFieldGpu(…t)'
[英]Openpose: Compile error on libopenpose.dylib
当我编译 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
安装目录的整个列表,但没有任何运气。
以下是我正在使用的系统配置: 运行 macOS 11.2 (20D64) - Big Sur Apple clang 版本 12.0.0 (clang-1200.0.32.29) 目标:x86_64-apple-darwin20.3.0 线程 Z20F35E630DAF494DBFA4CZs3F68 InstalledF494DBFA4CZs3F68 /Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
任何帮助将不胜感激。 谢谢!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.