CompPhysVienna / n2p2

n2p2 - A Neural Network Potential Package
https://compphysvienna.github.io/n2p2/
GNU General Public License v3.0
217 stars 82 forks source link

MacOS 'Eigen/Core' file not found #145

Open fireballpoint1 opened 2 years ago

fireballpoint1 commented 2 years ago

Describe the bug While doing a make all in the src directory, The compiler can't find Eigen even when it is installed. I see from the logs that it is trying to find eigen at /usr/include/eigen/ however, macos has depreciated the use of /usr/include and instead uses /usr/local/include.

Command being run

mpic++ -O3 -march=native -std=c++11 -Wno-long-long -g -pedantic-errors -Wall -Wextra -I./ -I../../include/ -I./ -I/usr/include/eigen3/ -DEIGEN_USE_BLAS -DEIGEN_DONT_PARALLELIZE -o KalmanFilter.o -c KalmanFilter.cpp

Proof that eigen is present image

philippmisof commented 2 years ago

I've already gave you a rather general answer in #133. But with this additional information I can be more specific: Option 1: symlink /usr/local/include/eigen3/Eigen into /usr/local/include/, or Option 2: In src/makefile.* set PROJECT_EIGEN=/usr/local/include/eigen3/