micro-ROS / micro_ros_stm32cubemx_utils

A set of utilities for integrating micro-ROS in a STM32CubeMX project
Apache License 2.0
144 stars 57 forks source link

Can't understand build #121

Open JorgePerC opened 8 months ago

JorgePerC commented 8 months ago

Hey, newcomer here. I'm trying to incorporate this into a new CubeIDE project, but can't seem to understand how to do it. Specially with steps 3 and 4, I clone this repo into my project, yet, I fail at building? libmicroros. I guess this is done through docker, but then how can I find the absolute path at step 4? I've tried to run the library_generation.sh in my local machine but fail at doing so. I've completed the tutorial at https://micro.ros.org/docs/tutorials/core/first_application_linux/

pablogs9 commented 8 months ago

Hello, we need more details about your failure. In which step it fails?

You mention problems with steps 3 and 4:

image

Could you elaborate on this?

JorgePerC commented 8 months ago

So... I had an initial error due to working on a board with two micros. Tried again with a single one, and copypasted the paths as the instructions said. //question: should step 3 be repeated for MCU GCC and MCU G++ compiler?

Screenshot from 2023-10-11 14-05-50


It eventually got to the build process. However, it failed. It is a missing file <uxr/client/transport.h> Screenshot from 2023-10-11 14-51-04

Then I found a similar issue But I got question, if I want to modify it, should I just edit the file locally on the clone of this repo? or is it dependent on the Docker image?

Btw, thanks for the help :D

pablogs9 commented 8 months ago

Yes, if you are using C and C++ you will need to add the include paths for both compilers