Closed galexv closed 7 years ago
I think, better submit an issue to CMake or Eigen to get it fixed.
I meant that the problem is Maxent's own cmake/FindEigen3.cmake
.
If i remove it, and also remove the version requirement in CMakeLists.txt
(that is, use find_package (Eigen3 REQUIRED)
), then Eigen3 is found and Maxent is built successfully.
I will re-add version check and make the patch.
If I code up a C++ file and use the equivalent -I${EIGEN3_INCLUDE_DIR}
(omitting the eigen3 part), the compiler can't find the headers. Is there something in the Eigen3 documentation that allows for the eigen3/ folder?
Looks like in some update since I uploaded the file, they've include changed how it finds the path. We can remove it if you trust that cmake comes with FindEigen3.cmake
, or just update it to the latest version
IMHO, it is not CMake that comes with the file.
Like in the case of ALPSCore, one needs to set export Eigen3_DIR=/where/eigen3/installed
, and then find_package(Eigen3)
will find it (or, if Eigen3 is installed in "system" directories, even setting the variable is not needed).
Sorry for spamming with PRs. :) (Request https://github.com/CQMP/Maxent/pull/24)
I think this is done – seems to work. Any reason to keep it open?
I have Eigen3 installed. I see this:
The cmake script looks at a wrong place: on my system it is
${EIGEN3_INCLUDE_DIR}/eigen3/Eigen/src/Core/util/Macros.h
rather than${EIGEN3_INCLUDE_DIR}/Eigen/src/Core/util/Macros.h
.We should probably better use Eigen3's own
Eigen3Config.cmake
file.