CMake Error at CMakeLists.txt:29 (cmake_minimum_required): CMake 3.5.1 or higher is required. You are running version 3.3.2


cmake需要更高的版本,參考:https://blog.csdn.net/qq_23958451/article/details/100526699

卸載低的版本安裝更高版本的cmake

不知道為什么,我在官網上下載的最新版cmake3.17,按照上面的教程進行到./configure這一步時會出現問題,

collect2: error: ld returned 1 exit status
Makefile:2: recipe for target 'cmake' failed
make: *** [cmake] Error 1
---------------------------------------------
Error when bootstrapping CMake:
Problem while running make
---------------------------------------------
Log of errors: /home/work/gaotong/xinying/cmake-3.17.2/Bootstrap.cmk/cmake_bootstrap.log

可能是版本太新了吧,我按照另一篇博客:https://blog.csdn.net/qq_34935373/article/details/90266958安裝了cmake3.9.2版本,沒出現問題,也可以滿足需求。

cmake的官網:https://cmake.org/download/


免責聲明!

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



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