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

Broken NDK build #1776

Open
sevar83 opened this issue Sep 16, 2017 · 11 comments
Open

Broken NDK build #1776

sevar83 opened this issue Sep 16, 2017 · 11 comments
Labels

Comments

@sevar83
Copy link

sevar83 commented Sep 16, 2017

Log: https://jitpack.io/com/github/sevar83/android-spatialite/2.0.0-RC0/build.log

Looks like some of the latest NDK update have broken my build. The issue is in the NDK but fixed in NDK R15c: android/ndk#332

Please, could you tell me the NDK version used in JitPack?

@jitpack-io
Copy link
Member

Hi @sevar83

The current version is 15.2.4203891 and it gets updated automatically.

@sevar83
Copy link
Author

sevar83 commented Sep 16, 2017

For future readers: I've fixed it by adding APP_DEPRECATED_HEADERS := true to Application.mk. Not the best solution but works for now ™.

@alvminvm
Copy link

try adding _FILE_OFFSET_BITS=32 to Android.mk

@kishorejethava
Copy link

@sevar83 I have published library at Jitpack but log showing build failed.

Log

Execution failed for task ':ImageLibrary:ndkBuild'.
> A problem occurred starting process 'command 'D:/AndroidSDK/ndk-bundle/ndk-build''

So the question is how to set NDK path?

right now I have written local path in local.properties

ndk.dir=D\:\\AndroidSDK\\ndk-bundle

Please help me!!

@jitpack-io
Copy link
Member

@kishorejethava JitPack provides a NDK_HOME environment variable.
Would recommend removing ndk.dir from local.properties and then building that on JitPack.

@kishorejethava
Copy link

Thanks @jitpack-io, I have already done it and it's worked!!

@feresr
Copy link

feresr commented May 31, 2021

Wondering what should NDK_HOME be set to?
Shouldn't this be configured by jitpack on the host machine (the one running the build)
I have ndkVersion "22.1.7171670" defined in my build.gradle but I'm still getting

NDK from ndk.dir at /opt/android-sdk-linux/ndk-bundle had version [21.1.6352462] which disagrees with android.ndkVersion [22.1.7171670]

I have not defined ndk.dir anywhere in my project, I'm not sure where that is coming from
Appreciate any help. I suck at devops

@sevar83
Copy link
Author

sevar83 commented Jun 1, 2021 via email

@feresr
Copy link

feresr commented Jun 1, 2021

I think the local jitpack defines ndk.dir and your project defines ndkVersion and they different which causes the conflict. I don't know how to deal with this. The ndkVersion property is something new to me.

I agree, I think this is what's happening as well... the question is, why is jitpack defining a random ndk version? AFAIK ndk.dir is legacy (deprecated) and ndkVersion should be favoured

@sevar83
Copy link
Author

sevar83 commented Jun 1, 2021 via email

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants