Fatal error at android .so binary

Hi everyone.
I have downloaded ue4.10.4 from github. I have fixed all of the compiler errors but when I build it for android x86 using visual studio 2013.
It will generate a file called UE4Game-x86.so but the file size is huge (about 750mb) and when I package my project for android and test it on my android device. The game force close after opening it.
I built another project (empty project for testing) but the same problem happened.
Please help me.
I think there is something wrong in the .so file

Try to compile with Shipping method (or Test), then UE4 will work faster and produce smaller binaries.

To understand what happens on crash, attach your device by USB and run C:\NVPACK\android-sdk-windows\tools\monitor.bat. Then run your app on device. After crash deattach your device. You can inspect your self what happens or pastebin logs here.

Ok.
Do you have any way to compile .so file properly ?.
I saw that arm-v7 shipping .so file is only 93mb (in ue4.10.1 which downloaded from the launcher)
but when I try to compile it using visual studio it will be bigger than 600mb.
I’m asking how the compiled it in the launcher’s version ?

Ok.
Do you have any way to compile .so file properly ?.
I saw that arm-v7 shipping .so file is only 93mb (in ue4.10.1 which downloaded from the launcher)
but when I try to compile it using visual studio it will be bigger than 600mb.
I’m asking how the compiled it in the launcher’s version ?

Goog question. I have a guess. I don’t now how, but in binary Engine version library is divided into *.a parts, wich in common is about 600mb.
Also compressed version is about 5 times smaller, so apk won’t be so big.

The problem is not in the apk size.
Ue4Game-x86.so is 778 mb but apk size is no more than 30mb. I found inside the apk (libUE4.so) size is 70mb only. So the problem is not in the apk size.
The big problem is when I open the game. It’s force close before I see the splash screen. I tried to build an empty project and have the same problem.
Please try to help me :frowning:

Please hurry up

I am sorry, I am not succeed yet with compiling my project. On packaging Engine starts to compile over again. And I don’t have device to test x86 version. I am targeting es31. Only I can recommend is to upgrade to 4.11, maybe it was fixed

You should check monitor.bat (it shows android logs) and see why it crushing. For example my device crush with antialiasing enabled on es2 (thats why I am trying to build es31).

Please try to build es2 .so file. Forget the x86. Deleted UE4Game-Armv7.so and build it using visual studio. And tell me if it works with you.
Please hurry up. I’m sorry for asking so much

Ok. I packaged with enabled es3 & es2. Got two apk’s. Both works. With MobileHDR enabled and disabled by the way.

Anyway first packaging run requires .so compile even if you already compiled them!

I told you, it works. I tested on Xperia Z1 and Shield TV. On shield I’ve got dynamic shadows, antialiasing, screen space reflections!
Once I’ve got crash, when set MobileMSAA=2. When it is 1 it’s not crushing.
I’ve heard it is even fixed in 4.11
UPD: my setup is very simple. Default empty level with floor and sky and few flying around balls with metalic material.

Ok. You’ve got the apks.
Try to build an empty project fir android and test it on any Android device. Please do that and tell me if it works.

Hell.
Ok can you tell me what’s the version of visual studio your are using ???.
And what’s the version of ue4 you are using ? Master or release or tag ???.
Please stay helping me. You are answering really good.

That’s really good.
Can you build (shipping) for android x86-es2. Then upload the *.so file to me ?. Please ?

VS2013 express edition. Tag 4.10.

I am sure that it won’t work so easy, because Engine rebuilds .so’s on first packaging and you will finaly get your own version. I have only es2 and es31 for now (download). If it works for you, I’ll try to build x86

I’ll try them.
Thanks very much :slight_smile:

Yeeeaaah. Finally.
It’s working !!!.
Please. Can you build x86-es2 & x86-es3.1 ?.
And upload them as you uploaded arm version ???.
I’m waiting for you :wink:
Thank you very much :wink:

I hope you put them into .7z archive. As you did in the arm files.
I’m still waiting :slight_smile: