Robotics StackExchange | Archived questions

custom package build fails (micro-ROS)

This is NOT a duplicate question, please don't just close this topic. Provide some insight to where "the supposedly" duplicate question can be found. I have been looking through here to see if there are any similar questions, that might help solving the issues I'm facing. However, I wasn't able to find anything.

I'm building a custom package with custom message, based on oleddisplaynode

VS Code + PlatformIO building microros

before attempting I clean the environment, as so:

1. pio run --target clean_microros
2. platformIO: Clean (little trash-bin icon)
3. delete the .pio directory

Then I build as per below:

1. pio init
2. pio lib install
3. pio run

I have created the

DisplayOutput.msg

with the following content:

# Request to place text on the display.
# The display row and column as well as string specifics are required
# A comment field is used to assist user debug

# actionType values
uint8  DISPLAY_ALL=1              # Message to fill entire display
uint8  DISPLAY_SUBSTRING=2        # Message for a set of characters on one line
uint8  DISPLAY_STARTUP_STRING= 3  # Reserved for future use for non-volatile startup string
uint8  DISPLAY_SET_BRIGHTNESS= 4  # Sets display brightness. attributes is the brightness

int32  actionType                 # The type of action to be taken. See MSG_DISPLAY for values
int32  row                        # The display row of characters for this message
                                  # row can be from 0 to 7 where 0 is top line
int32  column                     # The starting horizontal pixel column
                                  # The column can be 0 - 118 where 0 is start at the left
int32  numChars                   # Number of characters to go to the display
int32  attributes                 # Used for brightness level 
string text                       # The text for this display update.  Up to 15 characters
string comment                    # Optional comment the user can use to document purpose

However, when I un-comment this line

"msg/DisplayOutput.msg"

inside my CMakeList.txt the compiler throws an error. (trace below)

CMakeList.txt cmakeminimumrequired(VERSION 3.8) project(teensy_interfaces)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# find dependencies
find_package(ament_cmake REQUIRED)

# -----------------------------
find_package(geometry_msgs REQUIRED)
find_package(std_msgs REQUIRED)
find_package(rosidl_default_generators REQUIRED)

rosidl_generate_interfaces(${PROJECT_NAME}
  "msg/Num.msg"
  "msg/Sphere.msg"
  "msg/Bool.msg"
  "msg/Int64.msg"
  "msg/String.msg"
  "msg/Int32.msg"
  "msg/UInt8.msg"
  "msg/DisplayOutput.msg"
  "srv/AddThreeInts.srv"
  "srv/NeoPixelControl.srv"
  "srv/OledDisplay.srv"
  DEPENDENCIES geometry_msgs std_msgs # Add packages that above messages depend on, in this case geometry_msgs for Sphere.msg
)
# -----------------------------

if(BUILD_TESTING)
  find_package(ament_lint_auto REQUIRED)
  # the following line skips the linter which checks for copyrights
  # comment the line when a copyright and license is added to all source files
  set(ament_cmake_copyright_FOUND TRUE)
  # the following line skips cpplint (only works in a git repo)
  # comment the line when this package is in a git repo and when
  # a copyright and license is added to all source files
  set(ament_cmake_cpplint_FOUND TRUE)
  ament_lint_auto_find_test_dependencies()
endif()

ament_package()

package.xml

<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
  <name>teensy_interfaces</name>
  <version>0.0.1</version>
  <description>Package description</description>
  <maintainer email="mail@gmail.com">administrator</maintainer>
  <license>License declaration</license>

  <!-- -->
  <depend>geometry_msgs std_msgs</depend>
  <build_depend>rosidl_default_generators</build_depend>
  <exec_depend>rosidl_default_runtime</exec_depend>
  <member_of_group>rosidl_interface_packages</member_of_group>
  <!-- -->

  <buildtool_depend>ament_cmake</buildtool_depend>

  <test_depend>ament_lint_auto</test_depend>
  <test_depend>ament_lint_common</test_depend>

  <export>
    <build_type>ament_cmake</build_type>
  </export>
</package>

error trace is too long to post here:

administrator@dev01:~/Documents/gitclones/AutoBot_uros$ pio run
Processing teensy41 (platform: teensy; board: teensy41; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/teensy/teensy41.html
PLATFORM: Teensy (4.17.0) > Teensy 4.1
HARDWARE: IMXRT1062 600MHz, 512KB RAM, 7.75MB Flash
DEBUG: Current (jlink) External (jlink)
PACKAGES: 
 - framework-arduinoteensy @ 1.157.220801 (1.57) 
 - tool-teensy @ 1.157.0 (1.57) 
 - toolchain-gccarmnoneeabi @ 1.50401.190816 (5.4.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Installing pyyaml with pip at PlatformIO environment
/usr/bin/python3 -m pip install pyyaml
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (5.4.1)
Installing markupsafe==2.0.1 with pip at PlatformIO environment
/usr/bin/python3 -m pip install markupsafe==2.0.1
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: markupsafe==2.0.1 in /usr/lib/python3/dist-packages (2.0.1)
Configuring teensy41 with transport serial
Downloading micro-ROS dev dependencies
         - Downloaded ament_cmake
         - Downloaded ament_lint
         - Downloaded ament_package
         - Downloaded googletest
         - Downloaded ament_cmake_ros
         - Downloaded ament_index
Building micro-ROS dev dependencies
Downloading micro-ROS library
         - Downloaded microcdr
         - Downloaded microxrcedds_client
         - Downloaded rcl_action
         - Downloaded rcl
         - Downloaded rcl_lifecycle
         - Downloaded rcl_yaml_param_parser (ignored)
         - Downloaded rclc
         - Downloaded rclc_parameter
         - Downloaded rclc_examples (ignored)
         - Downloaded rclc_lifecycle
         - Downloaded micro_ros_utilities
         - Downloaded rcutils
         - Downloaded micro_ros_msgs
         - Downloaded rmw_microxrcedds
         - Downloaded rosidl_typesupport_cpp (ignored)
         - Downloaded rosidl_typesupport_c
         - Downloaded rosidl_typesupport_microxrcedds_cpp (ignored)
         - Downloaded rosidl_typesupport_microxrcedds_test_msg
         - Downloaded rosidl_typesupport_microxrcedds_c_tests
         - Downloaded rosidl_typesupport_microxrcedds_cpp_tests
         - Downloaded rosidl_typesupport_microxrcedds_c
         - Downloaded rosidl_runtime_c
         - Downloaded rosidl_generator_cpp (ignored)
         - Downloaded rosidl_typesupport_introspection_c
         - Downloaded rosidl_typesupport_introspection_tests
         - Downloaded rosidl_typesupport_introspection_cpp (ignored)
         - Downloaded rosidl_parser
         - Downloaded rosidl_cmake
         - Downloaded rosidl_runtime_cpp (ignored)
         - Downloaded rosidl_generator_c
         - Downloaded rosidl_adapter
         - Downloaded rosidl_typesupport_interface
         - Downloaded rosidl_cli
         - Downloaded rmw
         - Downloaded rmw_implementation_cmake
         - Downloaded builtin_interfaces
         - Downloaded rcl_interfaces
         - Downloaded test_msgs
         - Downloaded statistics_msgs
         - Downloaded composition_interfaces
         - Downloaded lifecycle_msgs
         - Downloaded rosgraph_msgs
         - Downloaded action_msgs
         - Downloaded rosidl_default_generators
         - Downloaded rosidl_default_runtime
         - Downloaded unique_identifier_msgs
         - Downloaded visualization_msgs
         - Downloaded stereo_msgs
         - Downloaded actionlib_msgs
         - Downloaded nav_msgs
         - Downloaded diagnostic_msgs
         - Downloaded sensor_msgs_py
         - Downloaded trajectory_msgs
         - Downloaded geometry_msgs
         - Downloaded std_srvs
         - Downloaded std_msgs
         - Downloaded sensor_msgs
         - Downloaded common_interfaces
         - Downloaded shape_msgs
         - Downloaded test_interface_files
         - Downloaded rmw_implementation
         - Downloaded test_rmw_implementation
         - Downloaded rcl_logging_interface
         - Downloaded rcl_logging_noop
         - Downloaded rcl_logging_spdlog (ignored)
         - Downloaded tracetools
         - Downloaded tracetools_test
         - Downloaded test_tracetools_launch
         - Downloaded test_tracetools
         - Downloaded tracetools_launch
         - Downloaded ros2trace
         - Downloaded tracetools_read
         - Downloaded tracetools_trace
Checking extra packages
         - Adding example_interfaces
         - Adding teensy_interfaces
         - Adding teensy_interfaces.zip
Building micro-ROS library
Build mcu micro-ROS environment failed: 
--- stderr: rosidl_typesupport_interface
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_POSITION_INDEPENDENT_CODE
    THIRDPARTY


---
--- stderr: rmw_implementation_cmake
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_SHARED_LIBS
    CMAKE_POSITION_INDEPENDENT_CODE
    THIRDPARTY


---
--- stderr: test_interface_files
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_SHARED_LIBS
    CMAKE_POSITION_INDEPENDENT_CODE
    THIRDPARTY


---
--- stderr: tracetools
CMake Warning:
  Manually-specified variables were not used by the project:

    THIRDPARTY


---
--- stderr: microcdr
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_TESTING
    THIRDPARTY


---
--- stderr: rcutils
CMake Warning:
  Manually-specified variables were not used by the project:

    ENABLE_TESTING
    THIRDPARTY


In file included from /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/error_handling.c:35:0:
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/./error_handling_helpers.h: In function '__rcutils_convert_uint64_t_into_c_str':
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/./error_handling_helpers.h:109:48: warning: unused parameter 'number' [-Wunused-parameter]
 __rcutils_convert_uint64_t_into_c_str(uint64_t number, char * buffer, size_t buffer_size)
                                                ^
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/./error_handling_helpers.h:109:63: warning: unused parameter 'buffer' [-Wunused-parameter]
 __rcutils_convert_uint64_t_into_c_str(uint64_t number, char * buffer, size_t buffer_size)
                                                               ^
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/./error_handling_helpers.h:109:78: warning: unused parameter 'buffer_size' [-Wunused-parameter]
 __rcutils_convert_uint64_t_into_c_str(uint64_t number, char * buffer, size_t buffer_size)
                                                                              ^
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/./error_handling_helpers.h: In function '__rcutils_format_error_string':
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/./error_handling_helpers.h:142:28: warning: unused parameter 'error_string' [-Wunused-parameter]
   rcutils_error_string_t * error_string,
                            ^
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/./error_handling_helpers.h:143:33: warning: unused parameter 'error_state' [-Wunused-parameter]
   const rcutils_error_state_t * error_state)
                                 ^
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/error_handling.c: In function 'rcutils_get_error_string':
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/error_handling.c:240:38: warning: initializer-string for array of chars is too long
     return (rcutils_error_string_t) {"error not set"};  // NOLINT(readability/braces)
                                      ^
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/error_handling.c:240:38: note: (near initialization for '(anonymous).str')
In file included from /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/error_handling.c:35:0:
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/error_handling.c: At top level:
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/./error_handling_helpers.h:91:1: warning: '__rcutils_reverse_str' defined but not used [-Wunused-function]
 __rcutils_reverse_str(char * string_in, size_t string_len)
 ^
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/./error_handling_helpers.h:109:1: warning: '__rcutils_convert_uint64_t_into_c_str' defined but not used [-Wunused-function]
 __rcutils_convert_uint64_t_into_c_str(uint64_t number, char * buffer, size_t buffer_size)
 ^
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/logging.c: In function 'rcutils_get_env_var_zero_or_one':
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/logging.c:130:35: warning: unused parameter 'zero_semantic' [-Wunused-parameter]
   const char * name, const char * zero_semantic,
                                   ^
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/logging.c:131:16: warning: unused parameter 'one_semantic' [-Wunused-parameter]
   const char * one_semantic)
                ^
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/time_unix.c:52:4: warning: #warning is a GCC extension
 #  warning no monotonic clock function available
    ^
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/time_unix.c:52:4: warning: #warning no monotonic clock function available [-Wcpp]
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/time_unix.c: In function 'rcutils_system_time_now':
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/rcutils/src/time_unix.c:74:3: warning: implicit declaration of function 'clock_gettime' [-Wimplicit-function-declaration]
   clock_gettime(CLOCK_REALTIME, &timespec_now);
   ^
---
--- stderr: rosidl_adapter
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_SHARED_LIBS
    CMAKE_POSITION_INDEPENDENT_CODE
    THIRDPARTY


---
--- stderr: microxrcedds_client
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_TESTING
    THIRDPARTY


/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/Micro-XRCE-DDS-Client/src/c/util/time.c: In function 'uxr_nanos':
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/Micro-XRCE-DDS-Client/src/c/util/time.c:60:5: warning: implicit declaration of function 'clock_gettime' [-Wimplicit-function-declaration]
     clock_gettime(CLOCK_REALTIME, &ts);
     ^
---
--- stderr: rcl_logging_interface
CMake Warning at /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/ament_cmake_export_libraries-extras.cmake:116 (message):
  Package 'rcutils' exports library 'dl' which couldn't be found
Call Stack (most recent call first):
  /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/rcutilsConfig.cmake:41 (include)
  CMakeLists.txt:19 (find_package)


CMake Warning:
  Manually-specified variables were not used by the project:

    THIRDPARTY


---
--- stderr: rosidl_runtime_c
CMake Warning at /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/ament_cmake_export_libraries-extras.cmake:116 (message):
  Package 'rcutils' exports library 'dl' which couldn't be found
Call Stack (most recent call first):
  /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/rcutilsConfig.cmake:41 (include)
  CMakeLists.txt:15 (find_package)


