Compiling unreal plugin from source on linux

downloaded cesium-unreal-1.2.0.tar.gz

On Ubuntu, not sure

  1. where to compile it — it compiled successfully in its own directory next to the Unreal directory

  2. how to install the plugin into the Unreal Engine
    – still not sure how to properly install the plugin,
    – tried installing by - creating a symbolic link to it - in /Plugins in a under MyProject/
    – UnrealEngine found it in when loading MyProject,
    but complained because it failed to find CesiumRuntime and CesiumEditor
    it then tried to load mono to create it, but failed

SO… Fixed the problem, when it fails to find CesiumRuntime and CesiumEditor
and tries to compile it for you using mono, and asks you to close Unreal and compile from the “IDE”

just close Unreal, go to the top directory where you compiled from, and simply

make UE4Editor

that will launch mono to compile and link and fix the cesium unreal plugin modules
CesiumRuntime and CesiumEditor

Yesssss

  1. how to successfully export a runtime “package” with Cesium for Unreal to run on Linux

thanks for any help

Hi @dariusclynes

Is there a reason you are trying to compile from source instead of downloading the pre-built packaged zip from Releases · CesiumGS/cesium-unreal · GitHub?

The full instructions are coming in Add developer setup instructions by javagl · Pull Request #384 · CesiumGS/cesium-unreal · GitHub, but here is a summary:

  1. Follow the instructions to compile Cesium Native from GitHub - CesiumGS/cesium-unreal: Bringing the 3D geospatial ecosystem to Unreal Engine.
  2. You can either point your Unreal Project to the development directory, or package the plugin. To package the plugin, you have to run UE_4.26/Engine/Build/BatchFiles/RunUAT.sh BuildPlugin -Plugin="./CesiumForUnreal.uplugin" -Package="../packages/CesiumForUnreal" -CreateSubFolder -TargetPlatforms=Linux. This will create the packaged plugin in ../packages/CesiumForUnreal that you can copy to your Engine Plugins directory.
1 Like

Thank you so much for responding. Thanks for the pointers.

Hi Shehzan,

thanks for your reply. Unfortunately I havew not found any compiled linux binaries for running the plugin.
BUt i successflly compiled from source and installed the plugin in Unreal for Linux UE4.

But trying to create a runtime package has been difficult. Once it succeded , but when trying to run it crashed.

We would love to demonstrate the cesium for unreal at the end of this week.
I have a log showing the runtime error on a successful runtime package

and also log showing a packaging error on the linux version

maybe I could send it to you by email, or leave it somewhere here.
Thank you

Darius Clynes

@dariusclynes Under the releases link in my previous post, all platforms are bundled into the same zip. You download and extract this into your engine directory. You can then open a project like Cesium for Unreal Samples, and try to package that to confirm success.

I can’t really comment on your specific source-compiled setup because I don’t know the versions you are using for compiler etc. UE + Linux can be temperamental as you probably already know.

Are you able to successfully run it in the editor?