Support Required for Setting Up Cesium for Unity on Ubuntu 24.04

I am currently setting up Cesium for Unity on the following environment:

  • Unity Version: 2022.3.55f1 (LTS)

  • Operating System: Ubuntu 24.04 (Linux)

  • Target: Native plugin build with IL2CPP

During the setup, I encountered issues while building the Cesium native components. The build fails due to missing auto-generated headers such as:

  • DotNet/Unity/Mathematics/double4x4.h

  • DotNet/CesiumForUnity/CesiumCameraManager.h

From my understanding, these files should be generated through Unity’s IL2CPP binding pipeline when rebuilding the native code. However, the generation step does not seem to complete successfully in my environment.

I have already:

  • Installed Linux IL2CPP Build Support via Unity Hub

  • Switched scripting backend to IL2CPP

  • Attempted Cesium → Rebuild Native Code inside Unity

  • Installed required build tools (clang, cmake, ninja, build-essential)

Despite this, the generated/DotNet headers are not produced, causing native compilation to fail.

Could you please guide me on:

  1. Any additional dependencies required specifically for Ubuntu 24.04

  2. Known compatibility issues with this OS version

  3. Recommended steps to ensure IL2CPP bindings generate correctly for Cesium

  4. Whether there is an official setup guide for Linux native builds

I am working on a geospatial visualization project and would greatly appreciate your support in getting the environment configured correctly.

Hi @Ajithkumar6001, welcome to the community!

Linux is currently not a supported platform, so this is no quick answer to this. This page has information about the supported platforms and, at the bottom, a brief guide to the (non-trivial) process of extending support to a new platform:

To address your specific issue, the header files you listed are not generated by IL2CPP. They’re generated by “Reinterop”, which is a Cesium-developed plugin for the Roslyn C# compiler that runs while compiling the Cesium for Unity source code. A common error is to forget to build Reinterop before opening Unity. See the red note at the bottom of this section for more information about this problem and how to recover from it: