x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Google VR (Android ATC) Packaging Failed

I've followed the Unreal Engine's "Google VR" Documentation several times and everytime I've got this:

UATHelper: Packaging (Android (ATC)): Running AutomationTool... UATHelper: Packaging (Android (ATC)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject=D:/PROIECTE/JOCURI/VR/VR.uproject BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project=D:/PROIECTE/JOCURI/VR/VR.uproject -cook -stage -archive -archivedirectory=D:/PROIECTE UATHelper: Packaging (Android (ATC)): /JOCURI/VR -package -clientconfig=Development -ue4exe=UE4Editor-Cmd.exe -pak -prereqs -nodebuginfo -targetplatform=Android -cookflavor=ATC -build -CrashReporter -utf8output UATHelper: Packaging (Android (ATC)): Automation.Process: Setting up command environment. UATHelper: Packaging (Android (ATC)): WindowsPlatform.get_Compiler: WARNING: Visual C++ 2015 toolchain does not appear to be correctly installed. Please verify that "Common Tools for Visual C++ 2015" was selected when installing Visual Studio 2015. UATHelper: Packaging (Android (ATC)): BuildCookRun.SetupParams: Setting up ProjectParams for D:\PROIECTE\JOCURI\VR\VR.uproject UATHelper: Packaging (Android (ATC)): Project.Build: BUILD COMMAND STARTED UATHelper: Packaging (Android (ATC)): CommandUtils.Run: Run: D:\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe VR Android Development -Project=D:\PROIECTE\JOCURI\VR\VR.uproject D:\PROIECTE\JOCURI\VR\VR.uproject -remoteini="D:\PROIECTE\JOCURI\VR" -noxge -generatemanifest -NoHotRel UATHelper: Packaging (Android (ATC)): oad UATHelper: Packaging (Android (ATC)): UnrealBuildTool: NDK version: 21, GccVersion: 4.9 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: building WITHOUT VULKAN define UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Vulkan SDK is installed, but the project disabled Vulkan (bSupportsVulkan setting in Engine). Disabling Vulkan RHI for Android UATHelper: Packaging (Android (ATC)): CommandUtils.Run: Run: Took 1.5325881s to run UnrealBuildTool.exe, ExitCode=0 UATHelper: Packaging (Android (ATC)): CommandUtils.Run: Run: D:\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe VR Android Development -Project=D:\PROIECTE\JOCURI\VR\VR.uproject D:\PROIECTE\JOCURI\VR\VR.uproject -remoteini="D:\PROIECTE\JOCURI\VR" -noxge -NoHotReload -ignorejunk UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Creating makefile for VR (.uproject file is newer) UATHelper: Packaging (Android (ATC)): UnrealBuildTool: NDK version: 21, GccVersion: 4.9 UATHelper: Packaging (Android (ATC)): UnrealBuildTool: building WITHOUT VULKAN define UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Vulkan SDK is installed, but the project disabled Vulkan (bSupportsVulkan setting in Engine). Disabling Vulkan RHI for Android UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Compiling Native code with NDK API 'android-21' UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Performing 2 actions (2 in parallel) UATHelper: Packaging (Android (ATC)): UnrealBuildTool: [1/2] clang++.exe UELinkerFixups.cpp [armv7-es2] UATHelper: Packaging (Android (ATC)): UnrealBuildTool: [2/2] clang++.exe VR-armv7-es2.so UATHelper: Packaging (Android (ATC)): UnrealBuildTool: C:/NVPACK/android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: D:/Epic Games/4.13/Engine/Plugins/Runtime/GoogleVR/GoogleVRHMD/Bin UATHelper: Packaging (Android (ATC)): aries/Android/UE4-GoogleVRHMD-armv7-es2.a(Module.GoogleVRHMD.cpp-armv7-es2.o): multiple definition of 'GetHMD()' UATHelper: Packaging (Android (ATC)): UnrealBuildTool: C:/NVPACK/android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: D:/Epic Games/4.13/Engine/Plugins/Runtime/GearVR/Binaries/Android/UE4-Gea UATHelper: Packaging (Android (ATC)): rVR-armv7-es2.a(Module.GearVR.cpp-armv7-es2.o): previous definition here UATHelper: Packaging (Android (ATC)): UnrealBuildTool: clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation) UATHelper: Packaging (Android (ATC)): UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: D:\PROIECTE\JOCURI\VR\Binaries\Android\VR-armv7-es2.so UATHelper: Packaging (Android (ATC)): UnrealBuildTool: Total build time: 23.88 seconds UATHelper: Packaging (Android (ATC)): CommandUtils.Run: Run: Took 24.0711014s to run UnrealBuildTool.exe, ExitCode=5 UATHelper: Packaging (Android (ATC)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): D:\Epic Games\4.13\Engine\Binaries\DotNET\UnrealBuildTool.exe VR Android Development -Project=D:\PROIECTE\JOCURI\VR\VR.uproject D:\PROIECTE\JOCURI\VR\VR.uproject -remoteini="D:\P ROIECTE\JOCURI\VR" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2016.09.20-11.21.12.txt' UATHelper: Packaging (Android (ATC)): at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback) UATHelper: Packaging (Android (ATC)): at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback) UATHelper: Packaging (Android (ATC)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars) UATHelper: Packaging (Android (ATC)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary`2 EnvVars) UATHelper: Packaging (Android (ATC)): 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) UATHelper: Packaging (Android (ATC)): 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, Dictionar y`2 InTargetToManifest) UATHelper: Packaging (Android (ATC)): at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) UATHelper: Packaging (Android (ATC)): at BuildCookRun.DoBuildCookRun(ProjectParams Params) UATHelper: Packaging (Android (ATC)): at AutomationTool.BuildCommand.Execute() UATHelper: Packaging (Android (ATC)): at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands) UATHelper: Packaging (Android (ATC)): at AutomationTool.Automation.Process(String[] Arguments) UATHelper: Packaging (Android (ATC)): at AutomationTool.Program.MainProc(Object Param) UATHelper: Packaging (Android (ATC)): at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param) UATHelper: Packaging (Android (ATC)): at AutomationTool.Program.Main() UATHelper: Packaging (Android (ATC)): Program.Main: AutomationTool exiting with ExitCode=5 (5) UATHelper: Packaging (Android (ATC)): BUILD FAILED PackagingResults:Error: Error Unknown Error

