openpose体系结构x86_64的未定义符号 [英] openpose Undefined symbols for architecture x86_64

查看:97
本文介绍了openpose体系结构x86_64的未定义符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行时遇到错误

make -j`sysctl -n hw.logicalcpu`

在maxos catalina上构建openpose:

to build openpose on maxos catalina:

[ 40%] Linking CXX shared library libopenpose.dylib
Undefined symbols for architecture x86_64:
  "caffe::Net<float>::CopyTrainedLayersFrom(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)", referenced from:
      op::NetCaffe::initializationOnThread() in netCaffe.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[5]: *** [src/openpose/libopenpose.1.5.1.dylib] Error 1
make[4]: *** [src/openpose/CMakeFiles/openpose.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [openpose_lib] Error 2
make[1]: *** [CMakeFiles/openpose_lib.dir/all] Error 2
make: *** [all] Error 2

如果你们对此有所了解,请帮助我...

please help me if you guys know a little about this...

推荐答案

问题已解决.事实证明,openpose内置式咖啡无法正常工作.首先在openpose外部独立安装CAFFE.其次,在构建openpose时,在cmake中将BUILD_CAFFE标志设置为false,然后在cmake中手动指定CMAKE_INCLUDE目录和CMAKE_LIBS文件的路径.

Problem solved. It turns out that the openpose built-in caffe is not working well. First install CAFFE independently outside openpose. Second, when you are building openpose, turn BUILD_CAFFE flag to false in cmake and manually specify the path of CMAKE_INCLUDE directory and CMAKE_LIBS file in cmake.

这篇关于openpose体系结构x86_64的未定义符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