-
Notifications
You must be signed in to change notification settings - Fork 840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building on Windows and Eigen #692
Comments
Okay I resolved it by... actually running CMake on Eigen 🤦♂️. The Eigen webpage bamboozled me with the following:
so I thought it's optional, but it creates the needed
and
|
Glad you solved this because I looked at this yesterday and wasn't sure what to suggest! |
@PNeigel Hello, pNeigel, excuse me, I saw you solve the cmake issue of Eigen when compiling Pangolin on Windows. What is meaning of " running cmake on Eigen" in your answer, did you mean using Cmake-gui to compile Eigen and then generated Eigen3Config.cmake? Thanks, I also met the same question. |
Maybe related to #574, but didn't help me.
I cannot configure CMake on Windows because of Eigen. First problem, it is not found, which is understandable since it's a header only library. These two CMakeLists need Eigen3
Pangolin/components/pango_geometry/CMakeLists.txt
Line 3 in 52c45ba
Pangolin/components/pango_opengl/CMakeLists.txt
Line 21 in 52c45ba
First problem here is that the
CONFIG
parameter makes CMake look forEigen3Config.cmake
oreigen3-config.cmake
, which doesn't exist in the eigen3 unpacked source.If the
CONFIG
parameter is changed toMODULE
then find_package would invoke a FindEigen3.cmake, except it doesn't exist. If I rename FindEigen.cmake into FindEigen3.cmake, then the script is used and (in accordance to #574) the EIGEN_INCLUDE_DIR is actually found andEigen_FIND_VERSION
is correctly set (in my case to 3.4.90), but CMake now complains thatIf I then manually just add a variable
Eigen3_FOUND=1
, then it configures, but actually generating the build files gives me a ton of errors likeThat's where I'm currently stuck.
The text was updated successfully, but these errors were encountered: