cmake报错CMake 3.12 or higher is required. You are running version 3.10.2
解决方案
sudo apt remove --purge cmake
hash -r
sudo snap install cmake --classic
cmake --version
解决方案
sudo apt remove --purge cmake
hash -r
sudo snap install cmake --classic
cmake --version