Building Cesium-Unreal for VisionOS

Hi @dagillespie,

I don’t have any ready-made solutions for any of this, but I may be able to help you make some progress, at least.

First, that Exited with code: 139 error. I also saw that on my corporate-managed MBP when packaging for iOS. I spent awhile trying to debug it, and I still don’t know exactly why it happens. UnrealBuildTool seems to simply be crashing for no clear reason. But I was able to work around it by disabling the Unreal Build Accelerator.

Create ~/Library/Application Support/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml and copy this into it:

<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
	<BuildConfiguration>
		<bAllowUBAExecutor>false</bAllowUBAExecutor>
		<bAllowUBALocalExecutor>false</bAllowUBALocalExecutor>
	</BuildConfiguration>
</Configuration>

I don’t think this will do any harm to build performance if you’re not actually parallelizing builds across multiple machines.

As far as the hang in VecMath.cpp, I’m not quite sure what might cause that. But one thing worth mentioning is that Clang needs a lot of memory to compile Cesium for Unreal. It seems to struggle with the large std::variant used in the metadata system. So if your MacBook does not have a lot of memory, you’ll need to reduce the number of source files it compiles in parallel. You can do that by adding the following to that same BuildConfiguration.xml mentioned above, inside the <BuildConfiguration> element:

<MaxParallelActions>2</MaxParallelActions>

Hopefully some of that will help you make some progress! Let me know how it goes.

1 Like