docs: update mpp developer guide markdown

modify compiling part

Change-Id: Ia24e1371cd0d31c268ad1e4f946c590ac7a8e6e1
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
This commit is contained in:
xueman.ruan
2023-12-11 10:09:18 +08:00
committed by Herman Chen
parent 7c721dca78
commit 32148cb689
3 changed files with 96 additions and 14 deletions

View File

@@ -1,11 +1,89 @@
============== r16 ==============
============== r25c ==============
* ndk_r16
* ndk_r25c
* https://dl.google.com/android/repository/android-ndk-r16-windows-x86.zip
* https://dl.google.com/android/repository/android-ndk-r16-windows-x86_64.zip
* https://dl.google.com/android/repository/android-ndk-r16-darwin-x86_64.zip
* https://dl.google.com/android/repository/android-ndk-r16-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r25c-windows.zip
https://dl.google.com/android/repository/android-ndk-r25c-darwin.dmg
https://dl.google.com/android/repository/android-ndk-r25c-linux.zip
============== r24 ==============
* ndk_r24
https://dl.google.com/android/repository/android-ndk-r24-darwin.dmg
https://dl.google.com/android/repository/android-ndk-r24-linux.zip
https://dl.google.com/android/repository/android-ndk-r24-windows.zip
============== r23c ==============
* ndk_r23c
https://dl.google.com/android/repository/android-ndk-r23c-windows.zip
https://dl.google.com/android/repository/android-ndk-r23c-darwin.dmg
https://dl.google.com/android/repository/android-ndk-r23c-linux.zip
============== r22b ==============
* ndk_r22b
https://dl.google.com/android/repository/android-ndk-r22-darwin-x86_64.dmg
https://dl.google.com/android/repository/android-ndk-r22b-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r22b-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r22b-windows-x86_64.zip
============== r21e ==============
* ndk_r21e
https://dl.google.com/android/repository/android-ndk-r21e-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r21-darwin-x86_64.dmg
https://dl.google.com/android/repository/android-ndk-r21e-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r21e-windows-x86_64.zip
============== r20b ==============
* ndk_r20b
https://dl.google.com/android/repository/android-ndk-r20b-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r20b-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r20b-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r20b-linux-x86_64.zip
============== r19c ==============
* ndk_r19c
https://dl.google.com/android/repository/android-ndk-r19c-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r19c-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r19c-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r19c-linux-x86_64.zip
============== r18b ==============
* ndk_r18b
https://dl.google.com/android/repository/android-ndk-r18b-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r18b-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r18b-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r18b-linux-x86_64.zip
============== r17c ==============
* ndk_r17c
https://dl.google.com/android/repository/android-ndk-r17c-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r17c-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r17c-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r17c-linux-x86_64.zip
============== r16b ==============
* ndk_r16b
https://dl.google.com/android/repository/android-ndk-r16b-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r16b-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r16b-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r16b-linux-x86_64.zip
============== r15c ==============

View File

@@ -1087,15 +1087,17 @@ MPP源代码发布官方地址<https://github.com/rockchip-linux/mpp>
## 5.2 编译
MPP源代码编译脚本为cmake需要依赖2.8.12以上的版本,建议使用2.8.12版,使用高版本的cmake工具可能会产生较多的warning。
MPP源代码编译脚本为cmake需要依赖2.8.12以上的版本,建议使用3.x版。cmake-3.28版本验证通过。使用高版本的cmake工具可能会产生较多的warning。
### 5.2.1 Android平台交叉编译
编译Android库需要使用ndk环境默认脚本使用android-ndk-r10d进行编译。
编译Android库需要使用ndk环境默认脚本使用android-ndk-r16b进行编译。android-ndk-r16b和android-ndk-r25c均验证通过前者适用于android 14之前的sdk后者适用于android 14及其之后的sdk。
r10d ndk的下载路径可以在源代码目录下的build/android/ndk_links.md文件里查找。
r16b ndk为例进行说明:
把下载好的ndk解压到/home/pub/ndk/android-ndk-r10d或者手动修改build/android/目录下env_setup.sh脚本的ANDROID_NDK变量路径
r16b ndk的下载路径可以在源代码目录下的build/android/ndk_links.md文件里查找
把下载好的ndk解压到/home/pub/ndk/android-ndk-r16b或者手动修改build/android/目录下env_setup.sh脚本的ANDROID_NDK变量路径。
进入build/android/arm/目录运行make-Android.bash脚本生成编译用Makefile运行make j16进行编译。

View File

@@ -1035,15 +1035,17 @@ The command of download: git clone [https://github.com/rockchip-linux/mpp.git](h
# 5.2 Compiling
The MPP source code compilation script is cmake. It depends on the version above 2.8.12. It is recommended to use the 2.8.12 version. Using the high version of the cmake tool may generate more warnings.
The MPP source code compilation script is cmake. It depends on the version above 2.8.12. It is recommended to use the 3.x version. cmake-3.28 version verification passed. Using the high version of the cmake tool may generate more warnings.
## 5.2.1 Android platform cross-compiling
Compiling the Android library requires the ndk environment, and the default script is compiled using android-ndk-r10d.
Compiling the Android library requires the ndk environment, and the default script is compiled using android-ndk-r16b. Both android-ndk-r16b and android-ndk-r25c are verified. The former applies to sdks below android 14, and the latter applies to sdks above android 14.
The download path for r10d ndk can be found in the build/android/ndk_links.md file in the source directory.
Take the r16b ndk for example:
Unzip the downloaded ndk to /home/pub/ndk/android-ndk-r10d, or manually modify the ANDROID_NDK variable path of the env_setup.sh script in the build/android/ directory.
The download path for r16b ndk can be found in the build/android/ndk_links.md file in the source directory.
Unzip the downloaded ndk to /home/pub/ndk/android-ndk-r16b, or manually modify the ANDROID_NDK variable path of the env_setup.sh script in the build/android/ directory.
Go to the build/android/arm/ directory, run the make-Android.bash script to generate the Makefile for compilation, and run make j16 to compile.