PRBonn / refusion

ReFusion: 3D Reconstruction in Dynamic Environments for RGB-D Cameras Exploiting Residuals
Other
266 stars 49 forks source link

something wrong when i compile this project #1

Closed StarryN closed 5 years ago

StarryN commented 5 years ago

Firstly , Thanks for your awesome work! I met something wrong with eigen when i use catkin to build this project, and the error as below:

/usr/local/include/eigen3/Eigen/src/Core/arch/CUDA/Half.h(96): error: identifier "x" is undefined /usr/local/include/eigen3/Eigen/src/Core/arch/CUDA/Half.h(136): error: identifier "x" is undefined /usr/local/include/eigen3/Eigen/src/Core/arch/CUDA/Half.h(136): error: class "Eigen::half" has no member "x" /usr/local/include/eigen3/Eigen/src/Core/arch/CUDA/Half.h(221): error: class "Eigen::half" has no member "x" /usr/local/include/eigen3/Eigen/src/Core/arch/CUDA/Half.h(221): error: class "Eigen::half" has no member "x" /usr/local/include/eigen3/Eigen/src/Core/arch/CUDA/Half.h(274): error: class "__half" has no member "x" /usr/local/include/eigen3/Eigen/src/Core/arch/CUDA/Half.h(370): error: class "Eigen::half" has no member "x" /usr/local/include/eigen3/Eigen/src/Core/arch/CUDA/Half.h(376): error: class "Eigen::half" has no member "x" /usr/local/include/eigen3/Eigen/src/Core/arch/CUDA/Half.h(385): error: class "Eigen::half" has no member "x" /usr/local/include/eigen3/Eigen/src/Core/arch/CUDA/Half.h(385): error: class "Eigen::half" has no member "x" /usr/local/include/eigen3/Eigen/src/Core/arch/CUDA/Half.h(553): error: class "Eigen::half" has no member "x" /usr/local/include/eigen3/Eigen/src/Core/arch/CUDA/Half.h(553): error: class "Eigen::half" has no member "x" /usr/local/include/eigen3/Eigen/src/Core/arch/CUDA/Half.h(585): error: class "Eigen::half" has no member "x"

I have tried to change the version of eigen few times, but it did not work. Can you give me some advice?

Eman7C7 commented 5 years ago

Hi,

Which operating system are you using? And which version of Eigen?

StarryN commented 5 years ago

ubuntu 16.04 , I have tried eigen 3.3.4 and eigen 3.3.0

Eman7C7 commented 5 years ago

With 3.3.4 I'm aware that it doesn't work. On ubuntu 16.04 it should work without any problem with the version of Eigen available in the repository. Try to remove all the installations of Eigen that you have on your system and just install it from apt. If it still doesn't work, try to manually install Eigen 3.3.7 and use that (follow the section "Ubuntu 18.04" of the README).

StarryN commented 5 years ago

Eigen 3.3.7 works well , thank you very much!