Skip to content

XRCE multithreading not supported for this platform - FreeRTOS - wrong flag #233

@bjv-capra

Description

@bjv-capra

From micro-ROS/micro_ros_setup#312
I was trying to enable multithread support, however, I got

eProsima/Micro-XRCE-DDS-Client/src/c/profile/multithread/multithread.c:23:2: error: #error XRCE multithreading not supported for this platform.

By quickly skimming the code, it seems the wrong flag is used for FreeRTOS. I'm using FreeRTOS+TCP, on the base CMakeLists.txt, this sets UCLIENT_PLATFORM_FREERTOS_PLUS_TCP, on the other hand, https://github.com/eProsima/Micro-XRCE-DDS-Client/blob/foxy/src/c/profile/multithread/multithread.c#L13 expects to be PLATFORM_NAME_FREERTOS. As a workaround, I can set the flag on my colcon meta, but I think it's not the intended behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions