# mpp_oh **Repository Path**: OpenHarmony_rk_equipment_transplantation/mpp_oh ## Basic Information - **Project Name**: mpp_oh - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 3 - **Created**: 2025-04-15 - **Last Updated**: 2025-05-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 本文将记录笔者交叉编译rockchip MPP 1.0.8版本的过程。此文章默认认为读者具有一定OpenHarmony开发经验,熟悉OpenHarmony ndk交叉编译。 开源地址:https://gitee.com/OpenHarmony_rk_equipment_transplantation/mpp_oh ## 编译64位rockchip MPP库 1.下载mpp 1.8版本 ``` git clone -b 1.0.8 https://git ee.com/OpenHarmony_rk_equipment_transplantation/rk_mpp.git ``` 2.修改rk_mpp/build/linux/aarch64/make-Makefiles.bash文件 ![image.png](https://dl-harmonyos.51cto.com/images/202504/64565e902b375018c45729a5caec60c4417b8d.png?x-oss-process=image/resize,w_820,h_477) ``` # -DCMAKE_TOOLCHAIN_FILE=./arm.linux.cross.cmake \ # 修改为 OpenHarmony ndk本地的交叉编译配置文件 -DCMAKE_TOOLCHAIN_FILE=/root/OpenHarmony/temp1/linux/native/build/cmake/ohos.toolchain.cmake \ # 增加安装目录 -DCMAKE_INSTALL_PREFIX=/root/OpenHarmony/temp1/temp/mpp_output \ ``` ![image.png](https://dl-harmonyos.51cto.com/images/202504/e3954d983269b40de53662e688f16c908578b3.png?x-oss-process=image/resize,w_820,h_939) 3.然后生成makefile,编译安装 ``` ./make-Makefiles.bash make -j 4 make install ``` ![image.png](https://dl-harmonyos.51cto.com/images/202504/92bbada48809b10ce451481f4c99eea239174d.png?x-oss-process=image/resize,w_820,h_1389) ## 编译32位rockchip MPP库 1.修改rk_mpp/build/linux/arm/make-Makefiles.bash 2.修改一下/root/OpenHarmony/temp1/linux/native/build/cmake/ohos.toolchain.cmake脚本,把他修改默认编译32位 ![alt text](image.png)