How to install cmake-gui latest version on Ubuntu

孤街浪徒 提交于 2020-06-01 05:15:47

问题


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?


回答1:


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;


来源:https://stackoverflow.com/questions/61473421/how-to-install-cmake-gui-latest-version-on-ubuntu

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!