![]() Make sure in the generated CMakeCache.txt, GUI is set to TRUE, open CMakeCache. > This may mean that the package is missing, has been obsoleted, or > is only available from another source > E: Package 'cmake' has no installation candidate ' apt-cache policy cmake cmake: Installed: 3.7.2-1 Candidate: 3.7.2-1 Version table: 3.7. Run the configuration (you need to have gcc and g++ 4.7 or higher Done > Package CMake is not available, but is referred to by another package. $ sudo apt install libqt4-dev qt4-dev-tools libncurses5-dev If you want cmake-gui, you will need qt4 libs an ncurses To this cmake_options="-DCMAKE_BOOTSTRAP=1 -DCMAKE_USE_OPENSSL=ON" If it needs to download extra files $ sudo apt install openssl libssl-devĮdit the bootstrap file and change the line: Install openssl to allow CMAKE have access to ssl protected websites Go to this folder: $ cd /opt/dev-tools-sources/cmake-3.5.2 You should have now a folder like this: /opt/dev-tools-sources/cmake-3.5.2 Unzip it there, using GUI archive manager or $ tar -zxvf cmake-3.5.2.tar.gz More specifically for Ubuntu 14.04 or higher, 64 bit get:ĭownload it to the following directory (or any directory you like!): I finally found this that got it working: If you're building the latest from source, this is a lot harder than anyone else here suggests. Note: cmake-gui is based on Qt so you must have Qt installed if you want to build it. To add as a target, the following variable must be set: BUILD_QtDialogĮg. I built my cmake from source and by default, cmake-gui does not get built. 1 Answer Sorted by: 2 Solved It turned out that I have MinGW installed and the make location registered as an environment variable in PATH. It is installed in the same place as cmake, which on my machine is: /usr/local/bin/cmake-gui Under linux it comes with the default installation from the cmake website (at least for version 3.5.1) 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). Hey presto! cmake-gui is now present in the bin directory along with the other tools. gmake install (optional - don't forget sudo if you need it).Qt is still required, I am using 4.8 but I'm sure other versions will work fine.ĭownload the source from the website, extract to a directory of your choosing, then run the following at the commmand line: ![]() 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.
0 Comments
Leave a Reply. |