(Solved) Help compiling MicroROS esp component (Humble or Iron)
Hi all,
I am trying to compile https://github.com/micro-ROS/micro_ro...
Following the instructions in the readme, I get the following error
/opt/microros/micro_ros_espidf_component/examples/int32_publisher/main/main.c:11:10:
fatal error: rcl/rcl.h: No such file or directory
#include <rcl/rcl.h>
I have seen this error before but there is a chicken / egg issue with the include directories in micro_ros_src and the combined include dir in ${EXTENSIONS_DIR}/include.
If I add in all the requisite INCLUDE directories in the main/CMakeLists.txt, I can eliminate errors until I get the error about the missing .h file configuration_flags.h because I am using the mirco_ros_src as the top of my include path vs the include directory in the EXTENSIONS_DIR because that directory is not available until after a successful compile and only the .h.in files exists in the rcutils include dir.
I am using IDF version 4.4
Any idea what I may be doing wrong ?
On a related topic, I tried dropping the micros_ros_espidf into my component directory. When I do that, the cmake process will run but it does not add a target for libmicroros.a.
I think this is around the change from Galactic where the CMakeLists.txt file used external_project_add cmake macro to call colcon for the build process to now use the external_process command cmake macro
I swapped out the external_process command for the older external_project_add and now make is running to build the target but the make process is filled with errors.