Packaging failed for project with c++ code

Hello ue4 community!

Description

Since one week i have problems with packaging my project for any platform
I´ve tested one week but don´t found anything that resolves the issue.

I´ve reinstalled my hole PC multiple times too.

The issue comes first on this Platform:

  • Windows 8.1 latest update
  • Unreal Engine 4.8.3

Then i decided to reinstall my pc with Windows 8.1 & Unreal Engine 4.8.3, but the issue has remained.

The hole week i tried all this combinations:

First combination (Error occurred)

  • Windows 8.1 latest update
  • Unreal Engine 4.8.3
  • Visual Studio 2013 Ultimate

First fresh installation

  • Windows 8.1 latest update
  • Unreal Engine 4.8.3
  • Visual Studio 2013 Ultimate

Second fresh installation

  • Windows 8.1 latest update
  • Unreal Engine 4.9 preview 1 & 2
  • Visual Studio 2013 Ultimate
  • Visual Studio 2015 Professional

Third fresh installation

  • Windows 10 Pro
  • Unreal Engine 4.8.3
  • Visual Studio 2013 Ultimate
  • Visual Studio 2015 Professional

Fourth fresh installation

  • Windows 10 Pro
  • Unreal Engine 4.9 preview 2 & 3
  • Visual Studio 2013 Ultimate
  • Visual Studio 2015 Professional

Error message

Full error log as attachment

MainFrameActions: Packaging (Android (All)): Project.Build: ********** BUILD COMMAND STARTED **********
MainFrameActions: Packaging (Android (All)): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (Android (All)): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (Android (All)): Program.Main: ERROR: Exception in mscorlib: Illegales Zeichen im Pfad.
MainFrameActions: Packaging (Android (All)): Stacktrace:    bei System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
MainFrameActions: Packaging (Android (All)):    bei System.IO.Path.Combine(String path1, String path2)
MainFrameActions: Packaging (Android (All)):    bei AutomationTool.UE4Build.XGEConsoleExe()
MainFrameActions: Packaging (Android (All)):    bei AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary`2 PlatformEnvVars)
MainFrameActions: Packaging (Android (All)):    bei Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL)
MainFrameActions: Packaging (Android (All)):    bei BuildCookRun.DoBuildCookRun(ProjectParams Params)
MainFrameActions: Packaging (Android (All)):    bei BuildCommand.Execute()
MainFrameActions: Packaging (Android (All)):    bei AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
MainFrameActions: Packaging (Android (All)):    bei AutomationTool.Automation.Process(String[] CommandLine)
MainFrameActions: Packaging (Android (All)):    bei AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Packaging (Android (All)):    bei AutomationTool.InternalUtils.RunSingleInstance(Action`1 Main, Object Param)
MainFrameActions: Packaging (Android (All)):    bei AutomationTool.Program.Main()
MainFrameActions: Packaging (Android (All)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Android (All)): Program.Main: AutomationTool exiting with ExitCode=Error_Unknown
MainFrameActions: Packaging (Android (All)): Domain_ProcessExit
MainFrameActions: Packaging (Android (All)): copying UAT log files...
MainFrameActions: Packaging (Android (All)): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
MainFrameActions: Packaging (Android (All)): BUILD FAILED

My Findings

  • The error don´t occur with my project on an other PC with Windows 10 & UE 4.9
  • The error only occur if the project have a source folder
  • Packaging is successful for blueprint only projects
  • I found someone that only posted this on pastebin with same error http://pastebin.com/aDPFh9UT

I’m really grateful for any help!!

Best regards,
Maik