Rtmpdump编译出64位带有加密库
版本要对,能少走很多弯路
Ubantu18.0.4
NDK 17
Android SDK (包含platform 21)
JAVA SDK 1.8
polarssl-1.2.0-gpl
rtmpdump-master-2.4
配置JAVA SDK、SDK和NDK,以及NDK交叉编译环境
gedit /etc/profile
#jdk1.8
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.: J A V A H O M E / l i b : {JAVA_HOME}/lib: JAVAHOME/lib:{JRE_HOME}/lib
export PATH=.: J A V A H O M E / b i n : {JAVA_HOME}/bin: JAVAHOME/bin:PATH
#android stdio
export ANDROID_SDK_HOME=/home/Android/Sdk
export PATH=
P
A
T
H
:
PATH:
PATH:ANDROID_SDK_HOME/tools:
A
N
D
R
O
I
D
S
D
K
H
O
M
E
/
p
l
a
t
f
o
r
m
−
t
o
o
l
s
:
ANDROID_SDK_HOME/platform-tools:
ANDROIDSDKHOME/platform−tools:PATH
#ndk
export NDK=/home/android-ndk-r17c/
#export ANDROID_NDK=/home/Android/Sdk/ndk/20.1.5948944
export PATH=
P
A
T
H
:
PATH:
PATH:NDK:KaTeX parse error: Expected 'EOF', got '#' at position 6: PATH #̲ndk交叉编译 export …PATH:/home/rtmpdump/android-toolchain/bin:$PATH
export C_INCLUDE_PATH=/usr/local/include/
export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/local/include/
编译polarssl-1.2.0-gpl
/home/android-ndk-r17c/build/tools/make-standalone-toolchain.sh --toolchain=aarch64-linux-android-4.9 platform=android-21 --install-dir=/home/rtmpdump/android-toolchain
make CC=aarch64-linux-android-gcc APPS=
make install DESTDIR=/home/rtmpdump/android-toolchain/sysroot
编译rtmpdump-master
make SYS=android CROSS_COMPILE=aarch64-linux-android- INC=“-I/home/rtmpdump/android-toolchain/sysroot/include” CRYPTO=POLARSSL install DESTDIR=/home/rtmpdump_librtmp-android/rtmpdump-master/librtmp/libs