ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Jenkins build error with geometry_msgs

asked 2021-11-06 09:51:07 -0500

Uf gravatar image

updated 2021-11-08 02:12:41 -0500

Hi there,

I am having problems with Jenkins compilation on binary file for Ubuntu focal(ros noetic)

This is the output: https://build.ros.org/job/Nbin_uF64__...

The error seems related to geometry_msgs, in fact this is an extract from Jenkins console output:

08:17:54 -- Could NOT find geometry_msgs (missing: geometry_msgs_DIR)
08:17:54 -- Could not find the required component 'geometry_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
08:17:54 CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
08:17:54   Could not find a package configuration file provided by "geometry_msgs"
08:17:54   with any of the following names:
08:17:54 
08:17:54     geometry_msgsConfig.cmake
08:17:54     geometry_msgs-config.cmake
08:17:54 
08:17:54   Add the installation prefix of "geometry_msgs" to CMAKE_PREFIX_PATH or set
08:17:54   "geometry_msgs_DIR" to a directory containing one of the above files.  If
08:17:54   "geometry_msgs" provides a separate development package or SDK, be sure it
08:17:54   has been installed.
08:17:54 Call Stack (most recent call first):
08:17:54   CMakeLists.txt:4 (find_package)

but they are included in CMakeLists.txt:

cmake_minimum_required(VERSION 3.0.2)
project(qb_chain_msgs VERSION 2.2.3 LANGUAGES CXX)

    find_package(catkin REQUIRED COMPONENTS
      std_msgs
      geometry_msgs
      message_generation
    )

    add_message_files(
      DIRECTORY msg
      FILES
        MoveChain.msg
        MoveAndRotateChain.msg
    )

    generate_messages(
      DEPENDENCIES
        std_msgs
        geometry_msgs
    )

    include_directories(include
      ${catkin_INCLUDE_DIRS}
    )

    catkin_package(
      INCLUDE_DIRS
        include
      CATKIN_DEPENDS
        std_msgs
        message_runtime
    )

    # Installation
    install(
      DIRECTORY
        include/${PROJECT_NAME}/
      DESTINATION
        ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
    )

    install(
      DIRECTORY
        msg/
      DESTINATION
        ${CATKIN_PACKAGE_SHARE_DESTINATION}/msg
    )

and package.xml:

    <?xml version="1.0"?>
<package format="2">
  <name>qb_chain_msgs</name>
  <version>2.2.3</version>
  <description>message to control end-effector pose, robot sitiffness and velocity</description>
  <author></author>
  <maintainer email=nomail@q.com></maintainer>

  <license>BSD 3-Clause</license>

  <buildtool_depend>catkin</buildtool_depend>

  <depend>std_msgs</depend>

  <build_depend>message_generation</build_depend>
  <build_depend>geometry_msgs</build_depend>
  <build_export_depend>message_runtime</build_export_depend>
  <exec_depend>message_runtime</exec_depend>
  <exec_depend>geometry_msgs</exec_depend>


  <!-- The export tag contains other, unspecified, tags -->
  <export>
    <architecture_independent/>
  </export>
</package>

Could you suggest me where the error is? The problem appears only for ROS noetic version.

edit retag flag offensive close merge delete

Comments

Please update your question to:

  1. properly format everything (the CMakeLists.txt is almost unreadable like this), and
  2. include the relevant parts from the Jenkins log: the buildfarm has limited retention when it comes to historical builds, so in a few months the link will not work any more, and future readers will not be able to read the log you refer to
gvdhoorn gravatar image gvdhoorn  ( 2021-11-07 09:02:47 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-11-08 12:14:38 -0500

nuclearsandwich gravatar image

The first thing that I went to check was the posted package.xml contents. The content above correctly lists geometry_msgs as a build dependency. But looking at the Jenkins build log linked above I did not see ros-noetic-geometry-msgs being installed, which it would be if that dependency was found in the package.xml and rendered in the debian/control file for this package.

When looking at the currently released version of the qb_chain_msgs package, version 2.2.2, on bitbucket I saw that the package.xml has no dependencies declared for geometry_msgs.

A new bloom-release of the 2.2.3 version of these packages should resolve this build issue.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2021-11-06 09:47:41 -0500

Seen: 173 times

Last updated: Nov 08 '21