例如
libvikit_common.so: undefined reference to `Sophus::SE3::operator*(Eigen::Matrix<double, 3, 1, 0, 3, 1> const&) const’
成功安装Sophus并且 sudo make install后。
在~/catkin_ws/src/rgp_vikit/vikit_common/CMakeLists.txt.中添加:
SET(Sophus_LIBRARIES libSophus.so)
就解决了