首页 > 解决方案 > 问题是什么,当我构建 ROS hector 导航时

问题描述

我正在尝试在 ROS 中使用 hector 导航来进行导航。但是当我按照步骤操作时,会出现一些问题。当我做cmake时,问题发生如下。

Project 'ceres_catkin' tried to find library 'gflags'.  The library is
  neither a target nor built/installed properly.  Did you compile project
  'gflags_catkin'? Did you find_package() it before the subdirectory
  containing its code is included?

我在 ceres_catkin 包的 CMakeLists.txt 中添加了如下行。

include_directories(${gflags_catkin_INCLUDE_DIRS})
include_directories(${glog_catkin_INCLUDE_DIRS})

但仍然遇到同样的问题。我该如何解决?

标签: cmakeroscatkincmake-modules

解决方案


推荐阅读