You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Looking at differences between two files ^^, it appears that the android option in the configure files isn't being run for android-arm64-v8a like it is for regular android-arm-v7. Instead it's falling through to the wildcard option which means that different libraries are being defined for inclusion. Solving this should get things back on track for Android.
The issue is that the make android-lib-% target is not being triggered when make android-lib-arm64-v8a is called, but is being triggered when make android-lib-arm-v7 is called. MASON_PLATFORM is set by the commands inside this trigger.
@ljbade Interesting. Yeah, I just swapped out the default value for ANDROID_ABI of arm-v7 to arm64-v8a and ran make android and it errored out the exact same way again. This seems like it's a Makefile pattern matching for targets issue. I asked @flippmoke about it and he couldn't see the issue either. Will defer to @kkaefer on this.
Why this issue is important:
Android GL needs to run on hardware with this architecture for Mapbox customers
@incanus current development device is a Nexus 9 that runs on this.
We do currently use long for pointers. It's been that way from the very start.
@mb12 If you look in the NDK scripts you will see ARM64 does not use -march instead the ARM64 cross compiler has that setting builtin. It is needed for ARM32 since there can be both ARMv5 and ARMv7 binaries from the same cross compiler.
I vote for 32bit only for 0.1.0 at least. Only issue I can forsee is if a user includes another third party 64bit JNI library alongside Mapbox then it will fail to load libmbgl.so as there is no 64bit version. The fix for this though is for the developer to delete the other 64bit JNI libraries and also convert their application to 32bit only.
We should document this ^ somewhere as it will only show up when testing on a 64bit device.
Activity
#1956 - Adding android-lib-arm64-v8a to ANDROID_ABIS
bleege commentedon Jul 28, 2015
Added
make android-lib-arm64-v8atoANDROID_ABISto get the process started. When runs it produces:bleege commentedon Jul 28, 2015
Discovered that the
android-arm64-v8a.gypiis missingopenssl_ldflagsvariable compared to what it looks like inandroid-arm-v7.gypiandroid-arm64-v8a.gypi
android-arm-v7.gypi
#1956 - Fixing ENV_android-lib name for arm64-v8a
bleege commentedon Jul 28, 2015
Looking at differences between two files ^^, it appears that the android option in the
configurefiles isn't being run forandroid-arm64-v8alike it is for regularandroid-arm-v7. Instead it's falling through to the wildcard option which means that different libraries are being defined for inclusion. Solving this should get things back on track for Android.ljbade commentedon Jul 28, 2015
I will take a look. I think arm64 used to build OK.
#1956 - Debug statement to see if Makefile command is being triggered
bleege commentedon Jul 28, 2015
The issue is that the
make android-lib-%target is not being triggered whenmake android-lib-arm64-v8ais called, but is being triggered whenmake android-lib-arm-v7is called. MASON_PLATFORM is set by the commands inside this trigger.make android-lib-arm-v7

make android-lib-arm64-v8a

ljbade commentedon Jul 28, 2015
@bleege Ah that triggered my memory see #1684
bleege commentedon Jul 29, 2015
@ljbade Interesting. Yeah, I just swapped out the default value for ANDROID_ABI of
arm-v7toarm64-v8aand ranmake androidand it errored out the exact same way again. This seems like it's a Makefile pattern matching for targets issue. I asked @flippmoke about it and he couldn't see the issue either. Will defer to @kkaefer on this.Why this issue is important:
52 remaining items
ljbade commentedon Sep 3, 2015
We do currently use
longfor pointers. It's been that way from the very start.@mb12 If you look in the NDK scripts you will see ARM64 does not use
-marchinstead the ARM64 cross compiler has that setting builtin. It is needed for ARM32 since there can be both ARMv5 and ARMv7 binaries from the same cross compiler.I vote for 32bit only for
0.1.0at least. Only issue I can forsee is if a user includes another third party 64bit JNI library alongside Mapbox then it will fail to loadlibmbgl.soas there is no 64bit version. The fix for this though is for the developer to delete the other 64bit JNI libraries and also convert their application to 32bit only.We should document this ^ somewhere as it will only show up when testing on a 64bit device.
refs #1956: remove all Android 64-bit ABI's for now
refs #1956: remove all Android 64-bit ABI's for now
refs mapbox#1956: remove all Android 64-bit ABI's for now
Use bfd instead of gold linker on aarch64
Use bfd instead of gold linker on aarch64
Bump mason
Bump mason
Bump mason