Giter Club home page Giter Club logo

cross-compile-nginx-with-rtmp-module-for-android's Introduction

Cross Compile Nginx with RTMP Module for Android

See full Chinese explanation blog here: https://zhangtom.com/2017/07/11/交叉编译带RTMP模块的Nginx到Android/

Succeed on macOS Sierra 10.12.5

Prerequisites

  • 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 sure adb path is added to environment PATH and it works well
  • Download and install Android NDK if never installed before, modify Setenv-android.sh if needed (ANDROID_NDK_ROOT, _ANDROID_EABI, _ANDROID_API, etc.)

Build

execute these commands in Terminal:

# the leading period is important
. ./make_openssl.sh
. ./make_nginx.sh

License

Setenv-android.sh: OpenSSL license
glob.c and glob.h: BSD-3-Clause License
other files: WTFPL

cross-compile-nginx-with-rtmp-module-for-android's People

Contributors

tatowilson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.