Solvedopenpose CMake Error at CMakeLists.txt:929 (add_subdirectory):
✔️Accepted Answer
Temporary workaround. Clone pybind11 separately into the folder. The configure, generate and build all go through with the referenced checkout branch of pybind11.
-
While in folder 3rdparty, run
git clone https://github.com/pybind/pybind11.git
-
checkout branch 085a29436a8c472caaaf7157aa644b571079bcaa
(I cloned the latest pybind11 and it still works fine. Latest as of 7th august 2019) -
Click configure again in cmake-gui
Other Answers:
I am getting a similar error.
When I cd into 3rdparty/pybind11
and then run git submodule update --recursive --remote
, I get that I am not in a git repository:
fatal: not a git repository (or any of the parent directories): .git
(For reference, 3rdparty/pybind11
is empty before and after I run CMake, and that is when I get the above error)
GCC detected, adding compile flags
Building CPU Only.
Boost version: 1.69.0
Found the following Boost libraries:
system
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
Adding Example calibration.bin
Adding Example openpose.bin
Adding Example 1_custom_post_processing.bin
Adding Example 01_body_from_image_default.bin
Adding Example 02_whole_body_from_image_default.bin
Adding Example 03_keypoints_from_image.bin
Adding Example 04_keypoints_from_images.bin
Adding Example 05_keypoints_from_images_multi_gpu.bin
Adding Example 06_face_from_image.bin
Adding Example 07_hand_from_image.bin
Adding Example 08_heatmaps_from_image.bin
Adding Example 09_keypoints_from_heatmaps.bin
Adding Example 10_asynchronous_custom_input.bin
Adding Example 11_asynchronous_custom_output.bin
Adding Example 12_asynchronous_custom_input_output_and_datum.bin
Adding Example 13_synchronous_custom_input.bin
Adding Example 14_synchronous_custom_preprocessing.bin
Adding Example 15_synchronous_custom_postprocessing.bin
Adding Example 16_synchronous_custom_output.bin
Adding Example 17_synchronous_custom_all_and_datum.bin
Adding Example 1_thread_user_processing_function.bin
Adding Example 2_thread_user_input_processing_output_and_datum.bin
Adding Example handFromJsonTest.bin
Adding Example resizeTest.bin
Download the models.
Downloading BODY_25 model...
Model already exists.
Downloading body (COCO) model...
Model already exists.
Not downloading body (MPI) model
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
CMake Error at CMakeLists.txt:998 (add_subdirectory):
The source directory
/Users/vashisthparekh/Documents/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".
Configuring incomplete, errors occurred!
當遇到
CMake Error at python/openpose/CMakeLists.txt:6 (pybind11_add_module):
Unknown CMake command "pybind11_add_module".
- 將 https://github.com/pybind/pybind11.git 下載並解壓縮
- 將其放到 3rdparty/pybind11 (不是放到build裡面的 "3rdparty" 資料夾喔!!)
- 重新進入 cmake-gui 按下configure
- 成功後按下 generate
- 最後按下 open project
- 切換到 release 執行
Run this in -> git submodule init && git submodule update
in openpose/3rdparty/pybind11
When I ran make -j
nproc
in build folder. Getting the below error.I did this setup in my Ubuntu 18.04 local machine/laptop(Installed with CUDA and CUDNN).
Please help me to resolve this issue.