首页 > 解决方案 > MacOS上安装eigen3.3.7

问题描述

我正在尝试在 MacOS 上构建一个程序,该程序需要 Eigen version <= 3.3.7,但我的有 3.3.8,brew install eigen 我去了 Eigen 网站,但 3.3.7 源不再可用。任何解决方法?

非常感谢!

更新:非常感谢,但我仍然对如何继续感到困惑。以下是安装详细信息和目录信息的信息。

我要构建的程序源代码目录如下所示:

program 
   cmake
   Cmakelist.txt
   build

该程序具有以下说明:

Create the build directory in the source tree root

mkdir build
Configure cmake, from the build directory, passing the Shogun source root as an argument. It is recommended to use any of CMake GUIs (e.g. replace cmake .. with ccmake ..), in particular, if you feel unsure about possible parameters and configurations. Note that all cmake options read as -DOPTION=VALUE.

cd build
cmake [options] ..
Compile

make
Install (prepend sudo if installing system-wide), and you are done.

make install
Sometimes you might need to clean up your build (e.g. in case of some major changes). First, try

make clean

然后我下载了eigen3.3.7,其中的INSTALL文件如下。我应该如何进行?


Method 1. Installing without using CMake
****************************************

You can use right away the headers in the Eigen/ subdirectory. In order
to install, just copy this Eigen/ subdirectory to your favorite location.
If you also want the unsupported features, copy the unsupported/
subdirectory too.
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

标签: c++macospackageeigeneigen3

解决方案


您可以通过编译源代码(在此处获得)来安装 Eigen 3.3.7。


推荐阅读