[英]Installing C++ Armadillo library on Mac OS X
I am trying to use the C++ armadillo library (armadillo-0.9.10) on a Mac Pro.我正在尝试在 Mac Pro 上使用 C++ armadillo 库 (armadillo-0.9.10)。 I follow the manual installation instruction in the README.txt file.
我按照 README.txt 文件中的手动安装说明进行操作。 I have modified the config.hpp file to indicate that I have LAPACK and BLAS installed.
我修改了 config.hpp 文件以表明我安装了 LAPACK 和 BLAS。 I then try to compile the examples.
然后我尝试编译示例。 I successfully compile and run example1.cpp, but when I try to run example2.cpp it reports that I need to have ATLAS or LAPACK installed.
我成功编译并运行了 example1.cpp,但是当我尝试运行 example2.cpp 时,它报告我需要安装 ATLAS 或 LAPACK。 I added the #include header to example2.cpp and use the -framework Accelerate flag to compile in the makefile.
我将#include 标头添加到example2.cpp 并使用-framework Accelerate 标志在makefile 中进行编译。 However, it is still not working.
但是,它仍然无法正常工作。 What gives?
是什么赋予了? I should have LAPACK and BLAS installed by default with Xcode, no?
我应该默认使用 Xcode 安装 LAPACK 和 BLAS,不是吗? Any help here would be wonderful.
这里的任何帮助都会很棒。 Thank you, thank you!
谢谢谢谢!
I am not sure if You are still trying to figure this out or now but to answer your original question, you can easily download and setup Armadillo from the website: http://arma.sourceforge.net/download.html我不确定您是否仍在尝试解决这个问题或现在但要回答您的原始问题,您可以从网站轻松下载和设置犰狳: http : //arma.sourceforge.net/download.html
I would rather use home brew instead:我宁愿用家酿代替:
brew install armadillo
Try homebrew.尝试自制。 it will install necessary packages and save your time
它将安装必要的软件包并节省您的时间
brew install homebrew/science/armadillo
The answer above this one returns that: Error: homebrew/science was deprecated, I search for this error and find solution, and it works for me.上面的答案返回:错误:不推荐使用自制软件/科学,我搜索此错误并找到解决方案,它对我有用。 Try this:
尝试这个:
brew install brewsci/science/armadillo
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.