简体   繁体   中英

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. I follow the manual installation instruction in the README.txt file. I have modified the config.hpp file to indicate that I have LAPACK and BLAS installed. 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. I added the #include header to example2.cpp and use the -framework Accelerate flag to compile in the makefile. However, it is still not working. What gives? I should have LAPACK and BLAS installed by default with Xcode, no? 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

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

Reference Link

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM