Eigen3无法使用cmake安装:找不到RegexUtils

问题描述 投票:1回答:1

我尝试在ubuntu 16上使用cmake安装eigen3.3.7,但cmake失败。

我遵循INSTALL文件提示:1)我提取tar档案2)创建一个名为buildDir的“ build”目录3)转到构建目录:cd buildDir4)启动cmake:cmake ../ Eigen

然后,cmake进程以错误结束:

CMakeLists.txt中的CMake错误:1(包括):包含找不到加载文件:

RegexUtils

CMakeLists.txt:2(test_escape_string_as_regex)的CMake错误:未知的CMake命令“ test_escape_string_as_regex”。

请问一些提示吗?问候西尔万

我遵循了chtz的建议,但是仍然失败,请参阅下面的控制台输出:

     syl@spica:~/tmp/eigen/eigen-eigen-323c052e1731$ cat INSTALL 
Installation instructions for Eigen
***********************************
Method 2. Installing using CMake
********************************

Let's call this directory 'source_dir' (where this INSTALL file is).
Before starting, create another directory which we will call 'build_dir'.

Do:

  cd build_dir
  cmake source_dir
  make install

syl@spica:~/tmp/eigen/eigen-eigen-323c052e1731$ mkdir build && cd build

syl@spica:~/tmp/eigen/eigen-eigen-323c052e1731/build$ cmake ../
CMake Error at CMakeLists.txt:1 (include):
  include could not find load file:

    RegexUtils


CMake Error at CMakeLists.txt:2 (test_escape_string_as_regex):
  Unknown CMake command "test_escape_string_as_regex".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.5)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "/home/syl/tmp/eigen/eigen-eigen-323c052e1731/CMakeFiles/CMakeOutput.log".
syl@spica:~/tmp/eigen/eigen-eigen-323c052e1731/build$ vim ../CMakeFiles/CMakeOutput.log

感谢您的帮助。

eigen3
1个回答
0
投票

此命令序列在下载后似乎正常工作(在当前情况下,最新版本的eigen-3.3.7):

bunzip2本征-3.3.7.ta​​r.bz2

tar -xvf本征-3.3.7.ta​​r

cd eigen-3.3.7 /

mkdir构建

cd版本

cmake ../。

sudo make install

© www.soinside.com 2019 - 2024. All rights reserved.