体系结构x86_64的openpose未定义符号

问题描述 投票:0回答:1

我在运行时遇到错误

make -j`sysctl -n hw.logicalcpu`

在maxos catalina上构建openpose:

[ 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

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

cmake linker clang caffe openpose
1个回答
0
投票

问题已解决。事实证明,openpose内置式咖啡无法正常工作。首先,在cmake中将BUILD_CAFFE标志设置为false。然后,在cmake中手动指定CMAKE_INCLUDE目录和CMAKE_LIBS文件的路径。

© www.soinside.com 2019 - 2024. All rights reserved.