LoginSignup
1

More than 5 years have passed since last update.

Installing CMake on Linux

Posted at

CMakeのインストールに必要だったもの.

  • cmake-2.8.12.2
  • cURL-7.36.0
  • libarchive-3.1.2
  • expat-2.1.0

cmake以外のものをインストールして,cmakeのディレクトリで以下のようにコンパイルしようとすると...

$ ./configure --prefix=$HOME/local/bin
$ make VERBOSE=1
...
/usr/bin/gcc   -I/csc/home2/kobayashi/src/octave-installation/cmake-2.8.12.2/Utilities -I/csc/home2/kobayashi/local/include/ncurses -I/csc/home2/kobayashi/src/octave-installation/cmake-2.8.12.2/Source/CursesDialog/form    -o CMakeFiles/cmForm.dir/fld_arg.c.o   -c /csc/home2/kobayashi/src/octave-installation/cmake-2.8.12.2/Source/CursesDialog/form/fld_arg.c
/csc/home2/kobayashi/src/octave-installation/cmake-2.8.12.2/Source/CursesDialog/form/form.priv.h:34 から include されたファイル中,
                 /csc/home2/kobayashi/src/octave-installation/cmake-2.8.12.2/Source/CursesDialog/form/fld_arg.c:33 から:
/csc/home2/kobayashi/src/octave-installation/cmake-2.8.12.2/Source/CursesDialog/form/form.h:46:31: error: ncurses/ncurses.h: そのようなファイルやディレクトリはありません

というエラーで止まってしまった.

http://comments.gmane.org/gmane.comp.programming.tools.cmake.user/42902
を見ると,どうもCMakeCache.txtのCURSES_INCLUDE_PATHが,
$HOME/local/include/ncurses
となっており,
$HOME/local/include
となっていないことが問題だった.CMakeCache.txtを書き換えたらコンパイルが通った.

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1