问题描述
在正常安装了Sophus库后,运行高博的代码,发现如下错误
####
#### Running command: "make -j16 -l16" in "/home/a/SLAM/slam_ws/build"
####
Scanning dependencies of target useSophus
[ 33%] Built target hello
[ 33%] Built target hello_shared
[ 33%] Built target plotTrajectory
[ 44%] Built target helloSLAM
[ 55%] Built target useGeometry
[ 72%] Built target cooridinateTransform
[ 77%] Built target eigenMatrix
[ 83%] Building CXX object ch4/CMakeFiles/useSophus.dir/src/useSophus.cpp.o
[ 94%] Built target useHello
[100%] Linking CXX executable /home/a/SLAM/slam_ws/devel/lib/ch4/useSophus
/usr/bin/ld: CMakeFiles/useSophus.dir/src/useSophus.cpp.o: in function `std::make_unsigned<long>::type fmt::v8::detail::to_unsigned<long>(long)':
/usr/local/include/fmt/core.h:426: undefined reference to `fmt::v8::detail::assert_fail(char const*, int, char const*)'
/usr/bin/ld: CMakeFiles/useSophus.dir/src/useSophus.cpp.o: in function `std::make_unsigned<int>::type fmt::v8::detail::to_unsigned<int>(int)':
/usr/local/include/fmt/core.h:426: undefined reference to `fmt::v8::detail::assert_fail(char const*, int, char const*)'
/usr/bin/ld: CMakeFiles/useSophus.dir/src/useSophus.cpp.o: in function `void fmt::v8::print<Eigen::Product<Eigen::Matrix<double, 3, 3, 0, 3, 3>, Eigen::Transpose<Eigen::Matrix<double, 3, 3, 0, 3, 3> const>, 0> const>(fmt::v8::basic_format_string<char, fmt::v8::type_identity<Eigen::Product<Eigen::Matrix<double, 3, 3, 0, 3, 3>, Eigen::Transpose<Eigen::Matrix<double, 3, 3, 0, 3, 3> const>, 0> const>::type>, Eigen::Product<Eigen::Matrix<double, 3, 3, 0, 3, 3>, Eigen::Transpose<Eigen::Matrix<double, 3, 3, 0, 3, 3> const>, 0> const&&)':
/usr/local/include/fmt/core.h:3208: undefined reference to `fmt::v8::vprint(fmt::v8::basic_string_view<char>, fmt::v8::basic_format_args<fmt::v8::basic_format_context<fmt::v8::appender, char> >)'
/usr/bin/ld: CMakeFiles/useSophus.dir/src/useSophus.cpp.o: in function `void fmt