Linux Platform Missing

During packaging, LinuxNoEditor platform is not Available.

UATHelper: Packaging (Linux):   LogTemp: Display: Loaded TP TVOSTargetPlatform
UATHelper: Packaging (Linux):   LogTemp: Display: Loaded TP LuminTargetPlatform
UATHelper: Packaging (Linux):   LogTemp: Display: Loaded TP LuminTargetPlatform
UATHelper: Packaging (Linux):   LogTargetPlatformManager: Error: Invalid target platform specified (LinuxNoEditor). Available = { AllDesktop, MacClient, MacNoEditor, MacServer, Mac, WindowsClient,... 

I am using latest version 4.21.0 from GIT and clang is correctly added into system variables and found by the engine.
Compiling development-editor for linux in Visual studio produces no errors.

Previous to the error -

UATHelper: Packaging (Linux):   ------- Build details --------
UATHelper: Packaging (Linux):   Using toolchain located at 'C:/UE4/Linux/v12_clang-6.0.1-centos7/x86_64-unknown-linux-gnu'.
UATHelper: Packaging (Linux):   Using clang (C:/UE4/Linux/v12_clang-6.0.1-centos7/x86_64-unknown-linux-gnu\bin\clang++) version '6.0.1' (string), 6 (major), 0 (minor), 1 (patch)
UATHelper: Packaging (Linux):   Using bundled libc++ standard C++ library.
UATHelper: Packaging (Linux):   Using lld linker
UATHelper: Packaging (Linux):   Using llvm-ar : C:/UE4/Linux/v12_clang-6.0.1-centos7/x86_64-unknown-linux-gnu\bin/llvm-ar
UATHelper: Packaging (Linux):   Using old way to relink circularly dependent libraries (with a FixDeps step).
UATHelper: Packaging (Linux):   ------------------------------
UATHelper: Packaging (Linux):   Writing manifest to C:\UE4\UnrealEngine-release\UnrealEngine-release\Engine\Intermediate\Build\Manifest.xml
UATHelper: Packaging (Linux):   Target is up to date
UATHelper: Packaging (Linux):   Total build time: 27.93 seconds (NoActionsToExecute executor: 0.00 seconds)
UATHelper: Packaging (Linux): Took 28.1095504s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: Packaging (Linux): ********** BUILD COMMAND COMPLETED **********
UATHelper: Packaging (Linux): ********** COOK COMMAND STARTED **********

Unreal Frontend is also missing the option to build for Linux. Any idea why that might be?

You did everything as described here: Linux Development Requirements for Unreal Engine | Unreal Engine 5.1 Documentation

Rebuilding whole editor from source fixed the issue

After you have installed the toolchain for cross-compilation, you must open the solution for the engine in Rider (or VisualStudio) and build (you don’t have to rebuild) the editor for Win64 (yes, that is Win64 and not Linux). This will create the needed folder “Engine/Binaries/Win64/Linux”. Then restart your editor, and packaging will work.

1 Like