Skip to content

Micro-ros-agent does not seem to compile with fmt v9 #186

Closed

Description

@PetitPrince6

On Ubuntu 22.04 LTS clean install
Repo clone in a ros2 workspace. Building through colcon build.

The compilation fails, lots of errors related to fmt and inability to format. It seems that something is not backward compatible with fmt. If I force the fmt version 8, it compiles. Unfortunately, the v8 is no available in apt packages, requiring a specific install just for micro ros agent.

EDIT: Ubuntu 22.04 is still in fmt v8 but it is fmt 8.32 which already fails compiling. v8.1.0 works.

Activity

  1. pablogs9 commented on Apr 3, 2023

    @pablogs9
    Member

    Not able to reproduce on a clean ROS 2 Humble Ubuntu 22.04 docker: https://asciinema.org/a/ScEwg9hddtPFHyc3Pb9FtAL4S

    Could you provide more details?

  2. PetitPrince6 commented on Apr 3, 2023

    @PetitPrince6
    Author

    Ok, sorry, I found out, I did it on two different machines but I had the installation of a custom library messing with fmt in the installation process including the micro-ros-agent. It was intalling the fmt v9 version with which the micro-ros-agent doesn't compile. So not micro-ros-agent issue. Sorry for that.
    Maybe enforcing the fmt v8 would be a nice thing to do.

  3. Acuadros95 commented on Apr 3, 2023

    @Acuadros95
    Contributor

    You can force the Agent to use the installed version of the spdlog and fmt, check this comment: micro-ROS/micro_ros_setup#455 (comment)

  4. PetitPrince6 commented on Apr 3, 2023

    @PetitPrince6
    Author

    The option -DUAGENT_USE_SYSTEM_LOGGER=ON didn't work for me, but maybe I was not using it properly, I got lost at a certain point ^^. Anyway, I found two alternative solutions: a) switch to the snap version. b) Compile the agent before installing my custom library. :)

    Thank you all for the help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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