Title: Can't build agent because of fmt · Issue #255 · micro-ROS/micro-ROS-Agent · GitHub
Open Graph Title: Can't build agent because of fmt · Issue #255 · micro-ROS/micro-ROS-Agent
X Title: Can't build agent because of fmt · Issue #255 · micro-ROS/micro-ROS-Agent
Description: Hardware description: Personnal computer running Ubuntu 24.04 Installation type: Micro-ros-setup, colcon-build, snap Version or commit hash: jazzy Current spdlog version: 1.15.0 Context: I'm building a ros2 package based on linorobot2 wh...
Open Graph Description: Hardware description: Personnal computer running Ubuntu 24.04 Installation type: Micro-ros-setup, colcon-build, snap Version or commit hash: jazzy Current spdlog version: 1.15.0 Context: I'm buildi...
X Description: Hardware description: Personnal computer running Ubuntu 24.04 Installation type: Micro-ros-setup, colcon-build, snap Version or commit hash: jazzy Current spdlog version: 1.15.0 Context: I'm bu...
Opengraph URL: https://github.com/micro-ROS/micro-ROS-Agent/issues/255
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Can't build agent because of fmt","articleBody":"- Hardware description: Personnal computer running Ubuntu 24.04\n- Installation type: Micro-ros-setup, colcon-build, snap\n- Version or commit hash: jazzy\n- Current spdlog version: 1.15.0\n\n**Context:**\nI'm building a ros2 package based on [linorobot2](https://github.com/linorobot/linorobot2) which requires micro ros agent. \n\n#### Behavior\nFollowing the [installation tutorial](https://micro.ros.org/docs/tutorials/core/first_application_linux/), I execute the ```ros2 run build_agent.sh``` command and get this error:\n\n```\nIn file included from /home/darkadius/anaconda3/include/fmt/format.h:41,\n from /home/darkadius/anaconda3/include/fmt/core.h:5,\n from /home/darkadius/anaconda3/include/spdlog/fmt/fmt.h:28,\n from /home/darkadius/anaconda3/include/spdlog/common.h:50,\n from /home/darkadius/anaconda3/include/spdlog/spdlog.h:12,\n from /home/darkadius/ros2_ws/build/micro_ros_agent/agent/src/xrceagent/include/uxr/agent/logger/Logger.hpp:23,\n from /home/darkadius/ros2_ws/build/micro_ros_agent/agent/src/xrceagent/include/uxr/agent/transport/SessionManager.hpp:18,\n from /home/darkadius/ros2_ws/build/micro_ros_agent/agent/src/xrceagent/include/uxr/agent/transport/Server.hpp:20,\n from /home/darkadius/ros2_ws/build/micro_ros_agent/agent/src/xrceagent/include/uxr/agent/transport/tcp/TCPv6AgentLinux.hpp:19,\n from /home/darkadius/ros2_ws/build/micro_ros_agent/agent/src/xrceagent/src/cpp/transport/tcp/TCPv6AgentLinux.cpp:15:\n\n/home/darkadius/anaconda3/include/fmt/base.h: In instantiation of ‘fmt::v11::detail::value\u003cContext\u003e::value(const T\u0026, fmt::v11::detail::custom_tag) [with T = dds::xrce::TransportAddress; typename std::enable_if\u003c(! has_formatter\u003cT, typename Context::char_type\u003e()), int\u003e::type \u003canonymous\u003e = 0; Context = fmt::v11::context]’:\n/home/darkadius/anaconda3/include/fmt/base.h:2208:65: required from ‘fmt::v11::detail::value\u003cContext\u003e::value(T\u0026) [with T = dds::xrce::TransportAddress; typename std::enable_if\u003c(std::integral_constant\u003cbool, (((((((std::is_class\u003cT\u003e::value || std::is_enum\u003cT\u003e::value) || std::is_union\u003cT\u003e::value) || std::is_array\u003c_Up\u003e::value) \u0026\u0026 (! fmt::v11::detail::has_to_string_view\u003cT, void\u003e::value)) \u0026\u0026 (! fmt::v11::detail::is_named_arg\u003cT\u003e::value)) \u0026\u0026 (! fmt::v11::detail::use_format_as\u003cT\u003e::value)) \u0026\u0026 (! fmt::v11::detail::use_format_as_member\u003ctypename std::remove_const\u003cT\u003e::type, std::integral_constant\u003cbool, true\u003e \u003e::value))\u003e::value || (!1)), int\u003e::type \u003canonymous\u003e = 0; Context = fmt::v11::context]’\n/home/darkadius/anaconda3/include/fmt/base.h:2781:20: required from ‘constexpr fmt::v11::detail::format_arg_store\u003cContext, NUM_ARGS, NUM_NAMED_ARGS, DESC\u003e fmt::v11::make_format_args(T\u0026 ...) [with Context = context; T = {const char [24], dds::xrce::TransportAddress}; int NUM_ARGS = 2; int NUM_NAMED_ARGS = 0; long long unsigned int DESC = 252]’\n/home/darkadius/anaconda3/include/spdlog/logger.h:328:75: required from ‘void spdlog::logger::log_(spdlog::source_loc, spdlog::level::level_enum, spdlog::string_view_t, Args\u0026\u0026 ...) [with Args = {const char (\u0026)[24], dds::xrce::TransportAddress\u0026}; spdlog::string_view_t = fmt::v11::basic_string_view\u003cchar\u003e]’\n/home/darkadius/anaconda3/include/spdlog/logger.h:80:13: required from ‘void spdlog::logger::log(spdlog::source_loc, spdlog::level::level_enum, fmt::v11::format_string\u003cT ...\u003e, Args\u0026\u0026 ...) [with Args = {const char (\u0026)[24], dds::xrce::TransportAddress\u0026}; fmt::v11::format_string\u003cT ...\u003e = fmt::v11::fstring\u003cconst char (\u0026)[24], dds::xrce::TransportAddress\u0026\u003e]’\n/home/darkadius/ros2_ws/build/micro_ros_agent/agent/src/xrceagent/include/uxr/agent/transport/util/InterfaceLinux.hpp:63:17: required from here\n\n/home/darkadius/anaconda3/include/fmt/base.h:2235:45: error: ‘fmt::v11::detail::type_is_unformattable_for\u003cdds::xrce::TransportAddress, char\u003e _’ has incomplete type\n 2235 | type_is_unformattable_for\u003cT, char_type\u003e _;\n```\n#### Solutions tried:\n-**Downgrading spdlog:** Jazzy's rclpy requires spdlog 1.15.0\n-**Building libfmt from source** from [here](https://github.com/micro-ROS/micro-ROS-Agent/issues/50#issuecomment-2131215009) : Gives the above error as the new libfmt wasn't detected\n-**Using the DUAGENT flag (both on/off)** from [here](https://github.com/micro-ROS/micro_ros_setup/issues/455#issuecomment-1042635375) : Still gives me the above error\n-**Using the snap version** from [here](https://github.com/micro-ROS/micro-ROS-Agent/issues/186#issuecomment-1494091767) : The package does build successfully, however, the only micro-ros-agent package on snap was the foxy version, which causes fatal compatibility issues upon launching the linorobot2 package\n\nIt feels like I've tried everything short of a complete ros2/ubuntu reinstall (which I'd like to avoid, obviously). Does anyone has some advice?","author":{"url":"https://github.com/Darkadius","@type":"Person","name":"Darkadius"},"datePublished":"2025-06-10T09:15:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/255/micro-ROS-Agent/issues/255"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d5377b71-7511-0433-8f18-8be6cb8497c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA30:2F76D:25C3AA7:30B7254:69756EDE |
| html-safe-nonce | d9d07dae4fed628a057289274209f38b5baac1481b99932fddd3c69ad30d2450 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTMwOjJGNzZEOjI1QzNBQTc6MzBCNzI1NDo2OTc1NkVERSIsInZpc2l0b3JfaWQiOiIzMTE3OTI2NTAxMTEyNTAxNDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 08cf0753996484a9eb40ae973fa13486cedc8c81aa0a8bfb95cb3cb07ab50ca8 |
| hovercard-subject-tag | issue:3132794130 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/micro-ROS/micro-ROS-Agent/255/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2e6b844b95f3e41ac10906f41d4ecb15a3a3a998ef6bda0ac7b2ca680b5e9a83/micro-ROS/micro-ROS-Agent/issues/255 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2e6b844b95f3e41ac10906f41d4ecb15a3a3a998ef6bda0ac7b2ca680b5e9a83/micro-ROS/micro-ROS-Agent/issues/255 |
| og:image:alt | Hardware description: Personnal computer running Ubuntu 24.04 Installation type: Micro-ros-setup, colcon-build, snap Version or commit hash: jazzy Current spdlog version: 1.15.0 Context: I'm buildi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Darkadius |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/micro-ROS/micro-ROS-Agent git https://github.com/micro-ROS/micro-ROS-Agent.git |
| octolytics-dimension-user_id | 49058602 |
| octolytics-dimension-user_login | micro-ROS |
| octolytics-dimension-repository_id | 156196165 |
| octolytics-dimension-repository_nwo | micro-ROS/micro-ROS-Agent |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 156196165 |
| octolytics-dimension-repository_network_root_nwo | micro-ROS/micro-ROS-Agent |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width