cmakecmake-gui

How to install cmake-gui latest version on Ubuntu


When installing from package-manager, cmake-gui or cmake-qt-gui are shipped with an older version of cmake.

Even after I build and install cmake's latest version from source, cmake-gui continues to use the older version.

How to force cmake-gui to use cmake latest version builded from source?


Solution

  • The cmake-gui package from repository has a built-in cmake, those two have the same version.

    Steps to install cmake-gui latest version.

    1. Install checkinstall to easily remove cmake in the future: sudo apt-get install checkinstall;
    2. Download latest cmake from official site;
    3. Extract the compressed file to some folder;
    4. Open a terminal inside that folder;
    5. Execute: ./bootstrap --qt-gui;
    6. Execute: checkinstall -D make install; You will be prompted with some questions, answer them;
    7. Finished installation! Type cmake at Ubuntu's search bar and you will see a CMake icon;
    8. Verify the version clicking at help >> about;