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

jazzy fastcdr problem

オープン
#256 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
C++
スター
201
フォーク
111
平均マージ
1日 6時間
マージ済み PR(30日)
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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

micro_ros_agent のビルドと、153 行目の find_package 呼び出しにあるクローン済み xrceagent の CMakeLists.txt から始めます。Ubuntu 24.04 での ROS Jazzy のビルドを再現し、要求されている fastcdr のバージョンと、インストールされている 1.1.0 の設定を比較してから、fastcdr/xcdr/MemberId.hpp にある別のコンパイラーエラーを調査します。エージェントがどちらのエラーも発生させずに正常にビルドできれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cmake, cpp
領域
build-system
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。