ubuntu18.04系统的cmake要从源码编译!!!!!!!!!!!!
ubuntu18.04系统的cmake要从源码编译!!!!!!!!!!!!
ubuntu18.04系统的cmake要从源码编译!!!!!!!!!!!!
ubuntu18.04系统的cmake要从源码编译!!!!!!!!!!!!
否则在执行命令make -j`nproc`时,会报如下错误
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_cublas_device_LIBRARY (ADVANCED)
linked by target "caffe" in directory /home/jakebmalis/Documents/openpose/3rdparty/caffe/src/caffe
这是因为ubuntu18和cmake的问题,需要源码编译cmake
cmake源码编译cmake过程 https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/prerequisites.md
Ubuntu 18: Download and compile CMake-gui from source. The default CMake-gui version (3.10) installed via sudo apt-get install cmake-qt-gui provokes some compiling errors. Required CMake version >= 3.12.
* Uninstall your current Cmake-gui version by running sudo apt purge cmake-qt-gui.
* Run sudo apt-get install qtbase5-dev.
* Download the Latest Release of CMake Unix/Linux Source from the CMake download website, called cmake-X.X.X.tar.gz.
* Unzip it and go inside that folder from the terminal.
* Run ./configure --qt-gui. Make sure no error occurred.
* Run ./bootstrap && make -j`nproc` && sudo make install -j`nproc` . Make sure no error occurred.
* Assuming your CMake downloaded folder is in {CMAKE_FOLDER_PATH}, everytime these instructions mentions cmake-gui, you will have to replace that line by {CMAKE_FOLDER_PATH}/bin/cmake-gui.
openpose python API整体编译步骤参考
https://medium.com/pixel-wise/real-time-pose-estimation-in-webcam-using-openpose-python-2-3-opencv-91af0372c31c
到第7步就可以结束,openpose位于build/python目录下,需要拷贝openpose文件夹到指定虚拟环境目录下
import方式
from openpose import pyopenpose as op