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