unrealcv/unrealcv

package failed when enable the unrealcv plugin

JumpXing opened this issue · 5 comments

  • Operating System:Windows
  • UE4 Version:4.16
  • UnrealCV Version:v0.3.10
  • Client (python2, 3 or matlab):python3.7
  • Problem Description:
    Hello. I use UE4 Editor to package a game successfully. But when I enable the unrealcv plugin, the package operation is failed.
    the output lag:
UATHelper: 打包 (Windows (64位)): Project.Build: ********** BUILD COMMAND STARTED **********
UATHelper: 打包 (Windows (64位)): CommandUtils.Run: Run: E:\Unreal Engine\UE_4.16\Engine\Binaries\DotNET\UnrealBuildTool.exe test Win64 Development -Project=E:\xjb\test\test.uproject  E:\xjb\test\test.uproject -NoUBTMakefiles  -remoteini="E:\xjb\test" -noxge -generatemanifest -NoHotReload
UATHelper: 打包 (Windows (64位)): UnrealBuildTool: ERROR: Multiple configurations specified on command line (first Test, then Development)
UATHelper: 打包 (Windows (64位)): CommandUtils.Run: Run: Took 0.3350669s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: 打包 (Windows (64位)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): E:\Unreal Engine\UE_4.16\Engine\Binaries\DotNET\UnrealBuildTool.exe test Win64 Development -Project=E:\xjb\test\test.uproject  E:\xjb\test\test.uproject -NoUBTMakefiles  -remoteini="E:\xj
b\test" -noxge -generatemanifest -NoHotReload. See logfile for details: 'UnrealBuildTool-2020.08.14-15.26.27.txt' 
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\ProcessUtils.cs:行号 913
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\ProcessUti
ls.cs:行号 866
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\UBTUtils.cs:行号 51
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary`2 EnvVars) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\UBTUtils.cs:行号 89
UATHelper: 打包 (Windows (64位)):    在 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) 位置 E:\Unreal 
Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\UE4Build.cs:行号 366
UATHelper: 打包 (Windows (64位)):    在 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) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\UE4Build.cs:行号 1485
UATHelper: 打包 (Windows (64位)):    在 Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\Scripts\BuildProjectCommand.Automation.cs:行号 192
UATHelper: 打包 (Windows (64位)):    在 BuildCookRun.DoBuildCookRun(ProjectParams Params) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:行号 207
UATHelper: 打包 (Windows (64位)):    在 BuildCookRun.ExecuteBuild() 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:行号 40
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.BuildCommand.Execute() 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:行号 100
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:行号 566
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.Automation.Process(String[] Arguments) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:行号 536
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.Program.MainProc(Object Param) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\Program.cs:行号 133
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:行号 708
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.Program.Main() 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\Program.cs:行号 57
UATHelper: 打包 (Windows (64位)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
UATHelper: 打包 (Windows (64位)): BUILD FAILED

The error shows "UATHelper: 打包 (Windows (64位)): UnrealBuildTool: ERROR: Multiple configurations specified on command line (first Test, then Development)".

What is the command you used to package the binary?

Instead of a script/command, I use UE4 Editor to package a game.

I download compiled UnrealCV binaries(v0.3.10) and put the folder into the Plugins folder. I think I had installed UnrealCV Plugin successfully and enabled it. In a new ‘Blueprint - First Person’ project, I can use the command about unrealcv in UE4.

Then I added the line(r.ForceDebugViewModes = 1) to UE4 engine config file Engine\Config\ConsoleVariables.ini.
But when I use UE4 Editor to package a game ( windows64), the error occurred.

If I disable the unrealcv plugins, I can package successfully.

I probably know why.

According to this line UATHelper: 打包 (Windows (64位)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): E:\Unreal Engine\UE_4.16\Engine\Binaries\DotNET\UnrealBuildTool.exe test Win64 Development -Project=E:\xjb\test\test.uproject E:\xjb\test\test.uproject -NoUBTMakefiles -remoteini="E:\xjb\test" -noxge -generatemanifest -NoHotReload. See logfile for details: 'UnrealBuildTool-2020.08.14-15.26.27.txt'

UnrealEngine mistook your project name test as a configuration argument. I recommend you to try not to name your project as test.uproject. Create it as another name.

I created a file firstdata, but this mistake still exists.

I have created a folder called Plugins in my project folder and put compiled UnrealCV binaries(v0.3.10) into the folder.

partial output log:
UATHelper: 打包 (Windows (64位)): Running AutomationTool...
UATHelper: 打包 (Windows (64位)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject=E:/xjb2/firstdata/firstdata.uproject BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project=E:/xjb2/firstdata/firstdata.uproject -cook -stage -archive -archivedirectory=E:/xjb2/firstdata -package -clientconfig=Development -ue4exe=UE4Editor-Cmd.exe
 -pak -prereqs -nodebuginfo -targetplatform=Win64 -build -utf8output
UATHelper: 打包 (Windows (64位)): BuildCookRun.SetupParams: Setting up ProjectParams for E:\xjb2\firstdata\firstdata.uproject
UATHelper: 打包 (Windows (64位)): Project.Build: ********** BUILD COMMAND STARTED **********
UATHelper: 打包 (Windows (64位)): CommandUtils.Run: Run: E:\Unreal Engine\UE_4.16\Engine\Binaries\DotNET\UnrealBuildTool.exe firstdata Win64 Development -Project=E:\xjb2\firstdata\firstdata.uproject  E:\xjb2\firstdata\firstdata.uproject -NoUBTMakefiles  -remoteini="E:\xjb2\firstdata" -noxge -generatemanifest -NoHotReload
UATHelper: 打包 (Windows (64位)): CommandUtils.Run: Run: Took 1.7847418s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: 打包 (Windows (64位)): CommandUtils.Run: Run: E:\Unreal Engine\UE_4.16\Engine\Binaries\DotNET\UnrealBuildTool.exe firstdata Win64 Development -Project=E:\xjb2\firstdata\firstdata.uproject  E:\xjb2\firstdata\firstdata.uproject -NoUBTMakefiles  -remoteini="E:\xjb2\firstdata" -noxge -NoHotReload -ignorejunk
UATHelper: 打包 (Windows (64位)): UnrealBuildTool: ERROR: Windows SDK v8.1 must be installed in order to build this target.
UATHelper: 打包 (Windows (64位)): CommandUtils.Run: Run: Took 4.7021755s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: 打包 (Windows (64位)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): E:\Unreal Engine\UE_4.16\Engine\Binaries\DotNET\UnrealBuildTool.exe firstdata Win64 Development -Project=E:\xjb2\firstdata\firstdata.uproject  E:\xjb2\firstdata\firstdata.uproject -NoUBTM
akefiles  -remoteini="E:\xjb2\firstdata" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2020.08.17-16.19.15.txt' 
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\ProcessUtils.cs:行号 913
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\ProcessUti
ls.cs:行号 866
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\UBTUtils.cs:行号 51
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary`2 EnvVars) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\UBTUtils.cs:行号 89
UATHelper: 打包 (Windows (64位)):    在 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) 位置 E:\Unreal 
Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\UE4Build.cs:行号 373
UATHelper: 打包 (Windows (64位)):    在 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) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\UE4Build.cs:行号 1485
UATHelper: 打包 (Windows (64位)):    在 Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\Scripts\BuildProjectCommand.Automation.cs:行号 192
UATHelper: 打包 (Windows (64位)):    在 BuildCookRun.DoBuildCookRun(ProjectParams Params) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:行号 207
UATHelper: 打包 (Windows (64位)):    在 BuildCookRun.ExecuteBuild() 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:行号 40
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.BuildCommand.Execute() 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:行号 100
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:行号 566
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.Automation.Process(String[] Arguments) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:行号 536
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.Program.MainProc(Object Param) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\Program.cs:行号 133
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param) 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:行号 708
UATHelper: 打包 (Windows (64位)):    在 AutomationTool.Program.Main() 位置 E:\Unreal Engine\UE_4.16\Engine\Source\Programs\AutomationTool\Program.cs:行号 57
UATHelper: 打包 (Windows (64位)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
UATHelper: 打包 (Windows (64位)): BUILD FAILED

UATHelper: 打包 (Windows (64位)): UnrealBuildTool: ERROR: Windows SDK v8.1 must be installed in order to build this target.
The error says Windows SDK v8.1 not installed.