Unreal Engine x86_64 Build for Magic Leap 2

ML Branch UE 5.4.3

Hello! I am wondering if there is a way to compile for Android x86_64 with Unreal Engine?

My goal is to get Cesium to work on Magic Leap 2.
I saw a solution for Unity posted here, but I am unsure how to replicate it for Unreal.

These are the existing errors:

Thank you!

It’s probably possible, but we haven’t tried.

First, you’ll need to compile cesium-native from the extern directory for Android / x64. The part of the CI script that builds it for ARM64 is here:

So you’ll need an alternate version of unreal-android-toolchain.cmake that targets the other processor architecture. You’ll also need a vcpkg triplet for it:

Finally, you’ll need to update CesiumRuntime.build.cs and CesiumEditor.build.cs to look for the built libraries in the correct location: