See full Chinese explanation blog here: https://zhangtom.com/2017/07/11/交叉编译带RTMP模块的Nginx到Android/
Succeed on macOS Sierra 10.12.5
- Download latest stable version source code tarball of Nginx (
make_nginx.sh
will extract it automatically) - Download latest stable version source code of nginx-rtmp-module
- Download and extract latest LTS version source code of openssl
- Download this repo and place source codes as following:
. ├── Setenv-android.sh ├── glob │ ├── glob.c │ └── glob.h ├── make_nginx.sh ├── make_openssl.sh │ ├── nginx-1.12.0.tar.gz ├── nginx-rtmp-module └── openssl-1.1.0f
- Download and install
Android SDK
if never installed before, make sureadb
path is added to environment PATH and it works well - Download and install
Android NDK
if never installed before, modifySetenv-android.sh
if needed (ANDROID_NDK_ROOT
,_ANDROID_EABI
,_ANDROID_API
, etc.)
execute these commands in Terminal:
# the leading period is important
. ./make_openssl.sh
. ./make_nginx.sh
Setenv-android.sh
: OpenSSL license
glob.c
and glob.h
: BSD-3-Clause License
other files
: WTFPL