# How to cross-compile the ROS2 plugin?

**URL:** <https://forums.unrealengine.com/t/how-to-cross-compile-the-ros2-plugin/2137448>\
**Category:** Plugins\
**Tags:** unreal-engine, question\
**Created:** [November 20, 2024, 11:56am UTC](https://forums.unrealengine.com/t/how-to-cross-compile-the-ros2-plugin/2137448 "2024-11-20T11:56:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hkr\_0326](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hkr\_0326](https://forums.unrealengine.com/u/hkr_0326)\
**Post date:** [November 20, 2024, 11:56am UTC](https://forums.unrealengine.com/t/how-to-cross-compile-the-ros2-plugin/2137448/1 "2024-11-20T11:56:30Z")

</div>

I’m using ROS2 in Unreal Engine with the Rapyuta Robotics rclUE plugin.  
I want to build packages for Linux and LinuxArm64 using the cross-compile tools.  
However, I’m getting the attached error and it seems that the libc library link is not working properly.  
Does anyone know how to fix this?  
[error.log](https://forums.unrealengine.com/uploads/short-url/aySztZpYMJwg9hIME5Ap6CNak6E.log) (8.3 KB)

---

<div class="post-metadata">

**Author:** ![u130s](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@u130s](https://forums.unrealengine.com/u/u130s)\
**Post date:** [December 27, 2024, 9:55pm UTC](https://forums.unrealengine.com/t/how-to-cross-compile-the-ros2-plugin/2137448/2 "2024-12-27T21:55:48Z")

</div>

Please provide more info. I can’t even tell whether you’re building ROS packages and/or Unreal Engine, and/or something else.  
Share the commands you executed, version of tools/software, and CMakeLists.txt if possible.
