Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rosidl_runtime_cppConfig.cmake missing error #115

Open
Russ76 opened this issue Aug 24, 2023 · 2 comments
Open

rosidl_runtime_cppConfig.cmake missing error #115

Russ76 opened this issue Aug 24, 2023 · 2 comments

Comments

@Russ76
Copy link

Russ76 commented Aug 24, 2023

Issue template

  • Hardware description:
  • laptop Ryzen7 with 16Gig RAM, Ubuntu Jammy
  • RTOS:
  • VScode with Platformio
  • Installation type:
  • Attempting to install publisher example script
  • Version or commit hash:
  • Humble

Steps to reproduce the issue

Followed instructions for installing VScode, Platformio module, MicroROS library

Expected behavior

That it would compile example publisher program

Actual behavior

Downloads many modules and begins compilation but ends with these errors

Additional information

Will include the complete list of warnings and errors

  • Executing task: platformio run

Processing teensy40 (platform: teensy; board: teensy40; framework: arduino)

-------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/teensy/teensy40.html
PLATFORM: Teensy (4.18.0) > Teensy 4.0
HARDWARE: IMXRT1062 600MHz, 512KB RAM, 1.94MB Flash
DEBUG: Current (jlink) External (jlink)
PACKAGES: 
 - framework-arduinoteensy @ 1.158.0 (1.58) 
 - tool-teensy @ 1.158.0 (1.58) 
 - toolchain-gccarmnoneeabi-teensy @ 1.110301.0 (11.3.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Installing pyyaml with pip at PlatformIO environment
/home/russ/.platformio/penv/bin/python -m pip install pyyaml
Requirement already satisfied: pyyaml in /home/russ/.platformio/penv/lib/python3.10/site-packages (6.0.1)
Installing markupsafe==2.0.1 with pip at PlatformIO environment
/home/russ/.platformio/penv/bin/python -m pip install markupsafe==2.0.1
Requirement already satisfied: markupsafe==2.0.1 in /home/russ/.platformio/penv/lib/python3.10/site-packages (2.0.1)
Configuring teensy40 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
         - Downloaded rcl_yaml_param_parser (ignored)
         - Downloaded rcl_action
         - Downloaded rcl_lifecycle
         - Downloaded rclc_lifecycle
         - Downloaded rclc
         - Downloaded rclc_examples (ignored)
         - Downloaded rclc_parameter
         - Downloaded micro_ros_utilities
         - Downloaded rcutils
         - Downloaded micro_ros_msgs
         - Downloaded rmw_microxrcedds
         - Downloaded rosidl_typesupport_c
         - Downloaded rosidl_typesupport_cpp (ignored)
         - Downloaded rosidl_typesupport_microxrcedds_cpp (ignored)
         - Downloaded rosidl_typesupport_microxrcedds_cpp_tests
         - Downloaded rosidl_typesupport_microxrcedds_c_tests
         - Downloaded rosidl_typesupport_microxrcedds_test_msg
         - Downloaded rosidl_typesupport_microxrcedds_c
         - Downloaded rosidl_typesupport_interface
         - Downloaded rosidl_typesupport_introspection_tests
         - Downloaded rosidl_typesupport_introspection_cpp (ignored)
         - Downloaded rosidl_adapter
         - Downloaded rosidl_generator_c
         - Downloaded rosidl_typesupport_introspection_c
         - Downloaded rosidl_parser
         - Downloaded rosidl_generator_cpp (ignored)
         - Downloaded rosidl_runtime_c
         - Downloaded rosidl_cli
         - Downloaded rosidl_cmake
         - Downloaded rosidl_runtime_cpp (ignored)
         - Downloaded rmw
         - Downloaded rmw_implementation_cmake
         - Downloaded lifecycle_msgs
         - Downloaded builtin_interfaces
         - Downloaded rosgraph_msgs
         - Downloaded statistics_msgs
         - Downloaded composition_interfaces
         - Downloaded test_msgs
         - Downloaded rcl_interfaces
         - Downloaded action_msgs
         - Downloaded rosidl_default_generators
         - Downloaded rosidl_default_runtime
         - Downloaded unique_identifier_msgs
         - Downloaded visualization_msgs
         - Downloaded shape_msgs
         - Downloaded sensor_msgs
         - Downloaded std_msgs
         - Downloaded actionlib_msgs
         - Downloaded diagnostic_msgs
         - Downloaded stereo_msgs
         - Downloaded nav_msgs
         - Downloaded trajectory_msgs
         - Downloaded sensor_msgs_py
         - Downloaded std_srvs
         - Downloaded geometry_msgs
         - Downloaded common_interfaces
         - Downloaded test_interface_files
         - Downloaded test_rmw_implementation
         - Downloaded rmw_implementation
         - Downloaded rcl_logging_noop
         - Downloaded rcl_logging_spdlog (ignored)
         - Downloaded rcl_logging_interface
         - Downloaded test_tracetools_launch
         - Downloaded tracetools_launch
         - Downloaded test_tracetools
         - Downloaded tracetools_test
         - Downloaded tracetools_read
         - Downloaded tracetools_trace
         - Downloaded ros2trace
         - Downloaded tracetools
         - Extra packages folder not found, skipping...
Building micro-ROS library
Build mcu micro-ROS environment failed: 
--- stderr: rosidl_cli
/home/russ/.platformio/penv/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
--- stderr: tracetools_trace
/home/russ/.platformio/penv/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
--- stderr: rcutils
In file included from /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/error_handling.c:35:
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/./error_handling_helpers.h: In function '__rcutils_convert_uint64_t_into_c_str':
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/./error_handling_helpers.h:109:48: warning: unused parameter 'number' [-Wunused-parameter]
  109 | __rcutils_convert_uint64_t_into_c_str(uint64_t number, char * buffer, size_t buffer_size)
      |                                       ~~~~~~~~~^~~~~~
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/./error_handling_helpers.h:109:63: warning: unused parameter 'buffer' [-Wunused-parameter]
  109 | __rcutils_convert_uint64_t_into_c_str(uint64_t number, char * buffer, size_t buffer_size)
      |                                                        ~~~~~~~^~~~~~
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/./error_handling_helpers.h:109:78: warning: unused parameter 'buffer_size' [-Wunused-parameter]
  109 | __rcutils_convert_uint64_t_into_c_str(uint64_t number, char * buffer, size_t buffer_size)
      |                                                                       ~~~~~~~^~~~~~~~~~~
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/./error_handling_helpers.h: In function '__rcutils_format_error_string':
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/./error_handling_helpers.h:142:28: warning: unused parameter 'error_string' [-Wunused-parameter]
  142 |   rcutils_error_string_t * error_string,
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/./error_handling_helpers.h:143:33: warning: unused parameter 'error_state' [-Wunused-parameter]
  143 |   const rcutils_error_state_t * error_state)
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/error_handling.c: In function 'rcutils_get_error_string':
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/error_handling.c:240:38: warning: initializer-string for array of 'char' is too long
  240 |     return (rcutils_error_string_t) {"error not set"};  // NOLINT(readability/braces)
      |                                      ^~~~~~~~~~~~~~~
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/error_handling.c:240:38: note: (near initialization for '(anonymous).str')
In file included from /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/error_handling.c:35:
At top level:
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/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]
  109 | __rcutils_convert_uint64_t_into_c_str(uint64_t number, char * buffer, size_t buffer_size)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/./error_handling_helpers.h:91:1: warning: '__rcutils_reverse_str' defined but not used [-Wunused-function]
   91 | __rcutils_reverse_str(char * string_in, size_t string_len)
      | ^~~~~~~~~~~~~~~~~~~~~
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/logging.c: In function 'rcutils_get_env_var_zero_or_one':
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/logging.c:130:35: warning: unused parameter 'zero_semantic' [-Wunused-parameter]
  130 |   const char * name, const char * zero_semantic,
      |                      ~~~~~~~~~~~~~^~~~~~~~~~~~~
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/logging.c:131:16: warning: unused parameter 'one_semantic' [-Wunused-parameter]
  131 |   const char * one_semantic)
      |   ~~~~~~~~~~~~~^~~~~~~~~~~~
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/atomic_64bits.c:53:10: warning: conflicting types for built-in function '__atomic_load_8'; expected 'long long unsigned int(const volatile void *, int)' [-Wbuiltin-declaration-mismatch]
   53 | uint64_t __atomic_load_8(uint64_t *mem, int model) {
      |          ^~~~~~~~~~~~~~~
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/atomic_64bits.c:62:6: warning: conflicting types for built-in function '__atomic_store_8'; expected 'void(volatile void *, long long unsigned int,  int)' [-Wbuiltin-declaration-mismatch]
   62 | void __atomic_store_8(uint64_t *mem, uint64_t val, int model) {
      |      ^~~~~~~~~~~~~~~~
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/atomic_64bits.c:70:10: warning: conflicting types for built-in function '__atomic_exchange_8'; expected 'long long unsigned int(volatile void *, long long unsigned int,  int)' [-Wbuiltin-declaration-mismatch]
   70 | uint64_t __atomic_exchange_8(uint64_t *mem, uint64_t val, int model) {
      |          ^~~~~~~~~~~~~~~~~~~
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/atomic_64bits.c:80:10: warning: conflicting types for built-in function '__atomic_fetch_add_8'; expected 'long long unsigned int(volatile void *, long long unsigned int,  int)' [-Wbuiltin-declaration-mismatch]
   80 | uint64_t __atomic_fetch_add_8(uint64_t *mem, uint64_t val, int model) {
      |          ^~~~~~~~~~~~~~~~~~~~
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/time_unix.c:52:4: warning: #warning is a GCC extension
   52 | #  warning no monotonic clock function available
      |    ^~~~~~~
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/time_unix.c:52:4: warning: #warning no monotonic clock function available [-Wcpp]
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/time_unix.c: In function 'rcutils_system_time_now':
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rcutils/src/time_unix.c:74:3: warning: implicit declaration of function 'clock_gettime' [-Wimplicit-function-declaration]
   74 |   clock_gettime(CLOCK_REALTIME, &timespec_now);
      |   ^~~~~~~~~~~~~
---
--- stderr: tracetools_read
/home/russ/.platformio/penv/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
--- stderr: tracetools_launch
/home/russ/.platformio/penv/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
--- stderr: ros2trace
/home/russ/.platformio/penv/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
--- stderr: rcl_logging_interface
CMake Warning at /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/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/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/rcutilsConfig.cmake:41 (include)
  CMakeLists.txt:19 (find_package)


---
--- stderr: rosidl_runtime_c
CMake Warning at /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/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/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/rcutilsConfig.cmake:41 (include)
  CMakeLists.txt:15 (find_package)


---
--- stderr: microxrcedds_client
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/Micro-XRCE-DDS-Client/src/c/util/time.c: In function 'uxr_nanos':
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/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]
   60 |     clock_gettime(CLOCK_REALTIME, &ts);
      |     ^~~~~~~~~~~~~
---
--- stderr: tracetools_test
/home/russ/.platformio/penv/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
--- stderr: rcl_logging_noop
CMake Warning at /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/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/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/rcutilsConfig.cmake:41 (include)
  /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rcl_logging_interface/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
  /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rcl_logging_interface/cmake/rcl_logging_interfaceConfig.cmake:41 (include)
  CMakeLists.txt:15 (find_package)


---
--- stderr: rmw
CMake Warning at /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/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/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/rcutilsConfig.cmake:41 (include)
  CMakeLists.txt:21 (find_package)


In file included from /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rmw/rmw/src/validate_full_topic_name.c:17:
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rmw/rmw/src/validate_full_topic_name.c: In function 'rmw_validate_full_topic_name_with_size':
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rmw/rmw/src/validate_full_topic_name.c:106:29: warning: array subscript has type 'char' [-Wchar-subscripts]
  106 |       if (isdigit(topic_name[i + 1]) != 0) {
      |                   ~~~~~~~~~~^~~~~~~
In file included from /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rmw/rmw/src/validate_node_name.c:17:
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rmw/rmw/src/validate_node_name.c: In function 'rmw_validate_node_name_with_size':
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/rmw/rmw/src/validate_node_name.c:72:24: warning: array subscript has type 'char' [-Wchar-subscripts]
   72 |   if (isdigit(node_name[0]) != 0) {
      |               ~~~~~~~~~^~~
---
--- stderr: rosidl_typesupport_microxrcedds_c
CMake Warning at /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/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/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/rcutilsConfig.cmake:41 (include)
  /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rosidl_runtime_c/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
  /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rosidl_runtime_c/cmake/rosidl_runtime_cConfig.cmake:41 (include)
  CMakeLists.txt:22 (find_package)


---
--- stderr: rosidl_typesupport_c
CMake Warning at /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/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/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/rcutilsConfig.cmake:41 (include)
  CMakeLists.txt:33 (find_package)


---
--- stderr: micro_ros_utilities
CMake Warning at /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/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/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/rcutilsConfig.cmake:41 (include)
  /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rosidl_runtime_c/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
  /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rosidl_runtime_c/cmake/rosidl_runtime_cConfig.cmake:41 (include)
  /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rosidl_typesupport_introspection_c/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
  /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rosidl_typesupport_introspection_c/cmake/rosidl_typesupport_introspection_cConfig.cmake:41 (include)
  CMakeLists.txt:18 (find_package)


/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/micro_ros_utilities/src/type_utilities.c: In function 'print_type_info':
/home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/src/micro_ros_utilities/src/type_utilities.c:96:61: warning: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
   96 |       buffer, sizeof(buffer), "%sIntrospection for %s/%s - %u members, %zu B\n",
      |                                                            ~^
      |                                                             |
      |                                                             unsigned int
      |                                                            %lu
......
  100 |       members->member_count_,
      |       ~~~~~~~~~~~~~~~~~~~~~~                                 
      |              |
      |              uint32_t {aka long unsigned int}
---
--- stderr: builtin_interfaces
CMake Warning at /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/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/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rcutils/cmake/rcutilsConfig.cmake:41 (include)
  /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rosidl_runtime_c/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
  /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rosidl_runtime_c/cmake/rosidl_runtime_cConfig.cmake:41 (include)
  /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rosidl_typesupport_introspection_c/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
  /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rosidl_typesupport_introspection_c/cmake/rosidl_typesupport_introspection_cConfig.cmake:41 (include)
  /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rosidl_typesupport_c/cmake/rosidl_typesupport_c-extras.cmake:13 (find_package)
  /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rosidl_typesupport_c/cmake/rosidl_typesupport_cConfig.cmake:41 (include)
  /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rosidl_default_generators/cmake/rosidl_default_generators-extras.cmake:21 (find_package)
  /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rosidl_default_generators/cmake/rosidl_default_generatorsConfig.cmake:41 (include)
  CMakeLists.txt:14 (find_package)


CMake Error at /home/russ/microros_ws/install/rosidl_typesupport_microxrcedds_cpp/share/rosidl_typesupport_microxrcedds_cpp/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package):
  By not providing "Findrosidl_runtime_cpp.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "rosidl_runtime_cpp", but CMake did not find one.

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

    rosidl_runtime_cppConfig.cmake
    rosidl_runtime_cpp-config.cmake

  Add the installation prefix of "rosidl_runtime_cpp" to CMAKE_PREFIX_PATH or
  set "rosidl_runtime_cpp_DIR" to a directory containing one of the above
  files.  If "rosidl_runtime_cpp" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  /home/russ/microros_ws/install/rosidl_typesupport_microxrcedds_cpp/share/rosidl_typesupport_microxrcedds_cpp/cmake/rosidl_typesupport_microxrcedds_cppConfig.cmake:41 (include)
  /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rosidl_default_generators/cmake/rosidl_default_generators-extras.cmake:21 (find_package)
  /home/russ/Documents/PlatformIO/Projects/pub2/.pio/libdeps/teensy40/micro_ros_platformio/build/mcu/install/share/rosidl_default_generators/cmake/rosidl_default_generatorsConfig.cmake:41 (include)
  CMakeLists.txt:14 (find_package)


---
Failed   <<< builtin_interfaces [0.69s, exited with code 1]

=========================== [FAILED] Took 163.73 seconds ===========================

  • The terminal process "platformio 'run'" terminated with exit code: 1.
  • Terminal will be reused by tasks, press any key to close it.
@pablogs9
Copy link
Member

pablogs9 commented Sep 4, 2023

Do you have your ROS 2 environment source when trying to build this package? Make sure that it is not sourced, also check your bashrc to see if it is being sourced there

@amalshaji4540
Copy link

@pablogs9
I had also faced the same issue. Your solution helped me. Thank you.

First I had remove the ROS2 environment source, still I had faced the error. Then after restarting the computer everything is working as expected..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants