KinectFusion
KinectFusion copied to clipboard
Compilation error
Hi I tried to install the project, and followed the steps:
- clone the project
- sudo apt-get install libfreeimage3 libfreeimage-dev
- cd KinectFusion/libs git clone https://gitlab.com/libeigen/eigen.git
- download dataset
- 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
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.
same problem, g++7.3 on Ubutu 18.04
Does anyone solve this problem?
Sorry guys, I didn't really touch this for a long time. Should be fixed now, kudos @quepas!