首页 > 解决方案 > OpenRealm ROS1 桥接问题

问题描述

我在遵循此安装指南https://github.com/laxnpander/OpenREALM_ROS1_Bridge快速入门部分之前遇到了一些问题,命令catkin_make -DCMAKE_BUILD_TYPE=Release不起作用。

这是使用整个库之前的最后一步。

有人可以帮助我吗?

错误示例:

CMake Error at OpenREALM_ROS1_Bridge/realm_ros/CMakeLists.txt:141 (add_executable):
  Target "realm_exiv2_grabber" links to target "Boost::filesystem" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at OpenREALM_ROS1_Bridge/realm_ros/CMakeLists.txt:141 (add_executable):
  Target "realm_exiv2_grabber" links to target "FLANN::FLANN" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at OpenREALM_ROS1_Bridge/realm_ros/CMakeLists.txt:137 (add_executable):
  Target "realm_ros_grabber" links to target "Boost::filesystem" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at OpenREALM_ROS1_Bridge/realm_ros/CMakeLists.txt:137 (add_executable):
  Target "realm_ros_grabber" links to target "FLANN::FLANN" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at OpenREALM_ROS1_Bridge/realm_ros/CMakeLists.txt:109 (add_library):
  Target "realm_ros" links to target "Boost::filesystem" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at OpenREALM_ROS1_Bridge/realm_ros/CMakeLists.txt:109 (add_library):
  Target "realm_ros" links to target "FLANN::FLANN" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


CMake Error at OpenREALM_ROS1_Bridge/realm_ros/CMakeLists.txt:145 (add_executable):
  Target "realm_stage_node" links to target "Boost::filesystem" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at OpenREALM_ROS1_Bridge/realm_ros/CMakeLists.txt:145 (add_executable):
  Target "realm_stage_node" links to target "FLANN::FLANN" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

我不知道如何解决它。

干杯!

标签: c++cmakepthreadsros

解决方案


您需要确保将正确的 boost 库实际添加到CMakeLists.txt. 该回购似乎没有正确设置。在realm_ros/CMakeLists.txt找到该行target_link_libraries(...)并添加:

${Boost_FILESYSTEM_LIBRARIES}
${Boost_SYSTEM_LIBRARIES}

推荐阅读