micro-ROS / micro-ROS/micro-ROS-Agent

jazzy fastcdr problem

未關閉
#256 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
C++
星號
201
分支
111
平均合併
1 天 6 小時
30 天內合併 PR
10

描述

Hi All.

i'm on Ubuntu 24.04 ros jazzy

when i build the jazzy branch, the xrceagent complains about the fastcdr version :
```
Starting >>> micro_ros_agent
[Processing: micro_ros_agent]
--- stderr: micro_ros_agent
Cloning into 'xrceagent'...
HEAD is now at 7362281 Release v2.4.3
Cloning into 'spdlog'...
HEAD is now at eb322062 Bump version to 1.9.2
CMake Error at CMakeLists.txt:153 (find_package):
Could not find a configuration file for package "fastcdr" that is
compatible with requested version "2".

The following configuration files were considered but not accepted:

/usr/lib/x86_64-linux-gnu/cmake/fastcdr/fastcdr-config.cmake, version: 1.1.0
/lib/x86_64-linux-gnu/cmake/fastcdr/fastcdr-config.cmake, version: 1.1.0

gmake[5]: *** [CMakeFiles/uagent.dir/build.make:94: uagent-prefix/src/uagent-stamp/uagent-configure] Error 1
gmake[4]: *** [CMakeFiles/Makefile2:111: CMakeFiles/uagent.dir/all] Error 2
gmake[3]: *** [Makefile:91: all] Error 2
gmake[2]: *** [CMakeFiles/xrceagent.dir/build.make:86: agent/src/xrceagent-stamp/xrceagent-build] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/xrceagent.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2
---
Failed <<< micro_ros_agent [33.7s, exited with code 2]

```

if i build fastcdr version 2 and build microros agent i get this error :

```
In file included from /usr/include/fastrtps/types/TypeObject.h:18,
from /usr/include/fastdds/dds/core/policy/QosPolicies.hpp:37,
from /usr/include/fastdds/dds/topic/TopicDataType.hpp:26,
from /usr/include/fastrtps/TopicDataType.h:22,
from /home/stefanomutti/ros_ws/build/micro_ros_agent/agent/src/xrceagent/include/uxr/agent/types/TopicPubSubType.hpp:18,
from /home/stefanomutti/ros_ws/build/micro_ros_agent/agent/src/xrceagent/src/cpp/types/TopicPubSubType.cpp:15:
/usr/local/include/fastcdr/xcdr/MemberId.hpp:67:23: error: expected unqualified-id before numeric constant
67 | static const MemberId MEMBER_ID_INVALID {};

```

am i the only one experiencing this ?
Thanks

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 micro_ros_agent 的建置以及複製的 xrceagent CMakeLists.txt 中第 153 行的 find_package 呼叫開始。重現 Ubuntu 24.04 ROS Jazzy 建置,將要求的 fastcdr 版本與已安裝的 1.1.0 版本設定進行比較,然後檢查 fastcdr/xcdr/MemberId.hpp 中獨立的編譯器失敗。agent 能夠在不出現這兩個錯誤中的任何一個的情況下成功建置,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
cmake, cpp
領域
build-system
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。