Android Packaging Issues UE4 4.15


(Karan Parikh) #1

Hello,

I am attempting to build a project for GearVR that uses FMOD’s low-level API. The plugin is placed in my Game folder and not in the Engine.

I am trying to package for Android with ETC2 packaging configuration. I tried opening a blank project too to make sure the problem wasn’t with my project. I was able to package the blank project with the FMOD plugin enabled. However, on disabling the plugin, I am unable to package. I have tried Engine source builds as well as launcher builds. I am on UE4 4.15. The source build branch was 4.15.1-release

I am packaging for the Samsung S7 (arm64-v8a) and I read the note below in the documentation. My plugin’s Android binaries folder has a .so for arm64-v8a.

Deployment on other Android architectures

UE4 supports armeabi-v7a, but doesn’t support building for other
architectures unless rebuilding the engine from github. Because of
this, we only ship that architecture by default. To get the .so files
for other architectures, download the “Programmers API for Android”
package from FMOD, and copy them into the
FMODStudio/Binaries/Android/* directories. FMODStudio has compiled
libraries for armeabi-v7a, arm64-v8a, and x86.

Any help will be greatly appreciated.

Log is pasted below:
“C:\Users\Karan\Documents\Unreal Projects\GearBBM\GearBBM.uproject” -remoteini=“C:\Users\Karan\Documents\Unreal Projects\GearBBM” -noxge -NoHotReload -ignorejunk. See logfile for details: ‘UnrealBuildTool-2017.04.26-23.47.46.txt’
UATHelper: Packaging (Android (ETC2)): at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback) in C:\Users\Karan\Documents\U15.1\Engine\Source\Programs\AutomationTool\AutomationUtils\ProcessUtils.cs:lin e 907 UATHelper: Packaging (Android (ETC2)): at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary2 EnvVars, SpewFilterCallbackType SpewFilterCallback) in C:\Users\Karan\Documents\U15.1\Engine\Source\Programs\AutomationTool\AutomationU
tils\ProcessUtils.cs:line 860
UATHelper: Packaging (Android (ETC2)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary2 EnvVars) in C:\Users\Karan\Documents\U15.1\Engine\Source\Programs\AutomationTool\AutomationUtils\UBTUtils.cs:line 51 UATHelper: Packaging (Android (ETC2)): at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary2 EnvVars) in C:\Users\Karan\Documents\U15.1\Engine\Source\Programs\AutomationTool\AutomationUtils\UBTUtils.cs:lin
e 89
UATHelper: Packaging (Android (ETC2)): 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, Dictionary2 EnvVars) in C :\Users\Karan\Documents\U15.1\Engine\Source\Programs\AutomationTool\AutomationUtils\UE4Build.cs:line 368 UATHelper: Packaging (Android (ETC2)): at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary2 PlatformEnvVars, Nullable1 InChangelistNumberOverride, Dictiona
ry2 InTargetToManifest) in C:\Users\Karan\Documents\U15.1\Engine\Source\Programs\AutomationTool\AutomationUtils\UE4Build.cs:line 1502 UATHelper: Packaging (Android (ETC2)): at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask) in C:\Users\Karan\Documents\U15.1\Engine\Source\Programs\AutomationTool\Scripts\BuildProjectCommand.Automation.cs:line 185 UATHelper: Packaging (Android (ETC2)): at BuildCookRun.DoBuildCookRun(ProjectParams Params) in C:\Users\Karan\Documents\U15.1\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 210 UATHelper: Packaging (Android (ETC2)): at BuildCookRun.ExecuteBuild() in C:\Users\Karan\Documents\U15.1\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 43 UATHelper: Packaging (Android (ETC2)): at AutomationTool.BuildCommand.Execute() in C:\Users\Karan\Documents\U15.1\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 100 UATHelper: Packaging (Android (ETC2)): at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands) in C:\Users\Karan\Documents\U15.1\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 561 UATHelper: Packaging (Android (ETC2)): at AutomationTool.Automation.Process(String[] Arguments) in C:\Users\Karan\Documents\U15.1\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 531 UATHelper: Packaging (Android (ETC2)): at AutomationTool.Program.MainProc(Object Param) in C:\Users\Karan\Documents\U15.1\Engine\Source\Programs\AutomationTool\Program.cs:line 135 UATHelper: Packaging (Android (ETC2)): at AutomationTool.InternalUtils.RunSingleInstance(Func2 Main, Object Param) in C:\Users\Karan\Documents\U15.1\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 704
UATHelper: Packaging (Android (ETC2)): at AutomationTool.Program.Main() in C:\Users\Karan\Documents\U15.1\Engine\Source\Programs\AutomationTool\Program.cs:line 59
UATHelper: Packaging (Android (ETC2)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Android (ETC2)): BUILD FAILED
PackagingResults:Error: Error Unknown Error


(Cameron Baron) #2

Just to clarify, you are getting this just when you disable the FMOD plugin?


(Karan Parikh) #3

Hi Cameron,
When I disable FMOD and remove any C++ component that uses the FMOD API There are no errors. When I enable the FMOD plugin I am unable to package and I run into the errors displayed above.


(Cameron Baron) #4

Nothing in the really stands out unfortunately.

You may be able to find more information in the log files or by enabling verbose logging in UE4: https://wiki.unrealengine.com/Logs,_Printing_Messages_To_Yourself_During_Runtime