VladimirYugay / KinectFusion

3D geometry estimation from RGB-D data using Kinect Fusion approach
52 stars 9 forks source link

Compilation error #6

Open rjaisw12 opened 2 years ago

rjaisw12 commented 2 years ago

Hi I tried to install the project, and followed the steps: 1) clone the project 2) sudo apt-get install libfreeimage3 libfreeimage-dev 3) cd KinectFusion/libs git clone https://gitlab.com/libeigen/eigen.git 4) download dataset 5) run the cmake part as detailed in the readme

But when I run make, I get the following error

/home/raphael/Bureau/kinectfusion/KinectFusion/src/main.cpp:112:49: error: cannot bind non-const lvalue reference of type ‘std::detail::_Node_iterator<std::pair<const Eigen::Matrix<int, 3, 1>, bool>, false, true>&’ to an rvalue of type ‘std::unordered_map<Eigen::Matrix<int, 3, 1>, bool, matrix_hash<Eigen::Matrix<int, 3, 1> > >::iterator’ {aka ‘std::detail::_Node_iterator<std::pair<const Eigen::Matrix<int, 3, 1>, bool>, false, true>’} 112 | visitedVoxels.begin(); it != visitedVoxels.end(); it++) | ~~~~~~~^~

Do you know why I get this error? Maybe I have an old compiler? Sorry I'm really not an expert at C++

Thank you, Raphaël

BikramjeetSingh commented 2 years ago

I'm running into the same error. I'm using g++ 9.3.0 on Ubuntu 20.04. Would be great if the author could help. Thanks.

Sylver-Chen commented 2 years ago

same problem, g++7.3 on Ubutu 18.04

JECULAI commented 2 years ago

Does anyone solve this problem?

VladimirYugay commented 2 years ago

Sorry guys, I didn't really touch this for a long time. Should be fixed now, kudos @quepas!