Build For Linux Failed

Hi,

I am trying to package my game for Linux, and I get this error:

UATHelper: Packaging (Linux): Project.Cook: ********** COOK COMMAND COMPLETED **********
UATHelper: Packaging (Linux): Project.Build: ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Linux): CommandUtils.Run: Run: D:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe Firehouse Linux Development -Project="D:\Users\elied\Documents\Unreal Projects\Firehouse\Firehouse.uproject" -clean "D:\Users\elied\Documents\Unreal Projects\Firehouse\Firehouse.uproject" -PLUGIN "D:\Users\elied\Documents\Unr
eal Projects\Firehouse\Intermediate\LinuxNoEditor\NativizedAssets\NativizedAssets.uplugin"  -remoteini="D:\Users\elied\Documents\Unreal Projects\Firehouse" -nobuilduht -NoHotReload
UATHelper: Packaging (Linux): UnrealBuildTool: Performing full C++ include scan (building a new target)
UATHelper: Packaging (Linux): CommandUtils.Run: Run: Took 3.9701469s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: Packaging (Linux): CommandUtils.Run: Run: D:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe Firehouse Linux Development -Project="D:\Users\elied\Documents\Unreal Projects\Firehouse\Firehouse.uproject"  "D:\Users\elied\Documents\Unreal Projects
UATHelper: Packaging (Linux): \Firehouse\Firehouse.uproject" -PLUGIN "D:\Users\elied\Documents\Unreal Projects\Firehouse\Intermediate\LinuxNoEditor\NativizedAssets\NativizedAssets.uplugin"  -remoteini="D:\Users\elied\Documents\Unreal Projects\Firehouse" -noxge -generatemanifest -NoHotReload -ignorejunk
UATHelper: Packaging (Linux): CommandUtils.Run: Run: Took 1.2132869s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: Packaging (Linux): CommandUtils.Run: Run: D:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe Firehouse Linux Development -Project="D:\Users\elied\Documents\Unreal Projects\Firehouse\Firehouse.uproject"  "D:\Users\elied\Documents\Unreal Projects
UATHelper: Packaging (Linux): \Firehouse\Firehouse.uproject" -PLUGIN "D:\Users\elied\Documents\Unreal Projects\Firehouse\Intermediate\LinuxNoEditor\NativizedAssets\NativizedAssets.uplugin"  -remoteini="D:\Users\elied\Documents\Unreal Projects\Firehouse" -noxge -NoHotReload -ignorejunk
UATHelper: Packaging (Linux): UnrealBuildTool: Creating makefile for Firehouse (no existing makefile)
UATHelper: Packaging (Linux): UnrealBuildTool: Performing full C++ include scan (no include cache file)
UATHelper: Packaging (Linux): UnrealBuildTool: Parsing headers for Firehouse
UATHelper: Packaging (Linux): UnrealBuildTool:   Running UnrealHeaderTool "D:\Users\elied\Documents\Unreal Projects\Firehouse\Firehouse.uproject" "D:\Users\elied\Documents\Unreal Projects\Firehouse\Intermediate\Build\Linux\B4D820EA\Firehouse\Development\Firehouse.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -Warning
sAsErrors -installed
UATHelper: Packaging (Linux): UnrealBuildTool: Reflection code generated for Firehouse in 7.0629553 seconds
UATHelper: Packaging (Linux): UnrealBuildTool: Performing 11 actions (4 in parallel)
UATHelper: Packaging (Linux): UnrealBuildTool: [2/11] Compile UELinkerFixupsName.h
UATHelper: Packaging (Linux): UnrealBuildTool: [1/11] Compile NativizedAssets.h
UATHelper: Packaging (Linux): UnrealBuildTool: [3/11] Compile UELinkerFixups.cpp
UATHelper: Packaging (Linux): UnrealBuildTool: In file included from D:\Users\elied\Documents\Unreal Projects\Firehouse\Intermediate\LinuxNoEditor\NativizedAssets\Intermediate\Build\Linux\B4D820EA\UE4\Development\NativizedAssets\NativizedAssets.h:4:
UATHelper: Packaging (Linux): UnrealBuildTool: In file included from D:\Users\elied\Documents\Unreal Projects\Firehouse\Intermediate\LinuxNoEditor\NativizedAssets\Source\NativizedAssets\Public\NativizedAssets.h:5:
UATHelper: Packaging (Linux): UnrealBuildTool: In file included from Runtime/Engine/Public\Engine.h:9:
UATHelper: Packaging (Linux): UnrealBuildTool: In file included from Runtime/Core/Public\Core.h:16:
UATHelper: Packaging (Linux): UnrealBuildTool: In file included from Runtime/Core/Public/HAL\PlatformIncludes.h:6:
UATHelper: Packaging (Linux): UnrealBuildTool: Runtime/Core/Public/HAL/PlatformCrt.h(5,10) :  fatal error: 'new' file not found
UATHelper: Packaging (Linux): UnrealBuildTool: #include <new>
UATHelper: Packaging (Linux): UnrealBuildTool:          ^
UATHelper: Packaging (Linux): UnrealBuildTool: 1 error generated.
UATHelper: Packaging (Linux): UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: D:\Users\elied\Documents\Unreal Projects\Firehouse\Intermediate\LinuxNoEditor\NativizedAssets\Binaries\Linux\libUE4-NativizedAssets.a
UATHelper: Packaging (Linux): UnrealBuildTool: Total build time: 37.17 seconds
UATHelper: Packaging (Linux): CommandUtils.Run: Run: Took 37.5056159s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Linux): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): D:\Program Files (x86)\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe Firehouse Linux Development -Project="D:\Users\elied\Documents\Unreal Projects\Firehouse\Firehouse.uprojec
t"  "D:\Users\elied\Documents\Unreal Projects\Firehouse\Firehouse.uproject" -PLUGIN "D:\Users\elied\Documents\Unreal Projects\Firehouse\Intermediate\LinuxNoEditor\NativizedAssets\NativizedAssets.uplugin"  -remoteini="D:\Users\elied\Documents\Unreal Projects\Firehouse" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2016.09.10-19.54
.39.txt' 
UATHelper: Packaging (Linux):    at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Linux):    at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Linux):    at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Di
UATHelper: Packaging (Linux): ctionary`2 EnvVars)
UATHelper: Packaging (Linux):    at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary`2 EnvVars)
UATHelper: Packaging (Linux):    at AutomationTool.UE4Build.BuildWithUBT(String TargetName, UnrealTargetPlatform TargetPlatform, String Config, FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity, Dictionary`2 EnvVars)
UATHelper: Packaging (Linux):    at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary`2 PlatformEnvVars, Nullable`1 InChangelistNumberOverride, Dictionary`2 InTa
rgetToManifest)
UATHelper: Packaging (Linux):    at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)
UATHelper: Packaging (Linux):    at BuildCookRun.DoBuildCookRun(ProjectParams Params)
UATHelper: Packaging (Linux):    at AutomationTool.BuildCommand.Execute()
UATHelper: Packaging (Linux):    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
UATHelper: Packaging (Linux):    at AutomationTool.Automation.Process(String[] Arguments)
UATHelper: Packaging (Linux):    at AutomationTool.Program.MainProc(Object Param)
UATHelper: Packaging (Linux):    at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
UATHelper: Packaging (Linux):    at AutomationTool.Program.Main()
UATHelper: Packaging (Linux): Program.Main: AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Linux): BUILD FAILED
PackagingResults:Error: Error Unknown Error

