DesktopPlatform is a development module and should not be included in packaged games
Adding DesktopPlatform to the PublicDependencyModuleNames.AddRange() section of the Project.Build.cs file causes the project to fail packaging with the following error (full package logs in callstack section):
UATHelper: Packaging (Windows (64-bit)): xgConsole: LINK : fatal error LNK1181: cannot open input file 'D:\Epic Games\4.15\Engine\Binaries\Win64\UE4-DesktopPlatform.lib'
Result:
Package attempt fails with provided error
Expected:
Package succeeds
UATHelper: Packaging (Windows (64-bit)): Running AutomationTool... UATHelper: Packaging (Windows (64-bit)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject=D:/Projects/UnrealProjects/DataAssetTest/DataAssetTest.uproject BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project=D:/Projects/UnrealProjects/DataAssetTest/DataAssetTest.uproject -cook -stage -archive -archivedirectory=D:/PackagedBui lds/Windows -package -clientconfig=Development -ue4exe=UE4Editor-Cmd.exe -pak -prereqs -nodebuginfo -targetplatform=Win64 -build -CrashReporter -utf8output UATHelper: Packaging (Windows (64-bit)): Automation.Process: Setting up command environment. UATHelper: Packaging (Windows (64-bit)): BuildCookRun.SetupParams: Setting up ProjectParams for D:\Projects\UnrealProjects\DataAssetTest\DataAssetTest.uproject UATHelper: Packaging (Windows (64-bit)): Project.Build: ********** BUILD COMMAND STARTED ********** UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: D:\Epic Games\4.15\Engine\Binaries\DotNET\UnrealBuildTool.exe DataAssetTest Win64 Development -Project=D:\Projects\UnrealProjects\DataAssetTest\DataAssetTest.uproject -generatemanifest -nobuilduht -xgeexport D:\Projects\UnrealProjects\DataAssetTest\DataAssetTest.uproject -remoteini="D:\Projects \UnrealProjects\DataAssetTest" -NoHotReload UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: XGEEXPORT: Exported '../../Engine/Intermediate/Build/UBTExport.000.xge.xml' UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Total build time: 2.71 seconds (XGE executor: 0.01 seconds) UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 3.1153115s to run UnrealBuildTool.exe, ExitCode=0 UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: C:\Program Files (x86)\Xoreax\IncrediBuild\xgConsole.exe "C:\Users\doug.wilson\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Epic+Games+4.15\UAT_XGE.xml" /Rebuild /MaxCPUS=200 UATHelper: Packaging (Windows (64-bit)): xgConsole: UATHelper: Packaging (Windows (64-bit)): xgConsole: ----------------------------------------------------------------- UATHelper: Packaging (Windows (64-bit)): xgConsole: Xoreax Grid Engine Console 7.21 (build 1722) UATHelper: Packaging (Windows (64-bit)): xgConsole: Copyright (C) 2001-2016 Xoreax Software Ltd. All rights reserved. UATHelper: Packaging (Windows (64-bit)): xgConsole: ----------------------------------------------------------------- UATHelper: Packaging (Windows (64-bit)): xgConsole: UATHelper: Packaging (Windows (64-bit)): xgConsole: UATHelper: Packaging (Windows (64-bit)): xgConsole: Initializing... UATHelper: Packaging (Windows (64-bit)): xgConsole: --------------------Project: Env_0--------------------------------------------- UATHelper: Packaging (Windows (64-bit)): xgConsole: ** For DataAssetTest-Win64-Development UATHelper: Packaging (Windows (64-bit)): xgConsole: DataAssetTest.exe UATHelper: Packaging (Windows (64-bit)): xgConsole: LINK : fatal error LNK1181: cannot open input file 'D:\Epic Games\4.15\Engine\Binaries\Win64\UE4-DesktopPlatform.lib' UATHelper: Packaging (Windows (64-bit)): xgConsole: UATHelper: Packaging (Windows (64-bit)): xgConsole: Error executing C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\link.exe (tool returned code: 1181) UATHelper: Packaging (Windows (64-bit)): xgConsole: UATHelper: Packaging (Windows (64-bit)): xgConsole: ---------------------- Done ---------------------- UATHelper: Packaging (Windows (64-bit)): xgConsole: UATHelper: Packaging (Windows (64-bit)): xgConsole: Rebuild All: 0 succeeded, 1 failed, 0 skipped UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 0.4210421s to run xgConsole.exe, ExitCode=1 UATHelper: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Command failed (Result:1): C:\Program Files (x86)\Xoreax\IncrediBuild\xgConsole.exe "C:\Users\doug.wilson\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Epic+Games+4.15\UAT_XGE.xml" /Rebuild /MaxCPUS=200. See logfil e for details: 'xgConsole-2017.04.06-10.37.11.txt' UATHelper: Packaging (Windows (64-bit)): at AutomationTool.UE4Build.ProcessXGEItems(List`1 Actions, String XGETool, String Args, String TaskFilePath, Boolean DoRetries, Boolean SpecialTestFlag, Boolean ShowProgress) UATHelper: Packaging (Windows (64-bit)): 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, Dictio nary`2 InTargetToManifest) UATHelper: Packaging (Windows (64-bit)): at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) UATHelper: Packaging (Windows (64-bit)): at BuildCookRun.DoBuildCookRun(ProjectParams Params) UATHelper: Packaging (Windows (64-bit)): at BuildCookRun.ExecuteBuild() UATHelper: Packaging (Windows (64-bit)): at AutomationTool.BuildCommand.Execute() UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Automation.Process(String[] Arguments) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Program.MainProc(Object Param) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param) UATHelper: Packaging (Windows (64-bit)): at AutomationTool.Program.Main() UATHelper: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown) UATHelper: Packaging (Windows (64-bit)): BUILD FAILED PackagingResults:Error: Error Unknown Error
Head over to the existing Questions & Answers thread and let us know what's up.
4 |
Component | UE - Foundation - Core |
---|---|
Affects Versions | 4.15.1 |
Created | Apr 6, 2017 |
---|---|
Resolved | Apr 6, 2017 |
Updated | Sep 23, 2019 |