mp3guy / Kintinuous

Real-time large scale dense visual SLAM system
Other
918 stars 287 forks source link

undefined reference to `DBoW2::FSurf64::toMat32F(std::vector<std::vector<float, std::allocator<float> >, std::allocator<std::vector<float, std::allocator<float> > > > const&, cv::Mat&)' #41

Open nonlinear1 opened 6 years ago

nonlinear1 commented 6 years ago

When I make the Kintinuous, I was confronted with the following linking errors:

undefined reference to DBoW2::FSurf64::toMat32F(std::vector<std::vector<float, std::allocator<float> >, std::allocator<std::vector<float, std::allocator<float> > > > const&, cv::Mat&)' undefined reference toDBoW2::FSurf64::distance(std::vector<float, std::allocator > const&, std::vector<float, std::allocator > const&)' undefined reference to DBoW2::FSurf64::meanValue(std::vector<std::vector<float, std::allocator<float> > const*, std::allocator<std::vector<float, std::allocator<float> > const*> > const&, std::vector<float, std::allocator<float> >&)' undefined reference toDBoW2::FSurf64::toString[abi:cxx11](std::vector<float, std::allocator > const&)'

I have install the DLib, DBoW2, DLoopDetector,again. and I don‘t know why? I think the directory is right for linker. the directory are as follows: DBoW2_DIR /usr/local/lib/cmake/DBoW2
DBoW2_INCLUDE_DIR
/usr/local/include/DBoW2
DBoW2_LIBRARY /usr/local/lib/libDBoW2.so
DLib_DIR
/usr/local/lib/cmake/DLib
DLib_INCLUDE_DIR /usr/local/include/DLib
DLib_LIBRARY
/usr/local/lib/libDLib.so
DLoopDetector_DIR /usr/local/lib/cmake/DLoopDetector
DLoopDetector_INCLUDE_DIR
/usr/local/include/DLoopDetector
DLoopDetector_LIBRARY *DLoopDetector_LIBRARY-NOTFOUND
my os is ubuntu16.04, the version for opencv is 2.4.13. So could someone know reason for these errors?

nonlinear1 commented 6 years ago

I solve this problem! I use the DLib1.0, DBoW1.0, DLoopDetector 1.0. All of them are the oldest version!!!

SunshineDou commented 5 years ago

@nonlinear1 hello, I also rum into this problem, you just mean use the oldest version of DLib1.0, DBoW1.0, DLoopDetector 1.0. , the problem will be solved? Thank you very much

nonlinear1 commented 5 years ago

Yes

SunshineDou commented 5 years ago

@nonlinear1 Thank you very much for your replying I manage to install DBOW1.0, but I run into some problem as follows: 2019-03-20 15-08-32屏幕截图

I have modified the makefile as follows: 2019-03-20 15-08-55屏幕截图

but it still has problem. What's the matter? could you please give me some suggestions?Thank you very much

nonlinear1 commented 5 years ago

这是opencv没有弄好啊,不许你把那个demo去掉编译看看,我opencv用的是2.4.13