ethz-asl / opencv3_catkin

Catkin wrapper for opencv3
8 stars 18 forks source link

Does not find proper Eigen #22

Open mtee opened 5 years ago

mtee commented 5 years ago

Hi, the build fails here on ros kinetic in ubuntu 16.04 with the following message:

/home/user/maplab_ws/build/opencv3_catkin/opencv3_contrib_src/modules/rgbd/src/odometry.cpp:41:10: fatal error: unsupported/Eigen/MatrixFunctions: No such file or directory

Even though there is the said file in the /home/user/maplab_ws/devel/include.

I assume the build process ignores the devel files and tries to include my system eigen, because when I go into the odometry.cpp and replace

include <unsupported/Eigen/MatrixFunctions>

by

include <eigen3/unsupported/Eigen/MatrixFunctions>

it finds the file (but I get tons of other errors).

I saw there is a flag USE_SYSTEM_EIGEN, but setting it to "OFF" sadly has no effect at all.

My system eigen version is 3.2.10 and the one in the devel is provided by your package eigen_catkin and is 3.3.90.

mfehr commented 5 years ago

Hi @mtee I guess this is already way too late and might not be too helpful, but maybe someone has the same issue now. We just had the same issue when installing maplab on a 16.04 machine. If you don't need the opencv_rgbd module you can just disable it in the CMakelist by removing these two lines:

    -DBUILD_opencv_rgbd=ON

and 

    opencv_rgbd

You might need to clean and rebuild your workspace for this to work.

We haven't looked for a proper solution yet.

mtee commented 5 years ago

Hi @mfehr, thanks for letting me know