Unable to Cross-Compile for Linux

I’m trying to cross-compile a default blueprint-based thirdperson template on windows for linux just to learn how this works. Unfortunately, I’m getting an error claiming that the SDK for linux isn’t properly installed:

image

Things that I have tried: Reinstalled UE entirely
Double checked if I had Linux Target platform installed
Tested versions v19 (4.27) and v20 (5.0.3)

I tested if I would get the error in a default Thirdperson template in c++ with clang v20, I’m still getting an error correlated to the warning above.

Log - pastebin

The thing I noticed is on their Cross-Compile documentation page, they only have the toolchain for UE5 version 5.0 or 5.0.2. I also tried doing a cross-compile to Linux after installing the UE5.0.2 toolchain (even though the engine installed is 5.0.3) but I’m wondering if it’s required to setup TurnKey even if it’s on a local machine.

1 Like

There seems to be a bug where UE5 won’t recognize clang right out of the box. I managed to fix this by uninstalling clang from my machine, restarting my pc, installing the latest version of clang (5.0.2 in this case) and then restarting my pc again. UE5 should be recognizing the toolchain after this.

1 Like

OMG. Finally it worked ! Thank you so much.