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

jazzy fastcdr problem

Đang mở
#256 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
C++
Star
201
Fork
111
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
10

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với quá trình build của micro_ros_agent và CMakeLists.txt đã clone của xrceagent tại lệnh gọi find_package ở dòng 153. Tái hiện bản build Ubuntu 24.04 với ROS Jazzy, so sánh phiên bản fastcdr được yêu cầu với cấu hình của phiên bản 1.1.0 đã cài đặt, sau đó kiểm tra lỗi biên dịch riêng biệt trong fastcdr/xcdr/MemberId.hpp. Hoàn tất khi agent build thành công mà không gặp bất kỳ lỗi nào trong hai lỗi đó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
cmake, cpp
Lĩnh vực
build-system
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.