KinectFusion icon indicating copy to clipboard operation
KinectFusion copied to clipboard

Compilation error

Open rjaisw12 opened this issue 3 years ago • 4 comments

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

rjaisw12 avatar Oct 30 '21 15:10 rjaisw12

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.

BikramjeetSingh avatar Nov 06 '21 05:11 BikramjeetSingh

same problem, g++7.3 on Ubutu 18.04

Sylver-Chen avatar Nov 16 '21 12:11 Sylver-Chen

Does anyone solve this problem?

JECULAI avatar Jan 02 '22 06:01 JECULAI

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

VladimirYugay avatar Feb 24 '22 18:02 VladimirYugay