微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在MacOS上安装eigen3.3.7

如何解决在MacOS上安装eigen3.3.7

我正在尝试在MacOS上构建程序,该程序需要Eigen version <= 3.3.7,但我的brew install eigen有3.3.8 我去了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

解决方法

您可以通过编译源代码(available here)来安装Eigen 3.3.7。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。