ROS2 foxy base cross compiled on Google coral error tracetools due to rclcpp
I have installed ROS2 foxy base through cross compilation on a Google coral dev board running mendel (like debian 10 buster) and a standard node works but as soon as I add
find_package(rclcpp REQUIRED)
to the package CMakeLists.txt I get the following error:
mendel@Coral-3:~/osd_ws$ colcon build --packages-select cpp_pubsub --cmake-args " -DTRACETOOLS_DISABLED=ON"
Starting >>> cpp_pubsub
--- stderr: cpp_pubsub
CMake Error at /home/mendel/ros2_foxy_base_cc_install_aarch64/rcl/share/rcl/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package):
By not providing "Findtracetools.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"tracetools", but CMake did not find one.
Could not find a package configuration file provided by "tracetools" with any of the following names:
tracetoolsConfig.cmake
tracetools-config.cmake
Add the installation prefix of "tracetools" to CMAKE_PREFIX_PATH or set "tracetools_DIR" to a directory containing one of the above files. If "tracetools" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): /home/mendel/ros2_foxy_base_cc_install_aarch64/rcl/share/rcl/cmake/rclConfig.cmake:41 (include) /home/mendel/ros2_foxy_base_cc_install_aarch64/libstatistics_collector/share/libstatistics_collector/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package) /home/mendel/ros2_foxy_base_cc_install_aarch64/libstatistics_collector/share/libstatistics_collector/cmake/libstatistics_collectorConfig.cmake:41 (include) /home/mendel/ros2_foxy_base_cc_install_aarch64/rclcpp/share/rclcpp/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package) /home/mendel/ros2_foxy_base_cc_install_aarch64/rclcpp/share/rclcpp/cmake/rclcppConfig.cmake:41 (include) CMakeLists.txt:20 (find_package)
Failed <<< cpp_pubsub [3.91s, exited with code 1]
Summary: 0 packages finished [6.58s] 1 package failed: cpp_pubsub 1 package had stderr output: cpp_pubsub
As far as I know, I shouldn't need tracetools, so how can I get rid of this error? Any ideas are welcome. Thank you in advance.
can you include more information, or link to a tutorial you followed? e.g. how did you cross-compile it exactly?