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

When I build the project, I get the problem , that the file, libsodium.a, is missing. #127

Closed
AimeeChen opened this issue Jun 9, 2017 · 9 comments

Comments

@AimeeChen
Copy link

I build the project on the Ubuntu, I get this problem:
Android NDK:ERROR:opus/Android.mk:sodium: LOCAL_SRC_FILES points ti a missing file
Android NDK:Check that ./libsodium/libsodium-android-armv6/lib/libsodium.a exists or path is correct
make: Entering directory 'batphone/app/src/main/jni'
ndk/android-ndk-r14b/build/core/prebuilt-library.mk:45:*** Android NDK. Stop.
make: Leaving directory 'batphone/app/src/main/jni'
:app:buildDebugNdk FAILED

@lakeman
Copy link
Member

lakeman commented Jun 9, 2017

The gradle task libsodiumBuild should compile that file, and should be a dependency of buildDebugNdk. So I'm not sure why this isn't working for you.

@AimeeChen
Copy link
Author

Thanks @lakeman . I use the Ubuntu, whose version is 16.04.2, I get the problem . I have no idea how to solve the problem on the Ubuntu-16.04.2. so, I can build APK successfully , when I use :
Ubuntu : 14.04.5,
JDK : android-ndk-r13b-linux-x86_64
Android Studio IDE

@lakeman
Copy link
Member

lakeman commented Jun 12, 2017 via email

@Freizagen
Copy link

@AimeeChen: Did you solve your problem?

@AniketSK
Copy link

I'm running into the same problem the file is supposed to be at:
batphone/app/src/main/jni/libsodium/libsodium-android-armv6/lib/libsodium.a
@lakeman I can run libsodiumBuild but buildDebugNdk doesn't exist.
Also, is it normal for building sodium to suddenly generate 600Mb of files?
I'm trying to build with assembleDebug and I do have the ndk 16b

@lakeman
Copy link
Member

lakeman commented Jul 16, 2018

The native build tasks were changed to use the builtin native tasks, eg externalNativeBuildDebug; 65066f8#diff-39e7d8c00954e920b98e7636f0ac30b2

There's a few things going on here that look a bit iffy. app/build.gradle should be building libsodium-android-armv7-a/lib/libsodium.a and has set an externalNativeBuild abi filter of "armeabi-v7a". jni/Application.mk also defines the APP_ABI's to use as armeabi-v7a. jni/Android.mk tries to map that to the pre-compiled libsodium.a via SODIUM_BASE, but doesn't have a test for armeabi-v7a. So I think you should be seeing a missing libsodium-android-armeabi-v7a/lib/libsodium.a instead of armv6, which is a little puzzling.

Building libsodium uses make_standalone_toolchain.py to install a complete android ndk toolchain which probably accounts for the disk usage.

@rahoof08
Copy link

rahoof08 commented Aug 13, 2018

@lakeman I have the same problem, but as you said the error is a missing libsodium-android-armeabi-v7a/lib/libsodium.a . And my ndk.dir points to revision 14b as it mentions in the known issues section in install.md

What should I do to fix the problem?!
Thanks in advance :)

@lakeman
Copy link
Member

lakeman commented Aug 14, 2018

I can only suggest that you update to the latest ndk.

Also this should be fixed by e8941bd.

@AniketSK
Copy link

AniketSK commented Aug 14, 2018 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

5 participants