echoprint-codegen icon indicating copy to clipboard operation
echoprint-codegen copied to clipboard

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

Open mreinstein opened this issue 8 years ago • 2 comments

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 avatar May 18 '17 17:05 mreinstein

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.

eladnava avatar Apr 15 '21 18:04 eladnava

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. ❤️

mreinstein avatar Apr 15 '21 19:04 mreinstein