fabianschenk / RESLAM

RESLAM: A real-time robust edge-based SLAM system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building Error while running 'make -j'

YinghuiYou opened this issue · comments

I have errors while running the command 'make -j', the error messages are listed below.

Error messages

Error 1

~/RESLAM/System/System.cpp:97:71: error: no matching function for call to ‘read(cv::FileNode, std::__cxx11::string&, const char [1])’ cv::read(fs["InputDatasetConfigFileName"],DatasetConfigFileName,"");

Error 2

~/RESLAM/System/System.cpp:97:47: error: cannot bind non-const lvalue reference of type ‘cv::String&’ to an rvalue of type ‘cv::String’ cv::read(fs["InputDatasetConfigFileName"],DatasetConfigFileName,"");

Opinions

As for the error 2, someone on the internet said that adding a 'const' before the parameter in the function definition and declaration would fixed the error. I tried it ,modifying the opencv source code, and more errors came out. Obviously, when error 2 was fixed, the error 1 would disappear. But I have no idea how to fixed it.
The opencv version on my ubuntu 18.04 is 3.2.0.

The version of ceres on my computer is 2.0.0. After installing a version of 1.13, no errors came out. Before that, I change the Opencv to a 3.4.0 version.