ccmake using cmake version 3.10

前端 未结 2 469
[愿得一人]
[愿得一人] 2020-12-21 07:53

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

相关标签:
2条回答
  • 2020-12-21 08:28

    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.
    
    0 讨论(0)
  • 2020-12-21 08:38

    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
    
    0 讨论(0)
提交回复
热议问题