This results from a default FirstPersonExampleMap (with the specific settings from the Unreal Engine's "Google VR" Documentation). Any suggestions will help me a lot :)

Product Version: UE 4.13
Tags:
more ▼

asked Sep 20 '16 at 02:40 PM in Packaging & Deployment

avatar image

Andrei Turcu
6 1 3 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi Andrei,

There is a known issue right now with the error you're getting specifically in this log for "Multiple Definitions of GetHMD()" function. This is reported here: https://issues.unrealengine.com/issue/UE-35691

This is a bug that happens when having multiple VR plugins enabled like GoogleVR and GearVR. Since GearVR is enabled by default when you enabled GoogleVR you get this error. You can workaround this by disabling the GearVR plugin to solve this specific build issue. You may have others that come up with your normal build process, but this one is resolved by these steps.

This targeted to be fixed in 4.14 when that releases in the coming months.

-Tim

more ▼

answered Sep 21 '16 at 02:58 PM

avatar image

Tim Hobson ♦♦ STAFF
48.8k 888 103 878

avatar image Andrei Turcu Sep 30 '16 at 06:58 AM

Thank you so much Tim :D I've disabled the GearVR plugin and everything works perfectly for the FirstPerson default map. I don't know yet how it will work on a real game with a lot and graphics and stuff, but I will probably create another topic when I finish my project. Thank u again and sorry for delay....

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question