git clone https://github.com/strasdat/Sophus.git

下载完成后

cd Sophus
git checkout a621ff
mkdir build
cd build
cmake ..
make
sudo make install

 

Sophus库的使用,为了编译他,请在cmake工程中的CMakeLists.txt文件中添加以下内容

# 寻找Sophus库
find_package( Sophus REQUIRED )

# 添加头文件路径
include_directories( ${Sophus_INCLUDE_DIRS} )

add_executable(   xxx xxx.cpp)

#链接库
target_link_libraries( xxx ${Sophus_LIBRARIES} )

 

相关文章:

  • 2021-05-08
  • 2021-12-10
  • 2021-08-28
  • 2021-10-30
  • 2021-04-28
  • 2021-07-20
  • 2021-10-10
猜你喜欢
  • 2022-12-23
  • 2021-12-03
  • 2021-11-21
  • 2021-05-12
  • 2021-07-03
  • 2021-06-01
  • 2021-08-19
相关资源
相似解决方案