make OS=android do not work osx
My goal is to build the openh264 library for the android project. For the following processor types: arm64-v8a, armeabi-v7a, x86, x86_64.
macOS Mojave version 10.14.6 (18G87)
clang++ Apple LLVM version 10.0.1
NASM version 2.14.02
Android SDK platform version 29_r04
Android tools version 25.2.5
Android NDK version r21
I start assembly as it is written in readme:
make OS=android NDKROOT=$ANDROID_NDK_ROOT TARGET=android-29
And I get the following error:
error: unknown target CPU 'armv7-a'
Please tell me what needs to be done to solve this problem.
If I add the line NDK_TOOLCHAIN_VERSION=clang, as advised here 3051, then I get another error:
In file included from /Users/kepocnhh/Library/Android/ndk/sources/android/cpufeatures/cpu-features.c:67:
In file included from /Users/kepocnhh/Library/Android/ndk/sysroot/usr/include/errno.h:37:
/Users/kepocnhh/Library/Android/ndk/sysroot/usr/include/linux/errno.h:19:10: fatal error: 'asm/errno.h' file not found
#include <asm/errno.h>
^~~~~~~~~~~~~
So it has been resolved?
please specify the NDKROOT and NDKLEVEL at the same time. e.g make OS=anroid NDKROOT=your-path/to/android-ndk-r20 NDKLEVEL=21
Will close this if no update.