Open marph91 opened 4 years ago
Seems like the CMake find_package Eigen3 isn't working properly for some reason. Out of curiosity, what does pkg-config --cflags eigen3
show (I don't think cmake actually uses this but I would like to see what path it thinks it is installed to.)
> pkg-config --cflags eigen3
-I/usr/include/eigen3
Does /usr/share/cmake/Modules/FindEigen3.cmake
exist? Are you sure that you are using system cmake and not, for example, Conda-provided cmake? This is certainly a mysterious failure.
The file /usr/share/cmake/Modules/FindEigen3.cmake
exists and looks correct.
I only have the system python installed. Anaconda or similar environments aren't installed.
I will try to search a bit more. Maybe this is a known problem with eigen3 + cmake + opensuse.
Small update: There is a similar issue at openscad/openscad#2082. This points to the eigen source code. It seems like the EIGEN_*
variables are legacy and shouldn't be used anymore.
I'm using opensuse leap and tried to build nextpnr from sources (commit 137241cfef385a68d2ce732a5b3283458790543d). Eigen 3.3.4 is installed. The build fails with the following output:
My workaround was to create a symbolic link
sudo ln -s /usr/include/eigen3/Eigen /usr/include/Eigen
as described here. Another workaround would be to use# include <eigen3/Eigen/Core>
instead of# include <Eigen/Core>
.I guess it works on other linux distributions, since I didn't find any related bug report. Is there a way to fix this for all distributions?