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

Fixes for NDK 15+ #1103

Merged
merged 15 commits into from
Sep 28, 2017
Merged

Fixes for NDK 15+ #1103

merged 15 commits into from
Sep 28, 2017

Conversation

inclement
Copy link
Member

@inclement inclement commented Aug 29, 2017

This includes the main changes of @dotnetslash from #1095, plus some further fixes that I needed to get builds working.

Not for merging yet, still checking at least one thing.

Mark W. Alexander and others added 11 commits August 21, 2017 12:43
https://android.googlesource.com/platform/ndk/+/ndk-r15-release/docs/UnifiedHeaders.md

- adds --isysroot and -isystem options for unified header includes
- changes --sysroot to use the prebuilt NDK /sysroot
…ompletely

clueless about -isysroot and -isystem so it can't link. It traps the sh.make
failure and then manually links and installs libffi.so
Discussed here regarding Python3

This patch stuffs the configure setting into the environment to disable the
search for langinfo.h
… to drop

header files for linking with shared libraries.
This lets the python_shared dependency work.
@inclement inclement changed the title Fixes for NDK 15 Fixes for NDK 15+ Aug 29, 2017
@inclement inclement mentioned this pull request Aug 29, 2017
This seems to be necessary with the ndk 15 changes, otherwise some
object files can't be linked. It seems like this should be fixable
with an LDFLAG, but I can't any changes here that would have broken
it.
@inclement
Copy link
Member Author

This seems ready for merging to me, but testing would be appreciated. I've tried with the NDK r11c, r15c, and current CrystaX NDK.

@inclement inclement added this to the 0.6 milestone Aug 29, 2017
@inclement
Copy link
Member Author

It looks like this breaks sqlite3, the same way as described at android/ndk#332 . Looking into it.

@inclement
Copy link
Member Author

inclement commented Sep 10, 2017

I think I'll also test this with NDK 16 (currently beta1 is available) before merging, as this removes the old platform headers. That should expose any issues with still using the old headers (edit: and I'm sure such issues exist!)

@inclement
Copy link
Member Author

Everything seems to be working now, including with the NDK 16 beta1. I've run quite a few tests using NDK r11c, r15c, r16-beta1 and crystax, and they all seem to work, so let's go ahead and merge.

@inclement inclement merged commit eeddb24 into kivy:master Sep 28, 2017
@ghost
Copy link

ghost commented Oct 4, 2017

How Adding -D_FILE_OFFSET_BITS=32 solves the issue ?

@inclement
Copy link
Member Author

@astha-garg123 I found information about this at android/ndk#332.

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

Successfully merging this pull request may close these issues.

1 participant