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

Android exampleapp build fails #2702

Open
helgovic opened this issue Mar 5, 2025 · 1 comment
Open

Android exampleapp build fails #2702

helgovic opened this issue Mar 5, 2025 · 1 comment
Assignees
Labels
bug Unexpected software behaviour examples Issues related to examples

Comments

@helgovic
Copy link

helgovic commented Mar 5, 2025

building the app/src/main/jni/build.sh fails, when building libsodium.

configure: creating ./config.status
config.status: creating Makefile
config.status: creating builds/Makefile
config.status: creating contrib/Makefile
config.status: creating dist-build/Makefile
config.status: creating libsodium.pc
config.status: creating libsodium-uninstalled.pc
config.status: creating msvc-scripts/Makefile
config.status: creating src/Makefile
config.status: creating src/libsodium/Makefile
config.status: creating src/libsodium/include/Makefile
config.status: creating src/libsodium/include/sodium/version.h
config.status: creating test/default/Makefile
config.status: creating test/Makefile
config.status: executing depfiles commands
config.status: error: in `/d/Java/Mega/sdk-master/sdk-master/examples/android/ExampleApp/app/src/main/jni/sodium/sodium':
config.status: error: Something went wrong bootstrapping makefile fragments
for automatic dependency tracking. Try re-running configure with the
'--disable-dependency-tracking' option to at least be able to build
the package (albeit without support for automatic dependency tracking).

@helgovic helgovic added the bug Unexpected software behaviour label Mar 5, 2025
@sergiohs84 sergiohs84 added the examples Issues related to examples label Mar 6, 2025
@sergiohs84
Copy link
Contributor

Hi @helgovic

Thanks for reporting. Can you please indicate:

  1. The SDK commit (or tag) you are using
  2. The Android NDK: it should be v27
  3. The Java Development Kit
  4. That you set the required environment variables or soft links to Android NDK, Android SDK and Java JDK
    Make sure you set the LOG_FILE in the build.sh script, so you get more information about the error.

I've tested on Ubuntu 22.04 LTS with Android NDK r27c, Android SDK 15 and JDK 11, and it worked fine.

An alternative would be to open the project directly in Android Studio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected software behaviour examples Issues related to examples
Projects
None yet
Development

No branches or pull requests

2 participants