Skip to content

Errors when run build_agent.sh #228

Closed
@Aerotic

Description

@Aerotic

HOSTOS: Ubuntu 20.04.1 LTS

When I run ros2 run micro_ros_setup build_agent.sh, it gives following msg:

--- stderr: micro_ros_agent                                    
/usr/bin/ld: CMakeFiles/micro_ros_agent.dir/src/main.cpp.o: undefined reference to symbol '_ZN8eprosima8fastrtps4rtps6Time_tC1Eij'
/usr/bin/ld: /home/aero/test/install/microxrcedds_agent/lib/libfastrtps.so.2.0.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/micro_ros_agent.dir/build.make:87: micro_ros_agent] Error 1
make[1]: *** [CMakeFiles/Makefile2:78: CMakeFiles/micro_ros_agent.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
---

I'm quite sure that I completely follow the tutorial https://micro-ros.github.io/docs/tutorials/core/first_application_rtos/freertos/

The firmware build and flash work well.

Meanwhile, I've got a previously verison of microros_ws where firmware build and flash and micro_ros_agent all work well on the same computer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions