-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to compile on M1 mac due to libboost dependency #131
Comments
Got it to compile on Apple M1 Max macOS 13.5.2. First make sure you have all the other necessary dependencies installed: brew install zlib bzip2 autoconf automake Then install boost at version 1.76 with homebrew (1.83 did not work for me): brew install [email protected] Once installed export compiler flags for it to be able to find boost: export LDFLAGS="-L/opt/homebrew/opt/[email protected]/lib"
export CPPFLAGS="-I/opt/homebrew/opt/[email protected]/include" Also add compiler flags to ignore deprecated and unused variable warnings (needs to be set before export CPPFLAGS="$CPPFLAGS -Wno-deprecated -Wno-unused-but-set-variable" Finally just follow the instructions but additionally pass the boost libdir to ./autogen.sh
./configure --with-boost-libdir=/opt/homebrew/opt/[email protected]/lib
make Hope this might help some people! |
Following everything suggested above, I'm getting the following errors:
|
I was able to compile using @Moomboh 's suggestions. Just to note that I needed to add the extra option:
|
@Moomboh I love you soooooo much! |
When attempting to run
.configure
I get the following error:checking for boostlib >= 1.54... configure: We could not detect the boost libraries (version 1.54 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.
configure: error: libboost_base not found
I tried using homebrew to install boost:
brew install boost
but still get the same errorSo I tried exporting the path to where boost was installed:
BOOST_ROOT=/opt/homebrew/Cellar/boost/1.80.0
Still getting the same error.
I ran the following:
./configure --with-boost=no
^ This successfully executes but upon attempting to run
make
I get the following error:/Library/Developer/CommandLineTools/usr/bin/make all-am
depbase=
echo src/blast.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'
;g++ -DHAVE_CONFIG_H -I. -std=c++11 -pedantic -Wall -Werror -Wno-reorder -I./src/ -g -O2 -MT src/blast.o -MD -MP -MF $depbase.Tpo -c -o src/blast.o src/blast.cpp &&
mv -f $depbase.Tpo $depbase.Po
In file included from src/blast.cpp:7:
In file included from ./src/blast.h:15:
./src/mas.h:31:10: fatal error: 'boost/version.hpp' file not found
#include <boost/version.hpp>
^~~~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [src/blast.o] Error 1
make: *** [all] Error 2
System is M1 MacBook Pro with MacOS Monterey 12.5.1
Any help/advice much appreciated.
The text was updated successfully, but these errors were encountered: