Joh*_*eet 5 makefile openmp eigen macos-catalina
我正在尝试在运行 Catalina 的 MacBook 上构建 openMVG。当我运行“make”时,我收到一个错误,说它找不到“omp.h”。
jaireaux@Johns-MBP ~/Downloads/software/openMVG/build % make
[ 9%] Built target lib_CoinUtils
[ 12%] Built target lib_Osi
[ 21%] Built target lib_clp
[ 21%] Built target lib_OsiClpSolver
[ 22%] Built target openMVG_stlplus
[ 24%] Built target openMVG_lemon
[ 24%] Built target main_svgSample
[ 33%] Built target openMVG_cxsparse
[ 55%] Built target openMVG_ceres
[ 56%] Built target openMVG_easyexif
[ 57%] Built target openMVG_fast
[ 57%] Built target openMVG_exif
[ 57%] Building CXX object openMVG/features/CMakeFiles/openMVG_features.dir/akaze/AKAZE.cpp.o
In file included from /Users/jaireaux/Downloads/software/openMVG/src/openMVG/features/akaze/AKAZE.cpp:9:
In file included from /Users/jaireaux/Downloads/software/openMVG/src/openMVG/features/akaze/AKAZE.hpp:39:
In file included from /Users/jaireaux/Downloads/software/openMVG/src/openMVG/image/image_container.hpp:12:
In file included from /Users/jaireaux/Downloads/software/openMVG/src/third_party/eigen/Eigen/Dense:1:
/Users/jaireaux/Downloads/software/openMVG/src/third_party/eigen/Eigen/Core:247:10: fatal error: 'omp.h' file not found
#include <omp.h>
^~~~~~~
1 error generated.
make[2]: *** [openMVG/features/CMakeFiles/openMVG_features.dir/akaze/AKAZE.cpp.o] Error 1
make[1]: *** [openMVG/features/CMakeFiles/openMVG_features.dir/all] Error 2
make: *** [all] Error 2
Run Code Online (Sandbox Code Playgroud)
我如何告诉 make 在哪里可以找到“omp.h”(在 /usr/local/include 中。)