一、编译librtmp 下载librtmp源码,在GitHub上下载: 可以用git下载: git clone https://github.com/yixia/librtmp.git 编译librtmp脚本: #!/bin/bash NDK_ROOT=/root/ndk/android-ndk-r17c CPU=arm-linux-androideabi TOOLCHAIN=$NDK_ROOT/toolchains/$CPU-4.9/prebuilt/linux-x86_64 export XCFLAGS=-isysroot $NDK_ROOT/sysroot -isystem $ND