CMake Warning:
  Manually-specified variables were not used by the project:

    THIRDPARTY


---
--- stderr: rosidl_parser
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_SHARED_LIBS
    CMAKE_POSITION_INDEPENDENT_CODE
    THIRDPARTY


---
--- stderr: rcl_logging_noop
CMake Warning at /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/ament_cmake_export_libraries-extras.cmake:116 (message):
  Package 'rcutils' exports library 'dl' which couldn't be found
Call Stack (most recent call first):
  /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/rcutilsConfig.cmake:41 (include)
  /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rcl_logging_interface/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
  /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rcl_logging_interface/cmake/rcl_logging_interfaceConfig.cmake:41 (include)
  CMakeLists.txt:15 (find_package)


CMake Warning:
  Manually-specified variables were not used by the project:

    THIRDPARTY


---
--- stderr: rmw
CMake Warning at /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/ament_cmake_export_libraries-extras.cmake:116 (message):
  Package 'rcutils' exports library 'dl' which couldn't be found
Call Stack (most recent call first):
  /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/rcutilsConfig.cmake:41 (include)
  CMakeLists.txt:21 (find_package)


CMake Warning:
  Manually-specified variables were not used by the project:

    THIRDPARTY


---
--- stderr: rosidl_cmake
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_SHARED_LIBS
    CMAKE_POSITION_INDEPENDENT_CODE
    THIRDPARTY


---
--- stderr: rosidl_typesupport_introspection_c
CMake Warning:
  Manually-specified variables were not used by the project:

    THIRDPARTY


---
--- stderr: rosidl_typesupport_microxrcedds_c
CMake Warning at /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/ament_cmake_export_libraries-extras.cmake:116 (message):
  Package 'rcutils' exports library 'dl' which couldn't be found
Call Stack (most recent call first):
  /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/rcutilsConfig.cmake:41 (include)
  /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rosidl_runtime_c/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
  /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rosidl_runtime_c/cmake/rosidl_runtime_cConfig.cmake:41 (include)
  CMakeLists.txt:22 (find_package)


CMake Warning:
  Manually-specified variables were not used by the project:

    THIRDPARTY


---
--- stderr: rosidl_generator_c
CMake Warning:
  Manually-specified variables were not used by the project:

    THIRDPARTY


---
--- stderr: rosidl_typesupport_introspection_tests
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_SHARED_LIBS
    THIRDPARTY


---
--- stderr: micro_ros_utilities
CMake Warning at /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/ament_cmake_export_libraries-extras.cmake:116 (message):
  Package 'rcutils' exports library 'dl' which couldn't be found
Call Stack (most recent call first):
  /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/rcutilsConfig.cmake:41 (include)
  /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rosidl_runtime_c/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
  /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rosidl_runtime_c/cmake/rosidl_runtime_cConfig.cmake:41 (include)
  /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rosidl_typesupport_introspection_c/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
  /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rosidl_typesupport_introspection_c/cmake/rosidl_typesupport_introspection_cConfig.cmake:41 (include)
  CMakeLists.txt:18 (find_package)


CMake Warning:
  Manually-specified variables were not used by the project:

    THIRDPARTY


/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/micro_ros_utilities/src/type_utilities.c: In function 'print_type_info':
/home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/src/micro_ros_utilities/src/type_utilities.c:96:31: warning: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'uint32_t {aka const long unsigned int}' [-Wformat=]
       buffer, sizeof(buffer), "%sIntrospection for %s/%s - %u members, %zu B\n",
                               ^
---
--- stderr: rosidl_typesupport_c
CMake Warning at /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/ament_cmake_export_libraries-extras.cmake:116 (message):
  Package 'rcutils' exports library 'dl' which couldn't be found
Call Stack (most recent call first):
  /home/administrator/Documents/gitclones/AutoBot_uros/.pio/libdeps/teensy41/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/rcutilsConfig.cmake:41 (include)
  CMakeLists.txt:33 (find_package)


CMake Warning:
  Manually-specified variables were not used by the project:

    THIRDPARTY


---
--- stderr: rosidl_default_runtime
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_SHARED_LIBS
    CMAKE_POSITION_INDEPENDENT_CODE
    THIRDPARTY


---
--- stderr: rosidl_default_generators
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_SHARED_LIBS
    CMAKE_POSITION_INDEPENDENT_CODE
    THIRDPARTY


---
--- stderr: teensy_interfaces
CMake Error at CMakeLists.txt:12 (find_package):
  By not providing "Findgeometry_msgs.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "geometry_msgs", but CMake did not find one.

  Could not find a package configuration file provided by "geometry_msgs"
  with any of the following names:

    geometry_msgsConfig.cmake
    geometry_msgs-config.cmake

  Add the installation prefix of "geometry_msgs" to CMAKE_PREFIX_PATH or set
  "geometry_msgs_DIR" to a directory containing one of the above files.  If
  "geometry_msgs" provides a separate development package or SDK, be sure it
  has been installed.


---
Failed   <<< teensy_interfaces [1.57s, exited with code 1]

Asked by PointCloud on 2023-01-18 18:10:27 UTC

Comments

This is NOT a duplicate question, please don't just close this topic.

I've just checked, and #q411518, #q411519, #q411521 and #q411523 all appear to be the same question. If that's not the case, please clarify, and we can re-open the ones that are not duplicates.

And please note: #q411519 is still open, so technically, you've posted another duplicate with this question.

Provide some insight to where "the supposedly" duplicate question can be found

they are duplicates of your own question, posted multiple times. Probably due to a glitch in Askbot. You could check your account's activity to see for yourself.

In those cases we don't link to the other duplicates. They just get closed.

Asked by gvdhoorn on 2023-01-18 22:42:01 UTC

I didn't see that, but I recall there were some glitches posting and it came up with an error a few times, until I cut the length in half, then edited the post.

Asked by PointCloud on 2023-01-19 01:32:57 UTC

That's alright.

Seeing as this one now has an answer by @Pablogs, I suggest you close and delete the remaining duplicate now (ie: #q411519).

Asked by gvdhoorn on 2023-01-19 03:20:13 UTC

Answers

As you can see in the CMake log, geometry_msgs is not found, because the Platform IO package does not include it by default. See default packages here. Just add also your package dependencies.

Asked by Pablogs on 2023-01-19 01:52:48 UTC

Comments

but it builds beforehand, when I leave the ""msg/DisplayOutput.msg"" line commented out. With this being commented out, it still references geometry_msgs. So I don't think that missing geometry_msgs can be the issue here.

Asked by PointCloud on 2023-01-19 03:25:50 UTC

Is it missing if Downloaded geometry_msgs appears in the build log?

Asked by gvdhoorn on 2023-01-19 03:31:35 UTC

You are right @gvdhoorn, geometry_msgs is include in common_interfaces and we do have the common_interfaces packages as default.

I'm not sure if you can set two packages in a single line in package XML: <depend>geometry_msgs std_msgs</depend> Maybe this is the cause of the lack of dependency in the build order.

Asked by Pablogs on 2023-01-19 03:41:01 UTC

I'm not sure if you can set two packages in a single line in package XML: <depend>geometry_msgs std_msgs</depend> Maybe this is the cause of the lack of dependency in the build order.

yes, that's most definitely a problem.

Asked by gvdhoorn on 2023-01-19 03:43:28 UTC