当前位置:网站首页>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}
边栏推荐
- Several ways of communication between threads
- Toolstrip border removal
- Bash shell learning notes (II)
- Common library installation
- Pytest execution rules_ Basic usage_ Common plug-ins_ Common assertions_ Common parameters
- MySQL transaction details
- Connection between PLC and servo motor
- What does it mean that the configuration file ends in RC
- Why give up NPM and turn to yarn
- [报错]看日志看什么
猜你喜欢

JVM基本概念及内存管理模型

3dunity game project practice - first person shooting game

pytest pytest. Ini configuration case grouping case skipping

pytest 执行规则_基本用法_常用插件_常用断言_常用参数

Generation and transformation of pulse waveform

Bash shell learning notes (V)

Basic concepts of JVM and memory management model

SCADA and three industrial control systems PLC, DCS and FCS

win10 1903 笔记本开热点出现蓝屏问题

Le audio specification overview
随机推荐
Rigorous proof of Behrman's expectation equation
Pytest case execution sequence
Bash shell learning notes (6)
Scrapy shell出现的一个错误
3Dunity游戏项目实战——第一人称射击游戏
Admit it, investing in new energy is for security
Bash shell learning notes (VII)
logging 高级使用
贝尔曼期望方程状严谨证明
easyui05
LE Audio规范概述
[reprint] the multivariate normal distribution
MySQL locking mechanism
【转载】多元高斯分布(The Multivariate normal distribution)
How the ThreadPoolExecutor performs tasks
3Dunity游戏项目实战——飞机大战
Can SAIC mingjue get out of the haze if its products are unable to sell and decline
UDF and analysis case of sparksql, 220725,
脉冲波形的产生与变换
[vscode] how to connect to the server remotely