Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

ubuntu 16.04 - 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 ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...