Thanks,
Eli

Hey Codekrafter-

Are you packing your project on Linux or are you using the cross compile toolchain to package on Windows? Also, are you using the “Nativized Blueprints” option in your project? If so, are you able to package if you disable this setting? Can you also let me know if you get the same error when packaging a blank project?

I am using the cross compile toolchain on windows, It works with a blank project, I disabled the Nativized Blueprints, and now it says this:

UATHelper: Packaging (Linux): UE4Editor-Cmd: [2016.09.12-20.46.22:154][  0]LogInit:Display: NOTE: Only first 50 warnings displayed.
UATHelper: Packaging (Linux): UE4Editor-Cmd: [2016.09.12-20.46.22:154][  0]LogInit:Display: 
UATHelper: Packaging (Linux): UE4Editor-Cmd: [2016.09.12-20.46.22:154][  0]LogInit:Display: Success - 0 error(s), 1603 warning(s)
UATHelper: Packaging (Linux): UE4Editor-Cmd: [2016.09.12-20.46.22:154][  0]LogInit:Display: 
UATHelper: Packaging (Linux): UE4Editor-Cmd: 
UATHelper: Packaging (Linux): UE4Editor-Cmd: Execution of commandlet took:  92.43 seconds
UATHelper: Packaging (Linux): UE4Editor-Cmd: [2016.09.12-20.46.30:025][  0]LogOnline:Display: Unloading online subsystem: NULL
UATHelper: Packaging (Linux): CommandUtils.Run: Run: Took 109.7932826s to run UE4Editor-Cmd.exe, ExitCode=0
UATHelper: Packaging (Linux): Project.Cook: ********** COOK COMMAND COMPLETED **********
UATHelper: Packaging (Linux): Project.CopyBuildToStagingDirectory: ********** STAGE COMMAND STARTED **********
UATHelper: Packaging (Linux): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Stage Failed. Missing receipt 'Firehouse.target'. Check that this target has been built.
UATHelper: Packaging (Linux):    at Project.CreateDeploymentContext(ProjectParams Params, Boolean InDedicatedServer, Boolean DoCleanStage)
UATHelper: Packaging (Linux):    at Project.CopyBuildToStagingDirectory(ProjectParams Params)
UATHelper: Packaging (Linux):    at BuildCookRun.DoBuildCookRun(ProjectParams Params)
UATHelper: Packaging (Linux):    at AutomationTool.BuildCommand.Execute()
UATHelper: Packaging (Linux):    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
UATHelper: Packaging (Linux):    at AutomationTool.Automation.Process(String[] Arguments)
UATHelper: Packaging (Linux):    at AutomationTool.Program.MainProc(Object Param)
UATHelper: Packaging (Linux):    at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
UATHelper: Packaging (Linux):    at AutomationTool.Program.Main()
UATHelper: Packaging (Linux): Program.Main: AutomationTool exiting with ExitCode=103 (Error_MissingExecutable)
UATHelper: Packaging (Linux): BUILD FAILED
PackagingResults:Error: Error Missing UE4Game binary.You may have to build the UE4 project with your IDE. Alternatively, build using UnrealBuildTool with the commandline:UE4Game <Platform> <Configuration>

The new error message you posted says that the UE4Game binary is missing. Can you make sure that the UE4.sln and the project are build using Development as the solution configuration with Linux as the solution platform?

I tried adding a blank code file, because the project is blueprint only, but then when I try to package it says:

Sorry, packaging a code-based project for the selected platform is currently not supported. This feature may be available in a future release.
So I removed the source directory and the visual studio files

If you are compiling for Linux on Windows, you will need to use a source version of the engine. If you are using a binary version from the Launcher, you will need to download and build a source engine first. You can find information on building from source here: GitHub - EpicGames/Signup: Information about signing up for a free Epic Games account, and getting access to UnrealEngine source code.

Oh, ok thank you I will try that

Additionally, this link explains the setup necessary to setup and use the cross-compile toolchain: A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums

Ok, again thank you so much for your help

Wait, actually, that is for installing Unreal Engine on Linux, I can find the one for the cross compile toolchain though

You’re correct, my apology. There is a link on that page to “Compiling For Linux” which is what you’ll need.

Ok, thank you for your help.