This tutorial explains the procedure to install CMake in Ubuntu 20.04 LTSC with GUI
sudo apt-get install qt5-default
-
Download CMake release package: source code
-
Extract and copy the folder in
/opt
-
Navigate to the
/opt/cmake-x.xx.x-xx
and run:
sudo ./bootstrap --qt-gui
- Compile CMake
sudo make
- Install CMake
sudo make install
- Once is finished, check CMake version
cmake --version
- Check CMake GUI
cmake-gui
for ubuntu 22.04 you need:
sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
qt5-default-not-in-ubuntu-21-04