c++ - 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
解决方案
您可以通过编译源代码(在此处获得)来安装 Eigen 3.3.7。
推荐阅读
- yii2 - yii\base\ErrorException 使用未定义的常量标志 - 假定为“标志”(这将在 PHP 的未来版本中引发错误)
- flutter - 我在我的颤振应用程序中将 Paytm 全部用于一个 sdk。它抛出 PlatformException 错误
- python - 如何按自定义顺序对给定的字符串列表进行排序?
- flutter - 颤振应用程序在 iOS 上使用 AppBar 崩溃
- r - R 是什么时候开始支持类似 here-document 的功能的?
- git-lfs - Git clone git-lfs filter-process: git-lfs: command not found
- android - AWS EC2 上的 Pasre 服务器在云代码上给出 141 错误
- spring-boot - Spring Data Page Jackson serialization issue
- javascript - Adding an event listener with useEffect hook for scrolling
- mysql - 如何在同一个查询输出中同时拥有接待员姓名和医生姓名?