City Sample fails to compile on UE5 Linux - SoundScape, ElectraPlayer and more

There’s a patch available from Epic already. First, do these conversions inside the project path

find . -name *.cpp -exec dos2unix {} \;
find . -name *.h -exec dos2unix {} \;
find . -name *.cs -exec dos2unix {} \;

Then you need to place this file beside your CitySample folder and run this command.

patch -p 0 < city-sample-linux.diff

The project should compile succesfully after that and you can now wait for the 20GB DDC to compile. If you’re having a lot of crashes, first run this command to compile shaders outside of the loaded Editor.

./UnrealEditor <pathtoyourproject>/Project.uasset -run=DerivedDataCache -fill

Then it will still need to build textures, Nanites and SDFs. I advise to run the extra map with buildings only first, as building Nanite versions of those requires a lot of memory. They are the cause for a lot of crashes. Then you should be able to safely run the SmallCity and BigCity.

city-sample-linux.diff (18.6 KB)

3 Likes