ubuntu16.04下安装Sophus


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} )

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM