openh264 icon indicating copy to clipboard operation
openh264 copied to clipboard

make OS=android do not work osx

Open kepocnhh opened this issue 5 years ago • 4 comments

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.

kepocnhh avatar Mar 22 '20 00:03 kepocnhh

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>
         ^~~~~~~~~~~~~

kepocnhh avatar Mar 22 '20 00:03 kepocnhh

So it has been resolved?

huili2 avatar Dec 08 '22 02:12 huili2

please specify the NDKROOT and NDKLEVEL at the same time. e.g make OS=anroid NDKROOT=your-path/to/android-ndk-r20 NDKLEVEL=21

GuangweiWang avatar Dec 08 '22 02:12 GuangweiWang

Will close this if no update.

huili2 avatar Dec 28 '22 01:12 huili2