CMAKE 编译openpose 报错
错误描述:
CMake Error at CMakeLists.txt:1000 (add_subdirectory):
The source directory
/Users/dani/projectsw/openpose/3rdparty/pybind11
does not contain a CMakeLists.txt file.
CMake Error at python/openpose/CMakeLists.txt:6 (pybind11_add_module):
Unknown CMake command "pybind11_add_module".
~~~
问题描述:
在openpose-master\3rdparty\pybind11 这个文件夹下面缺少文件,所以在configure或者Generate的时候会报错
解决办法:
在3rdparty\pybind11文件夹中下面,
运行
git clone https://github.com/pybind/pybind11.git
下载完后回到cmake中继续编译
成功!!!!!