UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item

Hi everyone,

I hope someone can help me with this problem. I’m not sure what info you need so I am happy to give you this if needed. Basically, as noted in the log below UE4 cannot produce the .lib file. The first time I ran the packaging it was fine, the second time the file seemed to have been removed by UE4 during packaging then it failed. Both VaOceanPlugin-Static.lib and the .exe file in My Project\Binaries\Win64. I’m stumped so any help is greatly appreciated.

MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: D:\Projects\Unreal_projects\Halcyon\Plugins\VaOcean\Binaries\Win64\VaOceanPlugin-Static.lib
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Cumulative action seconds (8 processors): 0.00 building projects, 33.54 compiling, 0.00 creating app bundles, 0.00 generating debug info, 0.00 linking, 0.00 other
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: UBT execution time: 23.19 seconds
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 23.6753541s to run UnrealBuildTool.exe, ExitCode=2
MainFrameActions: Packaging (Windows (64-bit)): ErrorReporter.Error: ERROR: AutomationTool error: Command failed (Result:2): D:\Unreal Engine\4.5\Engine\Binaries\DotNET\UnrealBuildTool.exe VaOceanDemo Win64 Development D:\Projects\Unreal_projects\Halcyon\Halcyon.uproject -noxge -rocket. See logfile for details: ‘UnrealBuildTool.txt’
MainFrameActions: Packaging (Windows (64-bit)): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: ERROR: Exception in AutomationTool: Command failed (Result:2): D:\Unreal Engine\4.5\Engine\Binaries\DotNET\UnrealBuildTool.exe VaOceanDemo Win64 Development D:\Projects\Unreal_projects\Halcyon\Halcyon.uproject -noxge -rocket. See logfile fo
MainFrameActions: Packaging (Windows (64-bit)): r details: ‘UnrealBuildTool.txt’
MainFrameActions: Packaging (Windows (64-bit)): Stacktrace: at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options)
MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName)
MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.UE4Build.BuildWithUBT(String ProjectName, String TargetName, UnrealTargetPlatform TargetPlatform, String Config, String UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity)
MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InForceNonUnity, Boolean InForceUnity) MainFrameActions: Packaging (Windows (64-bit)): at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL) MainFrameActions: Packaging (Windows (64-bit)): at BuildCookRun.DoBuildCookRun(ProjectParams Params) MainFrameActions: Packaging (Windows (64-bit)): at BuildCommand.Execute() MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary`1 Commands)
MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.Automation.Process(String[] CommandLine)
MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param)
MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.Program.Main()
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: ERROR: Command failed (Result:2): D:\Unreal Engine\4.5\Engine\Binaries\DotNET\UnrealBuildTool.exe VaOceanDemo Win64 Development D:\Projects\Unreal_projects\Halcyon\Halcyon.uproject -noxge -rocket. See logfile for details: ‘UnrealBuildTool.t
MainFrameActions: Packaging (Windows (64-bit)): xt’
MainFrameActions: Packaging (Windows (64-bit)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=2
MainFrameActions: Packaging (Windows (64-bit)): Domain_ProcessExit
MainFrameActions: Packaging (Windows (64-bit)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Windows (64-bit)): copying UAT log files…
MainFrameActions: Packaging (Windows (64-bit)): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
MainFrameActions: Packaging (Windows (64-bit)): BUILD FAILED

Does anyone have an answer to this?

Howdy SpritelyNZ,

Sorry about the lack of a response. Just wanted to check in with you and see if the issue is still occurring for you. Please be sure to let me know.

Thanks and have a great day!

Hi Sean,
Yes this issue is still relevant. I actually stopped using the VaOceanplugin due to the lack of support with this issue.

Are you currently able to package a project without the VaOceanplugin?

The VaOcean plugin is a user created project so you may want to create the user about the issue as we can not offer a fix for that plugin. Here is a link to their forums page: https://forums.unrealengine.com/member.php?1864-ufna

Thanks!