Skip to content

Android: support NDK16#10515

Merged
opencv-pushbot merged 9 commits intoopencv:masterfrom
alalek:android_ndk16
Jan 12, 2018
Merged

Android: support NDK16#10515
opencv-pushbot merged 9 commits intoopencv:masterfrom
alalek:android_ndk16

Conversation

@alalek
Copy link
Copy Markdown
Member

@alalek alalek commented Jan 5, 2018

BTW, Binaries size of OpenCV Android SDK with NDK r16 is about ~3Gb (NDK r10 ~800Mb). Most part of this impact is related to static .a files.

allow_multiple_commits=1

alalek and others added 9 commits January 5, 2018 04:52
This makes it possible to compile OpenCV with for instance ndk-r16
Compiler message:
tif_unix.c:170:12: error: call to 'mmap' declared with attribute 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.
…DK_CCACHE)

To prevent this result:
    /usr/bin/ccache ccache <android-ndk-r16.1>/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc ...
with:
    ccache: error: Recursive invocation (the name of the ccache binary must be "ccache")
To use 'z' in Android.mk instead of absolute path from the build machine.
Avoids this error message with CMake 3.10:
CMake Error: CMake was unable to find a build program corresponding to "Ninja".
CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.

Related changes is that pkg-config tool is found (/usr/bin/pkg-config).
@opencv-pushbot opencv-pushbot merged commit d01a203 into opencv:master Jan 12, 2018
@PhilLab
Copy link
Copy Markdown
Contributor

PhilLab commented Jan 15, 2018

👍 Thank you for this, much appreciated !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenCV doesn't link on Android x86/x86_64 with ndk 16.0.4442984 with R_386_GOTOFF error.

5 participants