构建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 (将#修改为@)