Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ABI x86_64 #1558

Open
BLoeT opened this issue Sep 18, 2022 · 5 comments
Open

ABI x86_64 #1558

BLoeT opened this issue Sep 18, 2022 · 5 comments

Comments

@BLoeT
Copy link

BLoeT commented Sep 18, 2022

Could you provide a jni x86_64 version for your lib? I used the latest .aar

I tried to build my app on an x86_64 device and it brings this error:

Cannot build selected target ABI: x86_64 or there are no .so files available to package in the apk for x86_64

In the aar are x86, arm64-v8a and armeabi-v7a.

Or could you pls give me a hint what I can do ?

@sjg-wdw
Copy link
Collaborator

sjg-wdw commented Sep 18, 2022

Hey @TimSylvester are we still building for x86?

@TimSylvester
Copy link
Collaborator

TimSylvester commented Sep 19, 2022

I vaguely recall experimenting with that at some point, but not why it isn't currently included. It seems to build fine, so it's probably just that most devices are ARM-based.

I believe you would just need to add x86_64 to the build.gradle:

                ndk {
                    abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86', 'x86_64'

...

[523/523] Linking CXX shared library ../../../../build/intermediates/cmake/debug/obj/x86_64/libwhirlyglobemaply.so

@BLoeT
Copy link
Author

BLoeT commented Sep 20, 2022

I just use the aar file from your website:
http://mousebird-consulting-inc.github.io/WhirlyGlobe/builds/builds.html

Description how to add the aar file from here:
http://mousebird-consulting-inc.github.io/WhirlyGlobe/tutorial/android/building-from-binary.html

I included the aar file like this
Kotlin:
implementation(group="libs",name="WhirlyGlobeMaply", ext="aar")

with this i got errors like in my first post.

I tried to use abiFilters but no success. In the aar are only the three jni versions

@TimSylvester
Copy link
Collaborator

Here's one I just built from develop with x86_64 added. Unfortunately, the automated CI build has been broken for a while and isn't getting any love.

maply_release.zip

If you update the gradle file, you can build this from Android Studio by running the assembleRelease task in the Gradle panel, after which you'll find it in .../android/library/maply/build/outputs/aar.

@BLoeT
Copy link
Author

BLoeT commented Sep 22, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants