微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

构建openpose库时,Cmake在配置过程中抛出“BUILD PYTHON”错误

如何解决构建openpose库时,Cmake在配置过程中抛出“BUILD PYTHON”错误

我对 cmake 非常陌生,我正在使用 Cmake Gui 来编译 openpose 库 https://github.com/CMU-Perceptual-Computing-Lab/openpose。 我正在 mac 机器上尝试这个。

现在,在 Cmake-GUI 中:

  1. 将 BUILD PYTHON 标志设置为 OFF。配置 n 生成作品!!
  2. 但是,BUILD PYTHON 标志设置为 ON。配置抛出一些 错误[在下面发布],虽然生成也可以完成,但是 最终编译会抛出python错误

我需要使用这个 Python API。任何帮助将不胜感激!

我猜 pybind11 有问题。 已尝试删除 pybind11 文件夹并执行 git clone pybind11; git init 完成。

Building cpu Only.
Found gflags  (include: /usr/local/include,library: /usr/local/lib/libgflags.dylib)
Found glog    (include: /usr/local/include,library: /usr/local/lib/libglog.dylib)
Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) 
Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) 
Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND) 
${Caffe_INCLUDE_Dirs} set by the user to /usr/local/include/caffe
${Caffe_LIBS} set by the user to /usr/local/lib/libcaffe.dylib
Download the models.
Downloading BODY_25 model...
Model already exists.
Downloading body (COCO) model...
Model already exists.
Downloading body (MPI) model...
Model already exists.
Downloading face model...
Model already exists.
Downloading hand model...
Model already exists.
Models Downloaded.
fatal: not a git repository (or any of the parent directories): .git

pybind11 v2.3.dev0
Configuring done

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。