New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build_agent.sh fails while trying to go through tutorial #50
Comments
Good morning,
, then recompiling the agent with the steps provided? The only thing in the agent that is using some headers related to this library is the logger, to display information about the agent's status in the screen. |
Hey, |
Same error for me on Ubuntu 20.04.2 LTS even after executing the suggested commands to install fmt. |
I am now able to build and execute the agent (not using the docker container). There are several ROS2 official install tutorials and they appear to install/source ROS2 differently thus breaking the micro-ros-agent build process. My process: Install ROS2 via Debian packages (I installed the desktop version): https://docs.ros.org/en/foxy/Installation/Ubuntu-Install-Debians.html Install rosdep2: sudo apt install python3-rosdep2 Install colcon: sudo apt install python3-colcon-common-extensions Install micro-ros: https://micro.ros.org/docs/tutorials/core/first_application_linux/ I am really excited to get micro-ros working with my project, thanks for the hard work! |
Machine: Jetson Nano
I tried the suggestion by @jamoralp and it says Can someone help me? |
We just added a flag to use the system version of Agent build should succeed with this flag enabled: |
Describe the bug
I'm trying to go through the "first application linux" tutorial, but am getting a build error that is preventing the micro_ros_agent from finishing its build.
To Reproduce
-Ubuntu 20 running in a VirtualBox with windows 10 host
-Installed ROS2 Foxy using standard install procedure, confirmed working with pub/sub example
Output:
Building micro-ROS Agent
Starting >>> microcdr
Finished <<< microcdr [0.30s]
Starting >>> microxrcedds_agent
Finished <<< microxrcedds_agent [0.64s]
Starting >>> rosidl_typesupport_microxrcedds_c
Finished <<< rosidl_typesupport_microxrcedds_c [0.38s]
Starting >>> micro_ros_msgs
Finished <<< micro_ros_msgs [1.54s]
Starting >>> micro_ros_agent
--- stderr: micro_ros_agent
/usr/bin/ld: warning: libfastrtps.so.2, needed by /home/andrewgillies/ros2_foxy/ros2-linux/lib/librmw_fastrtps_shared_cpp.so, may conflict with libfastrtps.so.2.0.2
/usr/bin/ld: /home/andrewgillies/uagent/install/microxrcedds_agent/lib/libmicroxrcedds_agent.so.1.4.2: undefined reference to
fmt::v6::internal::basic_data<void>::signs' /usr/bin/ld: /home/andrewgillies/uagent/install/microxrcedds_agent/lib/libmicroxrcedds_agent.so.1.4.2: undefined reference to
spdlog::logger::log_it_(spdlog::details::log_msg const&, bool, bool)'/usr/bin/ld: /home/andrewgillies/uagent/install/microxrcedds_agent/lib/libmicroxrcedds_agent.so.1.4.2: undefined reference to
int fmt::v6::internal::snprintf_float<double>(double, int, fmt::v6::internal::float_specs, fmt::v6::internal::buffer<char>&)' /usr/bin/ld: /home/andrewgillies/uagent/install/microxrcedds_agent/lib/libmicroxrcedds_agent.so.1.4.2: undefined reference to
std::__cxx11::basic_string<char, std::char_traits, std::allocator > fmt::v6::internal::grouping_impl(fmt::v6::internal::locale_ref)'/usr/bin/ld: /home/andrewgillies/uagent/install/microxrcedds_agent/lib/libmicroxrcedds_agent.so.1.4.2: undefined reference to
int fmt::v6::internal::format_float<long double>(long double, int, fmt::v6::internal::float_specs, fmt::v6::internal::buffer<char>&)' /usr/bin/ld: /home/andrewgillies/uagent/install/microxrcedds_agent/lib/libmicroxrcedds_agent.so.1.4.2: undefined reference to
int fmt::v6::internal::snprintf_float(long double, int, fmt::v6::internal::float_specs, fmt::v6::internal::buffer&)'/usr/bin/ld: /home/andrewgillies/uagent/install/microxrcedds_agent/lib/libmicroxrcedds_agent.so.1.4.2: undefined reference to `int fmt::v6::internal::format_float(double, int, fmt::v6::internal::float_specs, fmt::v6::internal::buffer&)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/micro_ros_agent.dir/build.make:172: micro_ros_agent] Error 1
make[1]: *** [CMakeFiles/Makefile2:78: CMakeFiles/micro_ros_agent.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Failed <<< micro_ros_agent [0.65s, exited with code 2]
Summary: 4 packages finished [3.80s]
1 package failed: micro_ros_agent
1 package had stderr output: micro_ros_agent
The text was updated successfully, but these errors were encountered: