AndreiBarsan / DynSLAM

Master's Thesis on Simultaneous Localization and Mapping in dynamic environments. Separately reconstructs both the static environment and the dynamic objects from it, such as cars.
BSD 3-Clause "New" or "Revised" License
578 stars 178 forks source link

build error about pangolin #39

Closed amiltonwong closed 6 years ago

amiltonwong commented 6 years ago

Hi ,all ,

I got the following build error regarding to Pangolin:

[ 64%] Building CXX object CMakeFiles/DynSLAMGUI.dir/src/DynSLAM/DynSLAMGUI.cpp.o
/data/code/DynSLAM/src/DynSLAM/DynSLAMGUI.cpp: In member function ‘void dynslam::gui::PangolinGui::PreviewSparseSF(const std::vector<instreclib::RawFlow, Eigen::aligned_allocator<instreclib::RawFlow> >&, const pangolin::View&)’:
/data/code/DynSLAM/src/DynSLAM/DynSLAMGUI.cpp:513:23: warning: unused variable ‘font’ [-Wunused-variable]
     pangolin::GlFont &font = pangolin::GlFont::I();
                       ^
[ 64%] Linking CXX executable DynSLAMGUI
/usr/bin/ld: cannot find -lbfd
collect2: error: ld returned 1 exit status
make[2]: *** [DynSLAMGUI] Error 1
make[1]: *** [CMakeFiles/DynSLAMGUI.dir/all] Error 2
make: *** [all] Error 2
root@milton-OptiPlex-9010:/data/code/DynSLAM/build

Any suggestion to fix it?

THANKS~