RoboRTS编译

环境:Ubuntu18.04、opencv3.2.0

RoboRTS编译

打开终端,依次输入

mkdir -p RoboRTS_ws
cd RoboRTS_ws/src
git clone https://github.com/RoboMaster/RoboRTS
cd ..
catkin_make

RoboRTS编译报错

libg2o

-- Searching for g2o ...
CMake Error at RoboRTS/roborts_planning/cmake_module/FindG2O.cmake:85 (message):
  Could not find libg2o!
Call Stack (most recent call first):
  RoboRTS/roborts_planning/CMakeLists.txt:22 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/wade/RoboRTS_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/wade/RoboRTS_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

解决方法:
安装libg20:

sudo apt-get install ros-melodic-libg2o

Glog

-- ==> add_subdirectory(RoboRTS/roborts_base)
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Glog (missing: GLOG_INCLUDE_DIR GLOG_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  RoboRTS/roborts_base/cmake_module/FindGlog.cmake:40 (find_package_handle_standard_args)
  RoboRTS/roborts_base/CMakeLists.txt:7 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/wade/RoboRTS_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/wade/RoboRTS_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

解决方法:
安装Glog:

sudo apt-get install libgoogle-glog-dev

GLOG_LIBRARY

-- Found OpenCV: /usr/local (found version "3.4.0") 
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GLOG_LIBRARY (ADVANCED)
    linked by target "global_planner_node" in directory /home/wade/RoboRTS_ws/src/RoboRTS/roborts_planning/global_planner

-- Configuring incomplete, errors occurred!
See also "/home/wade/RoboRTS_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/wade/RoboRTS_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

解决办法:
再catkin_make一次。

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值