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. 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: It should show up with whichever version you just downloaded.Ĭongrats you now have the updated version of cmake.Īs per the comment by John, this is version specific, these exact same directions (for the first method at least) are available here for the latest version of CMake.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. Restart your terminal and type cmake -version Make sure if you copied the path from windows explorer you replace \ with / Once extracted cd into the folder (cmake-/cmake" Next after its finished downloading Extract the file (through winrar/winzip/7zip/ or terminal) into that same directory. If there is not a top level directory create a cmake folder in the C drive or what ever drive you save your projects to. If you have a folder where you maintain all your projects I suggest downloading the file into your top most directory where your projects are.įor example all my projects are in a folder called "Github" so I would download the file into my "Github" Folder. Go to and download the Latest Ubuntu version. It is not elegant, it is not clean, but it does work. Note: if the above doesn't work, be very careful when trying the below steps. Next add the updated repository by typing in the following sudo apt-add-repository 'deb bionic main'Īnd it should be updated to the latest version. Sudo apt-get install apt-transport-https ca-certificates gnupg software-properties-common wgetĪfter that is finished wget -O - 2>/dev/null | sudo apt-key add. Run the following in your WSL terminal sudo apt-get update
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |