p.deman
p.deman

Reputation: 602

ccmake using cmake version 3.10

I am trying to install the new ITK version which needs a cmake version higher than 3.9

I have just download the cmake 3.10 version. and when I install it there is no ccmake in the bin folder. usually the new ccmake version is here.

when I want to install ccmake using apt it links it to the 3.5 cmake version.

How can I do to have a ccmake version linked to the 3.10 version of cmake ?

Upvotes: 3

Views: 6332

Answers (2)

Florian
Florian

Reputation: 43030

Turning my comment into an answer

You can use the following tutorial to build and install the latest CMake version: How do I install the latest version of cmake from the command line?

But - as for the time of your question - it was lacking the hint to install the curses library/headers first (see here, you don't get ccmake built and installed without it ). So I had the same problem on my Ubuntu and was able to install and rebuild it with the following steps:

# sudo apt-get install libncurses-dev
# cd ~/temp/cmake-3.10.2
# cmake .
...
# make -j8
...
# sudo make install
... 
# ccmake
Usage

  ccmake <path-to-source>
  ccmake <path-to-existing-build>

Specify a source directory to (re-)generate a build system for it in the
current working directory.  Specify an existing build directory to
re-generate its build system.

Run 'ccmake --help' for more information.

Upvotes: 3

Th. Thielemann
Th. Thielemann

Reputation: 2824

The binary ccmake is a target of the make file.

To get all, perform:

./configure
make all
sudo make install

To just get ccmake, perform:

make ccmake

Upvotes: 0

Related Questions