micro-ROS / micro_ros_tivac_launchpad_app

micro-ROS app for TI Tiva C Series TM4C123GXL LaunchPad
Apache License 2.0
3 stars 4 forks source link

After 82f5a23 the make procedure fails #2

Closed altineller closed 2 years ago

altineller commented 2 years ago

Hello,

After the latest commit, the make procedure fails.

Best Regards, Can

Summary: 24 packages finished [12.3s]
  1 package failed: micro_ros_msgs
  4 packages aborted: builtin_interfaces lifecycle_msgs std_srvs unique_identifier_msgs
  8 packages had stderr output: builtin_interfaces lifecycle_msgs micro_ros_msgs microxrcedds_client rcutils rmw std_srvs unique_identifier_msgs
  33 packages not processed
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -MD -std=c99 -Wall -pedantic -DPART_TM4C123GH6PM -c -g -D DEBUG -O0 -DTARGET_IS_TM4C123_RB1 -DUART_BUFFERED -I~/ti/tivaware_2_2_0_295/examples/boards/ek-tm4c123gxl/ -I~/ti/tivaware_2_2_0_295 -Imicroros/install/include -Isrc -Dgcc -o gcc/microros.o src/microros.c
In file included from src/microros.c:2:
src/./microros_usbcdc_transport.h:8:10: fatal error: rmw_microros/custom_transport.h: No such file or directory
    8 | #include <rmw_microros/custom_transport.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/home/can/ti/tivaware_2_2_0_295/makedefs:175: gcc/microros.o] Error 1
can@hurricane:~/ros2_microros/src/micro_ros_tivac_launchpad_app$ make
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -MD -std=c99 -Wall -pedantic -DPART_TM4C123GH6PM -c -g -D DEBUG -O0 -DTARGET_IS_TM4C123_RB1 -DUART_BUFFERED -I~/ti/tivaware_2_2_0_295/examples/boards/ek-tm4c123gxl/ -I~/ti/tivaware_2_2_0_295 -Imicroros/install/include -Isrc -Dgcc -o gcc/microros.o src/microros.c
In file included from src/microros.c:2:
src/./microros_usbcdc_transport.h:8:10: fatal error: rmw_microros/custom_transport.h: No such file or directory
    8 | #include <rmw_microros/custom_transport.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/home/can/ti/tivaware_2_2_0_295/makedefs:175: gcc/microros.o] Error 1
pablogs9 commented 2 years ago

Hello @altineller,

Are you working in main branch or in rosrider branch?

In any case, remove the whole microros/install folder and make make clean && make again.

altineller commented 2 years ago

it is at the 'main' branch.

I have tried both removing the folder and repeating instructions at readme.md, but i still get a similar error:

tarting >>> std_srvs --- stderr: unique_identifier_msgs
CMake Error at /home/can/ros2_microros/src/micro_ros_tivac_launchpad_app/microros/install/micro_ros_src/install/share/rosidl_typesupport_c/cmake/get_used_typesupports.cmake:35 (message): No 'rosidl_typesupport_cpp' found Call Stack (most recent call first): /opt/ros/foxy/share/rosidl_typesupport_cpp/cmake/rosidl_typesupport_cpp-extras.cmake:8 (get_used_typesupports) /opt/ros/foxy/share/rosidl_typesupport_cpp/cmake/rosidl_typesupport_cppConfig.cmake:41 (include) /home/can/ros2_microros/src/micro_ros_tivac_launchpad_app/microros/install/micro_ros_src/install/share/rosidl_default_generators/cmake/rosidl_default_generators-extras.cmake:21 (find_package) /home/can/ros2_microros/src/micro_ros_tivac_launchpad_app/microros/install/micro_ros_src/install/share/rosidl_default_generators/cmake/rosidl_default_generatorsConfig.cmake:41 (include) CMakeLists.txt:15 (find_package)


Failed <<< unique_identifier_msgs [0.75s, exited with code 1] Aborted <<< builtin_interfaces [0.75s] Aborted <<< lifecycle_msgs [0.73s] Aborted <<< micro_ros_msgs [0.74s] Aborted <<< std_srvs [0.73s]

Summary: 24 packages finished [9.70s] 1 package failed: unique_identifier_msgs 4 packages aborted: builtin_interfaces lifecycle_msgs micro_ros_msgs std_srvs 8 packages had stderr output: builtin_interfaces lifecycle_msgs micro_ros_msgs microxrcedds_client rcutils rmw std_srvs unique_identifier_msgs 33 packages not processed arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections -MD -std=c99 -Wall -pedantic -DPART_TM4C123GH6PM -c -g -D DEBUG -O0 -DTARGET_IS_TM4C123_RB1 -DUART_BUFFERED -Itivaware_c_series/examples/boards/ek-tm4c123gxl/ -Itivaware_c_series -Imicroros/install/include -Isrc -Dgcc -o gcc/microros.o src/microros.c In file included from src/microros.c:2: src/./microros_usbcdc_transport.h:8:10: fatal error: rmw_microros/custom_transport.h: No such file or directory 8 | #include <rmw_microros/custom_transport.h> | ^~~~~~~~~ compilation terminated. make: *** [tivaware_c_series/makedefs:175: gcc/microros.o] Error 1

pablogs9 commented 2 years ago

Let me take a look

pablogs9 commented 2 years ago

@altineller do you have sourced your ROS 2 installation? In order to build micro-ROS is better to not have it sourced.

Make sure that you are not doing source /opt/ros/foxy/setup.bash and this command is not in your .bashrc

altineller commented 2 years ago

I have tried foxy both sourced and not sourced, and same results. I fired a foxy lxd image and repeated procedure, still fail.

I checked out the rosrider branch and it builds.