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