在编译最后的时候遇到一个问题,一直无法解决
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)
后来搜索这个问题看到一个答主说必须要用cmake-3.14版本源码编译才可以,但是我明明记得前阵子用cmake-3.13版本就可以的
偏偏不信这个邪,最后决定把现在的cmake卸载按照openpose官网的
安装前置条件严格执行。
https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/prerequisites.md
- Uninstall your current Cmake-gui version by running
sudo apt purge cmake-qt-gui
. - Install OpenSSL for building CMake by running
sudo apt install libssl-dev
. - Run
sudo apt-get install qtbase5-dev
. - Download the
Latest Release
ofCMake Unix/Linux Source
from the CMake download website, calledcmake-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.
执行完了后再编译,发现就顺利解决这个问题了。