Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

osx build error "fatal error: 'boost/numeric/ublas/matrix.hpp' file not found" #95

Open
mreinstein opened this issue May 18, 2017 · 2 comments

Comments

@mreinstein
Copy link

I was running into an error when attempting to build on mac:

λ cd src/
λ make
In file included from ./SubbandAnalysis.h:11:
./MatrixUtility.h:12:10: fatal error: 'boost/numeric/ublas/matrix.hpp' file not found

I fixed this by opening src/Makefile and changing this line:

BOOST_CFLAGS=-I/usr/local/include/boost-1_35

to:

BOOST_CFLAGS=-I/usr/local/include
@mreinstein mreinstein changed the title building on osx osx build error "fatal error: 'boost/numeric/ublas/matrix.hpp' file not found" May 18, 2017
@eladnava
Copy link

Cheers @mreinstein, in my case, the line needed to read as follows:

BOOST_CFLAGS=-I/usr/local/Cellar/boost/1.75.0_2/include

Substitute 1.75.0_2 with your own Homebrew installed version of boost.

@mreinstein
Copy link
Author

The internet is wonderful, isn't it? Especially the dev community parts. Being able to search for these little things and find them 4 years later gives me hope for humanity. ❤️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants