Has anyone tried to export this to Android?
I’m getting the following errors:
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: U:\UnrealEngine\OtherProjects\UE4RollercoasterProject2\UE4Rollercoaster\Plugins\RollercoasterPlugin\Source\RollercoasterPlugin\Private\RollercoasterPlayerController.cpp(47,1) : error: unknown type name 'BYTE'
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: BYTE* HackPtr = (BYTE*)SplineSegment;
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: ^
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: U:\UnrealEngine\OtherProjects\UE4RollercoasterProject2\UE4Rollercoaster\Plugins\RollercoasterPlugin\Source\RollercoasterPlugin\Private\RollercoasterPlayerController.cpp(47,18) : error: use of undeclared identifier 'BYTE'
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: BYTE* HackPtr = (BYTE*)SplineSegment;
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: ^
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: U:\UnrealEngine\OtherProjects\UE4RollercoasterProject2\UE4Rollercoaster\Plugins\RollercoasterPlugin\Source\RollercoasterPlugin\Private\RollercoasterPlayerController.cpp(47,23) : error: expected expression
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: BYTE* HackPtr = (BYTE*)SplineSegment;
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: ^
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: U:\UnrealEngine\OtherProjects\UE4RollercoasterProject2\UE4Rollercoaster\Plugins\RollercoasterPlugin\Source\RollercoasterPlugin\Private\RollercoasterPlayerController.cpp(229,90) : warning: 'SafeNormal' is deprecated: Deprecated due to unclear name, use GetSafeNormal instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. -Wdeprecated-declarations]
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: const FVector NewKeyTangent = SplineInfo.EvalDerivative(NewKeyTime, FVector::ZeroVector).SafeNormal();
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: ^
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: U:\UnrealEngine\_engineInstalls\Unreal Engine\4.7\Engine\Source\Runtime\Core\Public\Math\Vector.h(1666,29) : note: 'SafeNormal' declared here
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: FORCEINLINE FVector FVector::SafeNormal(float Tolerance) const
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: ^
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: 1 warning and 3 errors generated.
MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: U:\UnrealEngine\OtherProjects\UE4RollercoasterProject2\UE4Rollercoaster\Plugins\RollercoasterPlugin\Binaries\Android\RollercoasterPlugin-Static-armv7-es2.a
MainFrameActions: Packaging (Android (ETC2)): ErrorReporter.Error: ERROR: AutomationTool error: Command failed (Result:2): U:\UnrealEngine\_engineInstalls\Unreal Engine\4.7\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Rollercoaster Android Development U:\UnrealEngine\OtherProjects\UE4RollercoasterProject2\UE4Rollercoaster\UE4Rollercoaster.uproject -noxge -rocket -NoHotReloadFromIDE. See logfile for details: 'UnrealBuildTool.txt'
MainFrameActions: Packaging (Android (ETC2)): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (Android (ETC2)): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (Android (ETC2)): Program.Main: ERROR: Exception in AutomationTool: Command failed (Result:2): U:\UnrealEngine\_engineInstalls\Unreal Engine\4.7\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Rollercoaster Android Development U:\UnrealEngine\OtherProjects\UE4RollercoasterProject2\UE4Rollercoaster\UE4Rollercoaster.uproject -noxge -rocket -NoHotReloadFromIDE. See logfile for details: 'UnrealBuildTool.txt'
MainFrameActions: Packaging (Android (ETC2)): Stacktrace: at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars)
MainFrameActions: Packaging (Android (ETC2)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
MainFrameActions: Packaging (Android (ETC2)): at AutomationTool.UE4Build.BuildWithUBT(String ProjectName, String TargetName, UnrealTargetPlatform TargetPlatform, String Config, String UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity, Dictionary`2 EnvVars)
MainFrameActions: Packaging (Android (ETC2)): at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InForceNonUnity, Boolean InForceUnity, Dictionary`2 PlatformEnvVars)
MainFrameActions: Packaging (Android (ETC2)): at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL)
MainFrameActions: Packaging (Android (ETC2)): at BuildCookRun.DoBuildCookRun(ProjectParams Params)
MainFrameActions: Packaging (Android (ETC2)): at BuildCommand.Execute()
MainFrameActions: Packaging (Android (ETC2)): at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
MainFrameActions: Packaging (Android (ETC2)): at AutomationTool.Automation.Process(String] CommandLine)
MainFrameActions: Packaging (Android (ETC2)): at AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Packaging (Android (ETC2)): at AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param)
MainFrameActions: Packaging (Android (ETC2)): at AutomationTool.Program.Main()
MainFrameActions: Packaging (Android (ETC2)): Program.Main: ERROR: Command failed (Result:2): U:\UnrealEngine\_engineInstalls\Unreal Engine\4.7\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Rollercoaster Android Development U:\UnrealEngine\OtherProjects\UE4RollercoasterProject2\UE4Rollercoaster\UE4Rollercoaster.uproject -noxge -rocket -NoHotReloadFromIDE. See logfile for details: 'UnrealBuildTool.txt'
MainFrameActions: Packaging (Android (ETC2)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Android (ETC2)): Program.Main: AutomationTool exiting with ExitCode=2
MainFrameActions: Packaging (Android (ETC2)): Domain_ProcessExit
MainFrameActions: Packaging (Android (ETC2)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Android (ETC2)): copying UAT log files...
MainFrameActions: Packaging (Android (ETC2)): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
MainFrameActions: Packaging (Android (ETC2)): BUILD FAILED
Some trick required for exporting with custom plugins to android???
I tried both with an old UE4 version of the plugin and with the new 4.7 plugin and get the same error
I want to try creating something for the gearvr!
teddy has a 4.7 export near the end of this thread:
https://forums.oculus/viewtopic.php?t=8032