在編譯最后的時候遇到一個問題,一直無法解決
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.
執行完了后再編譯,發現就順利解決這個問題了。