python - Cmake在构建openpose库时在配置过程中抛出“BUILD PYTHON”错误
问题描述
我对 cmake 很陌生,我正在使用 Cmake Gui 来编译 openpose 库https://github.com/CMU-Perceptual-Computing-Lab/openpose。我正在Mac机器上尝试这个。
现在,在 Cmake-GUI 中:
- 将 BUILD PYTHON 标志设置为 OFF。配置 n 代有效!
- 但是,将 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
解决方案
推荐阅读
- python - 熊猫数据框索引未正确排序
- javascript - 如何在 Sapper 中禁用类似 SPA 的导航?
- javascript - Vuex:为什么嵌套对象保持未定义,即使在状态下初始化?
- python - 关于 for 循环中 timedelta 对象的问题(python)
- python - 创建变量,其名称是另一个变量中保存的字符串的内容
- django - 无法将关键字“get_album_detail”解析为字段
- java - 生产版本中发生 RemoteServiceException
- ios - 构建 FFmpeg 以在 Swift 中使用
- sql - SQL:无效的列名在一个查询中有效,但在另一个查询中无效
- azure-ad-b2c - 间歇性 Azure AD B2C 异常:IDX10614:AsymmetricSecurityKey.GetSignatureFormater() 引发异常