dipetkov / eems

Estimating Effective Migration Surfaces
GNU General Public License v2.0
102 stars 28 forks source link

Error building EEMS in a Mac #55

Open catirato opened 3 years ago

catirato commented 3 years ago

Hi all,

I really hope you can help me out with this!

After installing both BOOST and Eigen, I've update the Makefile inside the "runeems_sats" folder, like this:

EIGEN_INC = /usr/local/include
BOOST_LIB = /usr/local/lib
BOOST_INC = /usr/local/include

Eigen path is /usr/local/include/Eigen and BOOST was installed following the prefix ./bootstrap.sh --prefix=/usr/local/

When I enter "make darwin" I get the following errors (entire command line sent in attachment also):

catarinarato@MacBook-Pro-de-Catarina src % make darwin
c++ -I/usr/local/include -I/usr/local/include -O3 -DNDEBUG -c runeems_sats.cpp -o runeems_sats.o
In file included from runeems_sats.cpp:2:
In file included from ./eems.hpp:3:
In file included from ./util.hpp:19:
In file included from /usr/local/include/boost/math/constants/constants.hpp:11:
/usr/local/include/boost/math/tools/cxx03_warn.hpp:99:1: warning: CAUTION: One or more C++11 features were found to be unavailable [-W#pragma-messages]
BOOST_PRAGMA_MESSAGE("CAUTION: One or more C++11 features were found to be unavailable")
^
/usr/local/include/boost/config/pragma_message.hpp:24:34: note: expanded from macro 'BOOST_PRAGMA_MESSAGE'
# define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x)))
                                 ^
<scratch space>:49:2: note: expanded from here
 message("CAUTION: One or more C++11 features were found to be unavailable")
 ^

[More error messages deleted for clarity]

fatal error: too many errors emitted, stopping now [-ferror-limit=]
162 warnings and 20 errors generated.
make: *** [runeems_sats.o] Error 1

Terminal Saved Output.txt

dipetkov commented 3 years ago

I didn't understand these errors at first. I've updated the Makefile and now the program should install without errors and with the latest version of boost.

First follow these instructions to install boost & eigen with the Homebrew package manager:

  1. Install the Homebrew package manager.
  2. Install boost with brew install boost.
  3. Install eigen3 with brew install eigen.