Android build fails under arm64 & ES Deferred Shading

I set some of the new build settings to see if they would improve my load times, now I’m getting build errors, and I’m not sure if they’re due to something in my code. Attached is the log[link text][1]

106856-unrealbuildtool-2016.09.13-14.11.26.txt (19.9 KB)

,

Can you package your project without ARM64 and ES Deferred Shading selected in Project Settings > Android? If so, could you see if ARM64 packages and if it’s only ES Deferred Shading causing the issue?

If you’re not able to package at all, could you show me your Android SDK settings for your project? I’m also curious whether or not Android-21 is causing the trouble and whether or not you’ve tried or Android-22.

Thanks!

Hey,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you!

Getting the error on a arm64-es2 build on NDK version 19, gccVersion 4.9:

UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: [120/226]
clang++.exe Module.Sockets.cpp
[arm64-es2] UATHelper: Packaging
(Android (ETC2)): UnrealBuildTool: In
file included from
C:/SVN/PROJECTSCopy/unreal_project/NBT2/Intermediate/Build/Android/NBT2/Development/Sockets/Module.Sockets.cpp:3:
UATHelper: Packaging (Android (ETC2)):
UnrealBuildTool: In file included from
C:\UnrealEngine2\Engine\Source\Runtime\Sockets\Private\Android\SocketSubsystemAndroid.cpp:4:
UATHelper: Packaging (Android (ETC2)):
UnrealBuildTool: In file included from
Runtime/Sockets/Private\Android/SocketSubsystemAndroid.h:6:
UATHelper: Packaging (Android (ETC2)):
UnrealBuildTool: In file included from
Runtime/Sockets/Private\BSDSockets/SocketSubsystemBSD.h:12:
UATHelper: Packaging (Android (ETC2)):
UnrealBuildTool:
Runtime/Sockets/Private\BSDSockets/IPAddressBSD.h(131,19)
: error: value size does not match
register size specified by the
constraint and modifier
[-Werror,-Wasm-operand-widths]
UATHelper: Packaging (Android (ETC2)):
UnrealBuildTool:
Addr.sin_port = htons(InPort);

Tried to make a armv7-esdeferred build and got:

UATHelper: Packaging (Android (ETC2)):
UnrealBuildTool:
C:\UnrealEngine2\Engine\Source\Runtime\RHI\Private\Android/AndroidDynamicRHI.cpp:17:
error: undefined reference to
‘FAndroidAppEntry::ReleaseEGL()’
UATHelper: Packaging (Android (ETC2)):
UnrealBuildTool: clang++.exe: error:
linker command failed with exit code 1
(use -v to see invocation)

I spoke with our Developer further about this, ARM64 isn’t going to be supported in due to the headers. However, Android-21 should work perfectly fine for you. Please make sure that you’ve installed the correct CodeWorks SDK for what you’re packaging for.

Send screenshots of your Android SDK settings from Codeworks and within the Engine.

Thanks!

I also tried updating the tools from inside the android sdk, but that didn’t change anything.

I managed to break a c++ Blank project for arm64 by changing the Build.cs file

PublicDependencyModuleNames.AddRange(new
string { “Core”, “CoreUObject”,
“Engine”, “InputCore”, “UMG”, “Slate”,
“SlateCore”, “AIModule”, “RenderCore”,
“ShaderCore”, “RHI”, “Serialization”
});

PrivateDependencyModuleNames.AddRange(new
string { “Json”,
/“JsonUtilities”,/ “HTTP”, “zlib”,
“Landscape” });

You need to use CodeWorks for Android and you should be updating your SDK information to the following since you’re on 4.13:

106974-9-14-2016+11-54-56+am.png

![98373-androidsdk.jpg|604x316](