Packaging with plugins GearVR and GoogleVR together cause build failed with multiple definitions of GetHMD().
Log attached for build error and error portion plugged into the callstack box.
1. Open any UE4 Project
2. Open the Plugins Window > Virtual Reality
3. Enable GearVR plugin
4. Enable GoogleVR plugin
5. Launch on Device from the toolbar.
Results: Build fails with error for multiple definitions of 'GetHMD()'
LogPlayLevel: UnrealBuildTool: C:/NVPACK/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Builds/UE4_Main/Engine/Plugins/Runtime/GoogleVR/GoogleVRHMD/Binaries/Android/MobileTests-GoogleVRHMD-armv7-es2.a(Module.GoogleVRHMD.cpp-armv7-es2.
o): multiple definition of 'GetHMD()'
LogPlayLevel: UnrealBuildTool: C:/NVPACK/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin\ld.gold.exe: D:/Builds/UE4_Main/Engine/Plugins/Runtime/GearVR/Binaries/Android/MobileTests-GearVR-armv7-es2.a(Module.GearVR.cpp-armv7-es2.o): previous definition here
LogPlayLevel: UnrealBuildTool: clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
LogPlayLevel: UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: D:\Launcher Projects\Unreal Projects\MobileTests 4.14\Binaries\Android\MobileTests-armv7-es2.so
LogPlayLevel: UnrealBuildTool: Total build time: 1527.94 seconds
LogPlayLevel: CommandUtils.Run: Run: Took 1528.283s to run UnrealBuildTool.exe, ExitCode=5
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): D:\Builds\UE4_Main\Engine\Binaries\DotNET\UnrealBuildTool.exe MobileTests Android Development -Project="D:\Launcher Projects\Unreal Projects\MobileTests 4.14\MobileTests.uproject" "D:\Launcher Projects\U
nreal Projects\MobileTests 4.14\MobileTests.uproject" -remoteini="D:\Launcher Projects\Unreal Projects\MobileTests 4.14" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2016.09.07-16.10.56.txt'
LogPlayLevel: at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback) in D:\Builds\UE4_Main\Engine\Source\Programs\AutomationTool\AutomationUtils\ProcessUtils.cs:line 883
LogPlayLevel: at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback) in D:\Builds\UE4_Main\Engine\Source\Programs\AutomationTool\AutomationUtils\ProcessUtils.cs:line 836
LogPlayLevel: at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars) in D:\Builds\UE4_Main\Engine\Source\Programs\AutomationTool\AutomationUtils\UBTUtils.cs:line 51
LogPlayLevel: at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary`2 EnvVars) in D:\Builds\UE4_Main\Engine\Source\Programs\AutomationTool\AutomationUtils\UBTUtils.cs:line 89
LogPlayLevel: at 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) in D:\Builds\UE4_Main\Engine\
Source\Programs\AutomationTool\AutomationUtils\UE4Build.cs:line 362
LogPlayLevel: 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, Dictionary`2 InTargetToManifest)
in D:\Builds\UE4_Main\Engine\Source\Programs\AutomationTool\AutomationUtils\UE4Build.cs:line 1407
LogPlayLevel: at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) in d:\Builds\UE4_Main\Engine\Source\Programs\AutomationTool\Scripts\BuildProjectCommand.Automation.cs:line 172
LogPlayLevel: at BuildCookRun.DoBuildCookRun(ProjectParams Params) in d:\Builds\UE4_Main\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 211
LogPlayLevel: at AutomationTool.BuildCommand.Execute() in D:\Builds\UE4_Main\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 27
LogPlayLevel: at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands) in D:\Builds\UE4_Main\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 547
LogPlayLevel: at AutomationTool.Automation.Process(String[] Arguments) in D:\Builds\UE4_Main\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 517
LogPlayLevel: at AutomationTool.Program.MainProc(Object Param) in D:\Builds\UE4_Main\Engine\Source\Programs\AutomationTool\Program.cs:line 135
LogPlayLevel: at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param) in D:\Builds\UE4_Main\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 704
LogPlayLevel: at AutomationTool.Program.Main() in D:\Builds\UE4_Main\Engine\Source\Programs\AutomationTool\Program.cs:line 59
LogPlayLevel: Program.Main: AutomationTool exiting with ExitCode=5 (5)
LogPlayLevel: Completed Launch On Stage: Build Task, Time: 1531.104212
LogPlayLevel: BUILD FAILED
PackagingResults:Error: Error Launch failed! Unknown Error
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Platform - XR |
---|---|
Affects Versions | 4.13, 4.14 |
Target Fix | 4.14 |
Fix Commit | 3108309 |
---|---|
Main Commit | 3146243 |
Created | Sep 7, 2016 |
---|---|
Resolved | Sep 20, 2016 |
Updated | Sep 16, 2019 |