ch4是李群应用的章节,编译出现问题:
解决方法:
修改CMakeLists.txt
cmake_minimum_required(VERSION 3.0)
project(useSophus)
# 为使用 sophus,需要使用find_package命令找到它
find_package(Sophus REQUIRED)
add_compile_options(-fPIC)
set(FMT_LIBRARIES fmt::fmt)
# Eigen
include_directories("/usr/include/eigen3")
add_executable(useSophus useSophus.cpp)
# target_link_libraries(useSophus Sophus::Sophus)
target_link_libraries(useSophus Sophus::Sophus fmt)
# target_link_libraries(trajectoryError ${Pangolin_LIBRARIES} ${FMT_LIBRARIES} fmt)
add_subdirectory(example)
|