当前位置:网站首页>Orbslam2 cmakelists File Structure Parsing
Orbslam2 cmakelists File Structure Parsing
2022-07-26 11:22:00 【AutoGalaxy】
( One ) Reference Library
1 Custom library
The following statements are uniformly used, including
add_library(${PROJECT_NAME} SHARED
src/System.cc
src/Tracking.cc
src/LocalMapping.cc
src/LoopClosing.cc
src/ORBextractor.cc
src/ORBmatcher.cc
src/FrameDrawer.cc
src/Converter.cc
src/MapPoint.cc
src/KeyFrame.cc
src/Map.cc
src/MapDrawer.cc
src/Optimizer.cc
src/PnPsolver.cc
src/Frame.cc
src/KeyFrameDatabase.cc
src/Sim3Solver.cc
src/Initializer.cc
src/Viewer.cc
)The header file above , Put it together in the official library of the system
2 Official system library
Use first find_package
find_package(Eigen3 3.1.0 REQUIRED)
find_package(Pangolin REQUIRED)
find_package(OpenCV 3.0 QUIET)
Then include the header file
include_directories(
${PROJECT_SOURCE_DIR}
${PROJECT_SOURCE_DIR}/include
${EIGEN3_INCLUDE_DIR}
${Pangolin_INCLUDE_DIRS}
)Finally, link to 1 Shared libraries in
target_link_libraries(${PROJECT_NAME}
${OpenCV_LIBS}
${EIGEN3_LIBS}
${Pangolin_LIBRARIES}
${PROJECT_SOURCE_DIR}/Thirdparty/DBoW2/lib/libDBoW2.so
${PROJECT_SOURCE_DIR}/Thirdparty/g2o/lib/libg2o.so
)( Two ) Generate your own executable
Unified use
add_executable and target_link_libraries The only library is called ${PROJECT_NAME}
边栏推荐
猜你喜欢
随机推荐
easyui01
Multipartfil to file
[vscode] how to connect to the server remotely
easyui05
easyui03
logging基本使用
3Dunity游戏项目实战——第一人称射击游戏
easyui03
There is an unhandled exception at 0x003b66c3 in MFC: 0xc000041d: unhandled exception encountered during user callback
Real time streaming protocol --rtsp
pytest 执行规则_基本用法_常用插件_常用断言_常用参数
Bash shell learning notes (I)
Access rights - private, public, protected
Connection between PLC and servo motor
-bash: ./build. Sh: /bin/bash^m: bad interpreter: no that file or directory
[idea]如何新建一个项目
MySQL事务详解
ISO 639:1988 : Code for the representation of names of languages
PyQt5快速开发与实战 3.1 Qt Designer快速入门
[学习进度]5月








