t-sakashita / rokko

Integrated Interface for libraries of eigenvalue decomposition
Boost Software License 1.0
10 stars 2 forks source link

elmental.cppのコンパイル時にmpc.hが見つからないエラー #595

Closed t-sakashita closed 3 years ago

t-sakashita commented 3 years ago
[ 94%] Building CXX object rokko/CMakeFiles/rokko.dir/elemental/elemental.cpp.o
cd /Users/sakashitatatsuya/build/rokko/rokko && /opt/local/bin/mpicxx -DROKKO_BUILD_SHARED_LIBS=1 -Drokko_EXPORTS -I/Users/sakashitatatsuya/build/rokko -I/Users/sakashitatatsuya/development/rokko -I/Users/sakashitatatsuya/build/rokko/3rd-party/cblas/include -I/Users/sakashitatatsuya/development/rokko/3rd-party/cblas/include -I/Users/sakashitatatsuya/build/rokko/3rd-party/lapacke/include -I/Users/sakashitatatsuya/development/rokko/3rd-party/lapacke/include -I/Users/sakashitatatsuya/development/rokko/3rd-party/eigen3 -I/Users/sakashitatatsuya/development/rokko/3rd-party/googletest/include -I/Users/sakashitatatsuya/rokko/eigenexa/eigenexa-2.7-2/Debug/include -I/Users/sakashitatatsuya/rokko/elemental/elemental-0.87.7-1/Debug/include -I/Users/sakashitatatsuya/rokko/petsc/petsc-3.15.1-1/Debug/include -I/Users/sakashitatatsuya/rokko/slepc/slepc-3.15.1-1/Debug/include -I/Users/sakashitatatsuya/rokko/trilinos/trilinos-13.0.1-3/Debug/lib/cmake/Anasazi/../../../include -fopenmp=libomp -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -fPIC -std=c++17 -o CMakeFiles/rokko.dir/elemental/elemental.cpp.o -c /Users/sakashitatatsuya/development/rokko/rokko/elemental/elemental.cpp
In file included from /Users/sakashitatatsuya/development/rokko/rokko/elemental/elemental.cpp:13:
In file included from /Users/sakashitatatsuya/development/rokko/rokko/elemental/solver.hpp:14:
In file included from /Users/sakashitatatsuya/rokko/elemental/elemental-0.87.7-1/Debug/include/El.hpp:14:
In file included from /Users/sakashitatatsuya/rokko/elemental/elemental-0.87.7-1/Debug/include/El/core.hpp:245:
/Users/sakashitatatsuya/rokko/elemental/elemental-0.87.7-1/Debug/include/El/core/imports/mpfr.hpp:13:10: fatal error: 
      'mpc.h' file not found
#include <mpc.h>
         ^~~~~~~
1 error generated.
make[2]: *** [rokko/CMakeFiles/rokko.dir/elemental/elemental.cpp.o] Error 1

Apple clangコンパイラを使用。

t-sakashita commented 3 years ago

MacPortを使用。 MacPortの/opt/local/includeをインクルードすれば良い。

-DCMAKE_CXX_FLAGS="-I/opt/local/include"