hanmekim / SceneLib2

SceneLib2 is an open-source C++ library for SLAM originally designed and implemented by Professor Andrew Davison at Imperial College London.
Other
359 stars 198 forks source link

compiling error, using Pangolin headers #15

Closed souilehbhn closed 8 years ago

souilehbhn commented 8 years ago

Hi, when I build the project using make, I have this error: /usr/local/include/pangolin/var/varvalue.h: In instantiation of ‘void pangolin::VarValue::Init() [with T = int]’: /usr/local/include/pangolin/var/varvalue.h:56:14: required from ‘pangolin::VarValue::VarValue(const T&) [with T = int]’ /usr/local/include/pangolin/var/var.h:169:20: required from ‘pangolin::Var::Var(const string&, const T&, bool) [with T = int; std::string = std::basic_string]’ /home/salah/linaro/SceneLib2/SceneLib2/scenelib2/monoslam.cpp:1584:94: required from here /usr/local/include/pangolin/var/varvalue.h:100:23: error: ‘class pangolin::VarValue’ has no member named ‘str’ this->str = (VarValueTstd::string*)this; ^ /usr/local/include/pangolin/var/varvalue.h:103:23: error: ‘class pangolin::VarValue’ has no member named ‘str’ this->str = str_ptr;

shall I change the line 108 of the header file varvalue.h

VarValueTstd::string* str_ptr;

to

VarValueTstd::string* str;

if not what should I do?

hanmekim commented 8 years ago

should be fine with the latest commit.