Press [enter] to edit option Press [d] to delete an entry CMake Version 3.10.2
Press [c] to configure
Press [h] for help Press [q] to quit without generating
Press [t] to toggle advanced mode (Currently Off)
CMake Error at CMakeLists.txt:3 (cmake_minimum_required):
CMake 3.12.0 or higher is required. You are running version 3.10.2
~/dev/cpp/QGIS/build-master$ cmake --version
cmake version 3.21.3
CMake suite maintained and supported by Kitware (kitware.com/cmake).
不知道CMake是啥,
但看你的 Error 是 多版本造成的吧?
运行的脚本或程序里面的环境变量中,是否用的旧版本的CMake?
注意第一行的:
Press [d] to delete an entry CMake Version 3.10.2
删除!
确实,我已经找到解决方法了,把软连接删除,生成一个3.21.3的就好了
rm cmake
ln -s cmake 3.21.3
即 删掉 /usr/local
里原来的,再创建一个新的
@echo_lovely:
很棒!你这才是最优答案!
@快乐的凡人721: 那确实,但是自己不能给自己最佳