Open TirelessTinkerer opened 6 years ago
Yes,u are right . It's helping .thank u !
thx!
From https://github.com/gaoxiang12/slambook/issues/125#issuecomment-603575294, to temporarily add the search path, the following way also works:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
After checking cmake_modules/FindG2O.cmake, I think the following part of the CMakeLists.txt of g2o_curve_fitting should be adjusted:
${G2O_INCLUDE_DIRS}
should be${G2O_INCLUDE_DIR}
, which is a variable generated byFindG2O
.should be
Without modifying 1, I can still build the code without problem. It's because /usr/local/include is in my default header search path. Without modifying 2, I got the following error when run
curve_fitting
(since my library load path does not contain /usr/local/lib )