How to cross-compile the ROS2 plugin?

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.