Where is the CMake GUI for Linux?

Update: As of CMake 3.7.2, cmake-gui is still not built by default, but can easily be added to the build by specifying one additional flag. Qt is still required, I am using 4.8 but I'm sure other versions will work fine.

Download the source from the website, extract to a directory of your choosing, then run the following at the commmand line:

  • ./bootstrap --qt-gui
  • gmake
  • gmake install (optional - don't forget sudo if you need it)

Hey presto! cmake-gui is now present in the bin directory along with the other tools.

Note: if the build process fails in some way, just check the error message and work with it! There are too many pre-requisites and variables, attempting to detail them all would make the post tl;dr and would be out of date before being submitted (see one of the other posts for an example of this).


Basic installation for CMake

Under linux it comes with the default installation from the cmake website (at least for version 3.5.1)

It is installed in the same place as cmake, which on my machine is:

/usr/local/bin/cmake-gui

I built my cmake from source and by default, cmake-gui does not get built. To add as a target, the following variable must be set:

BUILD_QtDialog

eg. SET(BUILD_QtDialog TRUE) should do it

Note: cmake-gui is based on Qt so you must have Qt installed if you want to build it.


ccmake curses UI

sudo apt-get install cmake-curses-gui
cd build
ccmake ..

Then:

  • edit your options
  • hit c to update the cache
  • q to exit

And now you can make again with the new variables.

Tested in Ubuntu 16.10, cmake 3.5.2.


For Ubuntu (and I guess for more linux versions):

 sudo apt-get install cmake-qt-gui

Can be started after installation as cmake-gui or by using the ubuntu GUI (just type cmake and it will show the typical cmake-gui-icon)


cmake is documented (type man cmake and see also cmake.org) as being a command, so it should not have any GUI interface:

DESCRIPTION

  The  "cmake" executable is the CMake command-line interface.  It may be
   used to configure projects in scripts.  Project configuration  settings
   may be specified on the command line with the -D option.

And it is just generating a Makefile (to be used by the make command). I don't understand what kind of GUI are you expecting.

On Debian and derivatives like Ubuntu, you might install the cmake-gui or cmake-qt-gui package then run the cmake-gui command.

And make is often running GCC. Try make -p to understand the default rules of GNU make... So read documentation of GNU make and of GCC (and probably of GDB).