Skip to content
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

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

Closed
PetitPrince6 opened this issue Mar 31, 2023 · 4 comments
Closed

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

PetitPrince6 opened this issue Mar 31, 2023 · 4 comments

Comments

@PetitPrince6
Copy link

PetitPrince6 commented Mar 31, 2023

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.

@pablogs9
Copy link
Member

pablogs9 commented Apr 3, 2023

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

Could you provide more details?

@PetitPrince6
Copy link
Author

PetitPrince6 commented Apr 3, 2023

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.

@Acuadros95
Copy link
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)

@PetitPrince6
Copy link
Author

PetitPrince6 commented Apr 3, 2023

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants