I have CMake installed on my Ubuntu Linux. Trying to run CMake GUI in Linux. I found it works in Windows, but where to get it and how to run in Linux?
If you're building the latest from source, this is a lot harder than anyone else here suggests. I finally found this that got it working:
First, download the source from: https://cmake.org/download/
More specifically for Ubuntu 14.04 or higher, 64 bit get: https://cmake.org/files/v3.5/cmake-3.5.2.tar.gz
Download it to the following directory (or any directory you like!): /opt/dev-tools-sources
Unzip it there, using GUI archive manager or
$ tar -zxvf cmake-3.5.2.tar.gz
You should have now a folder like this: /opt/dev-tools-sources/cmake-3.5.2
Go to this folder:
$ cd /opt/dev-tools-sources/cmake-3.5.2
Install openssl to allow CMAKE have access to ssl protected websites if it needs to download extra files
$ sudo apt install openssl libssl-dev
Edit the bootstrap file and change the line:
cmake_options="-DCMAKE_BOOTSTRAP=1"
To this
cmake_options="-DCMAKE_BOOTSTRAP=1 -DCMAKE_USE_OPENSSL=ON"
If you want cmake-gui, you will need qt4 libs an ncurses
$ sudo apt install libqt4-dev qt4-dev-tools libncurses5-dev
Run the configuration (you need to have gcc and g++ 4.7 or higher installed. I recommend 4.8.4 or higher actually!)
$ ./configure --qt-gui
Make sure in the generated CMakeCache.txt, GUI is set to TRUE, open CMakeCache.txt with any editor and check the following line:
BUILD_QtDialog:BOOL=ON
If it was
OFF
or0
, make itON
or1
It is time to build executables and libraries from source:
$ make -j2
Now, install:
$ sudo make install
Confirm you also got GUI version with
$ cmake-gui