ubuntu18.04編譯openpose時遇到的問題


在編譯最后的時候遇到一個問題,一直無法解決

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 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.

 

執行完了后再編譯,發現就順利解決這個問題了。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM