c++ - 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.
我不知道如何解决它。
干杯!
解决方案
您需要确保将正确的 boost 库实际添加到CMakeLists.txt
. 该回购似乎没有正确设置。在realm_ros/CMakeLists.txt
找到该行target_link_libraries(...)
并添加:
${Boost_FILESYSTEM_LIBRARIES}
${Boost_SYSTEM_LIBRARIES}
推荐阅读
- excel - 对象工作表的 VBA 范围失败
- flutter - 上面有图片,下面有文字的卡片
- python - 如何将 SmoothedValue 转换为 float 以使用 pyplot 进行绘图?
- python - Canny 无法在 python 中获得完整的轮廓
- laravel - 使 Laravel 8 验证规则可选以允许空字段
- swift - iOS 14 键盘尺寸错误
- c# - 使用 .Net MVC 和日期范围过滤器从数据库中导出 Excel 中的数据
- php - Guzzle 获取请求但方法未定义
- ios - Xcode 12 - 没有要编译的架构(ONLY_ACTIVE_ARCH=YES,active arch=x86_64,VALID_ARCHS=arm64e armv7s arm64 arm7)
- javascript - 反应构建需要太长时间才能完成,消息“95% 发出 CopyPlugin” - 如何调试 npm 构建?