-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Unable to generate android-arm-v7 libs #3118
Comments
@leofarage I can't reproduce this. What version of the code are you running? Can you post any other output that might be related to installing libraries (they should be installed automatically)? |
@kkaefer So, I found the apklib file in the https://www.mapbox.com/android-sdk/#eclipse from which I was able to retrieve the .so files needed. So that's out of the way. I really don't know what I was doing wrong -- I cloned the repository yesterday ( Now I'm having troubles using the Map on 64 bits devices -- every time I go into the map screen it throws the following error (I'm using a Galaxy S6 and S6 Edge):
Strangely this doesn't happen if I run the https://github.com/mapbox/mapbox-android-demo, but the same crash happens if I try running the TestApp included in this repository. |
@leofarage were you able to solve this error? |
@leofarage Are there any other libraries / dependencies in the application that also have native code in them? Reason being is that Android will only run 1 ABI per app and currently the Mapbox Android SDK does not ship an arm64 binary. We're looking to add it via #3128 . The reason that the Mapbox Android Demo works fine on your phone is that there are no other libraries in it that have arm64 binaries so the whole app runs on the arm7 ABI. |
I get the same error with uv.h being missing. I'm starting from the master branch. |
@leye0 This error usually comes about when the Core GL build setup is a bit off. Please see the Installation guide, and specifically the part about Installing Dependencies to make sure that things are setup as needed. |
Yes, I forgot to RTFM (read the * make) log and skipped some missing tools used by mason. I'm ok now. Out of curiosity: how stable is the master branch? |
Glad to hear that things are working for you @leye0! This is a complicated project and you're not the first person (nor likely the last!) to have this happen to them. 😃
Generally speaking it's pretty stable as all development is done in separate branches that are then merged back into That said if you're looking to use the SDK in a Production app I'd recommend the latest of the officially released versions. |
A last question: I've integrated an Android MapboxGL build in Xamarin and noticed some differences with what I add previously. Ex: I need to get a MapboxMap instance instead of operating directly on the MapView, source code for annotations is factored with generics (which translated to object instead of generics when auto-building the .Net bindings), there are slight differences in namespaces, etc... So I understand that there is a difference between Mapbox Android SDK and Mapbox GL. Also, I see that there is a snapshot for Mapbox Android SDK and not for Mapbox GL. Is there a huge difference between the two projects? Should I switch right away to Android SDK if I'm using it on Android? Will I get the same amount of features? |
@leye0 It's not surprising that you're experiencing a disconnect with Xamarin's wrapper plugin as it's using Mapbox Android 3.2.0 and all the MapboxMap code is part of the Mapbox Android 4.0.0 code base which is still in beta (see #4419). I anticipate that when Mapbox Android 4.0.0 is released Xamarin will update their plugin to incorporate it.
This is where there can be some confusion, and I want to make sure we're talking about the same thing. 😃 Mapbox GL was the original name of these projects when we started building it, and hence why the GitHub repos have it in in their names. The
I'm assuming that when you say https://github.com/mapbox/mapbox-gl-js
There are differences between the |
@bleege I'm sorry for taking so long to answer. Yes, Card.IO was shipping an arm-64 ABI thus breaking the app. |
@leofarage Awesome! Glad to have confirmed that it was the ABI mismatch that was the troublemaker. As you saw in #3128 (comment) we've now got arm64 added. Our first release with it is yesterday's beta.2 so please feel free to give it try to make double sure that everything is working as expected. |
Hello,
I'm trying to use the latest stable version of mapbox in Android. The first thing I noticed was that gradle doesn't download the necessary .so file.
Following INSTALL.md (https://github.com/mapbox/mapbox-gl-native/blob/master/INSTALL.md) I was able to generate the x86 lib, but not the arm-v7 one. It accuses a missing header called uv.h.
The error I get when running make android is below:
BTW, I'm running this in a OS X Yosemite (10.10.5). Is anybody else experiencing this?
Thank you
The text was updated successfully, but these errors were encountered: