Unknown error

LogSlate: Window ‘Output Log’ being destroyed
LogSlate: FSceneViewport::OnFocusLost() reason 2
UATHelper: Packaging (Windows (64-bit)): Running AutomationTool…
UATHelper: Packaging (Windows (64-bit)): Parsing command line: -ScriptsForProject=D:/Sai/AnimatedLightMedieval/AnimatedLightMedieval.uproject BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project=D:/Sai/AnimatedLightMedieval/AnimatedLightMedieval.uproject -cook -stage -archive -archivedirectory=D:/Ue4TestOutput/OptimisedNew7 -package -clientconf
ig=Development -ue4exe=UE4Editor-Cmd.exe -compressed -pak -prereqs -nodebuginfo -targetplatform=Win64 -build -utf8output
UATHelper: Packaging (Windows (64-bit)): Setting up ProjectParams for D:\Sai\AnimatedLightMedieval\AnimatedLightMedieval.uproject
UATHelper: Packaging (Windows (64-bit)): ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Windows (64-bit)): Running: C:\Program Files\Epic Games\UE_4.19\Engine\Binaries\DotNET\UnrealBuildTool.exe AnimatedLightMedieval Win64 Development -Project=D:\Sai\AnimatedLightMedieval\AnimatedLightMedieval.uproject -generatemanifest -nobuilduht -xgeexport D:\Sai\AnimatedLightMedieval\AnimatedLightMedieval.uproject -NoUBTMakefiles -rem
oteini=“D:\Sai\AnimatedLightMedieval” -skipdeploy -NoHotReload
UATHelper: Packaging (Windows (64-bit)): XGEEXPORT: Exported ‘C:\Program Files\Epic Games\UE_4.19\Engine\Intermediate\Build\UBTExport.000.xge.xml’
UATHelper: Packaging (Windows (64-bit)): Took 2.3587726s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: Packaging (Windows (64-bit)): Running: C:\Program Files (x86)\IncrediBuild\xgConsole.exe “C:\Users\ZAP\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.19\UAT_XGE.xml” /Rebuild /MaxCPUS=200 /no_watchdog_thread
UATHelper: Packaging (Windows (64-bit)):
UATHelper: Packaging (Windows (64-bit)): -----------------------------------------------------------------------
UATHelper: Packaging (Windows (64-bit)): IncrediBuild Console 9.3.1 (build 2406)
UATHelper: Packaging (Windows (64-bit)): Copyright (C) 2001-2018 IncrediBuild Software Ltd. All rights reserved.
UATHelper: Packaging (Windows (64-bit)): -----------------------------------------------------------------------
UATHelper: Packaging (Windows (64-bit)):
UATHelper: Packaging (Windows (64-bit)):
UATHelper: Packaging (Windows (64-bit)): --------------------Project: Env_0---------------------------------------------
UATHelper: Packaging (Windows (64-bit)): ** For AnimatedLightMedieval-Win64-Development
UATHelper: Packaging (Windows (64-bit)): AnimatedLightMedieval.exe
UATHelper: Packaging (Windows (64-bit)): LINK : fatal error LNK1181: cannot open input file ‘C:\Program Files\Epic Games\UE_4.19\Engine\Plugins\UE4Duino\Binaries\Win64\UE4-UE4Duino.lib’
UATHelper: Packaging (Windows (64-bit)):
UATHelper: Packaging (Windows (64-bit)): Error executing C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX64\x64\link.exe (tool returned code: 1181)
UATHelper: Packaging (Windows (64-bit)): ---------------------- Done ----------------------
UATHelper: Packaging (Windows (64-bit)):
UATHelper: Packaging (Windows (64-bit)): Rebuild All: 0 succeeded, 1 failed, 0 skipped
UATHelper: Packaging (Windows (64-bit)):
UATHelper: Packaging (Windows (64-bit)): Took 0.1674459s to run xgConsole.exe, ExitCode=1
UATHelper: Packaging (Windows (64-bit)): ERROR: Command failed (Result:1): C:\Program Files (x86)\IncrediBuild\xgConsole.exe “C:\Users\ZAP\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.19\UAT_XGE.xml” /Rebuild /MaxCPUS=200 /no_watchdog_thread. See logfile for details: ‘xgConsole-2018.11.16-14.18.25.txt’
UATHelper: Packaging (Windows (64-bit)): (see C:\Users\ZAP\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.19\UAT_Log.txt for full exception trace)
PackagingResults: Error: Command failed (Result:1): C:\Program Files (x86)\IncrediBuild\xgConsole.exe “C:\Users\ZAP\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.19\UAT_XGE.xml” /Rebuild /MaxCPUS=200 /no_watchdog_thread. See logfile for details: ‘xgConsole-2018.11.16-14.18.25.txt’
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Error

Hey there!

A few things before we get started. The log contains a lot of useless information. Especially the part where it’s just running smoothly makes this wall of text a lot longer than it needs to be and therefore much harder to read and follow.

Only the unexpected elements, errors or possibly warnings, are of interest.

In this case, there are two interesting lines.

LINK : fatal error LNK1181: cannot open input file ‘C:\Program Files\Epic Games\UE_4.19\Engine\Plugins\UE4Duino\Binaries\Win64\UE4-UE4Duino.lib’

Alright, so a file can not be opened for some reason and we have an error code “LNK1181” ← This thing you can google with quite fair results. Alternatively, “ue4 cannot open input file” will also yield a lot of information.

See logfile for details: ‘xgConsole-2018.11.16-14.18.25.txt’ UATHelper: Packaging (Windows (64-bit)): (see C:\Users\ZAP\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.19

And this line tells you where you can find the actual logs, and not just the updates you get from the console / output log. These are only there to keep you informed about what’s happening in real time and not so much for information that can used to debug. Debugging may depend on tons of additional factors and instead of dumping tons upon tons of text at you, they keep this output smaller and more informative.

Meaning, if you can not find the error right away from the error code, check out the long version of the logs instead.

And of course, take the time to read your error messages. You can always look up the snippets you don’t understand on your search engine of choice!

As for your problem, it’s not quite obvious from the first few threads I’ve found. But you could attempt to delete your binaries, intermediate and saved folders and attempt to build again. That might fix it already.

i already done that
i tried deleting binaries but that didn;t worked