Build and install CMAKE 3.5.2 on Ubuntu

First of all download the source from here:

More specificly for Ubuntu 14.04 or higher, 64 bit:

Download it to the following directory (or any directory you like!)

Unzip it there, using gui or command line

You should have now a folder like this

Go to this folder

Install openssl to allow CMAKE have access to ssl protected websites if it needs to download extra files

Edit the bootstrap file and change the line:

To this

If you want cmake-gui, you will need qt4 libs an ncurses

Run the configuration (you need to have gcc and g++ 4.7 or higher installed. I recommend 4.8.4 or higher actually!)

Make sure in the generated CMakeCache.txt, GUI is set to TRUE, open CMakeCache.txt with any editor and check the following line:

If it was OFF or 0, make it ON or 1

It is time to build executables and libraries from source:

Now, install:

Confirm you got gui version also


Saeid Yazdani

An Electronics Engineer with passion in Embedded Systems, Wireless Sensor Networks, Assembly, Desktop and Mobile Development, Web Development and generally anything that has to do with hardware and software of any kind!

One Comment:

  1. Howard Johnson


Leave a Reply

Your email address will not be published. Required fields are marked *