使用cmake版本3.10的ccmake [英] ccmake using cmake version 3.10
问题描述
我正在尝试安装新的ITK版本,该版本需要cmake版本高于3.9。
I am trying to install the new ITK version which needs a cmake version higher than 3.9
我刚刚下载了cmake 3.10版本。
,安装时在bin文件夹中没有ccmake。通常新的ccmake版本就在这里。
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.
当我想使用apt安装ccmake时,它将链接到3.5 cmake版本。
when I want to install ccmake using apt it links it to the 3.5 cmake version.
如何将ccmake版本链接到cmake的3.10版本?
How can I do to have a ccmake version linked to the 3.10 version of cmake ?
推荐答案
将我的评论变成答案
您可以使用以下教程来构建和安装最新的CMake版本:如何从命令中安装最新版本的cmake
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?
但是-就您提出问题的时间而言-缺少安装<$ c $的提示c>首先诅咒库/标题(请参见此处,
如果没有它,您将无法构建和安装 ccmake
)。因此,我在Ubuntu上遇到了同样的问题,并且能够安装并使用以下步骤重建它:
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.
这篇关于使用cmake版本3.10的ccmake的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!