-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
ndk-build fails for NDK r16b #248
Comments
When DuckDuckGo'ing for the core error ("mmap is not available with _FILE_OFFSET_BITS=64 when using GCC until android-21. Either raise your minSdkVersion, disable _FILE_OFFSET_BITS=64, or switch to Clang."), I got eg. this result - android/ndk#332 (comment) - seems as if we have to fix sth. for the newer NDKs. Maybe this is also the reasons why F-Droid makes problems these days. |
I think that clang can be used like this:
With clang, you have to use NULL instead of 0 if you mean a pointer: (Or would
(Am I right assuming that a pointer can't have a negative value?) But there still is an error (although it appears way later):
I attached the full error log: error.txt Update: The diffs can be seen here: master...Hocceruser:master |
Okay, while my normal development environment works, I can reproduce the problem with a fresh Android Studio install using the new NDK android-ndk-r16b-*-x86_64.zip - i assume, you use the same one? As a workaround, you could use NDK android-ndk-r15c-*-x86_64.zip , however, of course, sooner or later we should fix the problem directly. I've added an appropriate hint in the readme. PR to fix the issue are very welcome. Regarding the F-Droid-Problem: F-Droid uses r15c, so this should not be a problem there. |
seems as if we stuck in ndk r14b, see #220, one can fix this later, but for now, this seems to be out of scope. |
Closed after README update 3ecb5a4: "dependecy on NDK 14b". |
Delta Chat version
Newest GitHub version
Expected behavior
ndk-build to work :-)
Actual behavior
Naturally, when i build and launch Delta Chat anyway, it crashes ("Unfortunately, Delta Chat has stopped.").
Steps to reproduce the problem
Follow the "Install Development Environment" and then the "Build" instructions in the readme (Or did I miss something / do something wrong ?)
The text was updated successfully, but these errors were encountered: