| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| pkgconfig_template/ | 22-Oct-2025 | - | 198 | 162 | ||
| BUILD.gn | D | 22-Oct-2025 | 2.7 KiB | 107 | 96 | |
| README_zh.md | D | 22-Oct-2025 | 2 KiB | 44 | 38 | |
| build_mesa3d.py | D | 22-Oct-2025 | 3.4 KiB | 91 | 55 | |
| build_ohos.py | D | 22-Oct-2025 | 2.2 KiB | 44 | 20 | |
| build_ohos64.py | D | 22-Oct-2025 | 2.5 KiB | 45 | 21 | |
| build_wayland_and_gbm.py | D | 22-Oct-2025 | 2.1 KiB | 45 | 20 | |
| meson_cross_process.py | D | 22-Oct-2025 | 4.7 KiB | 135 | 98 | |
| meson_cross_process64.py | D | 22-Oct-2025 | 7 KiB | 202 | 163 | |
| modifyDtsi.py | D | 22-Oct-2025 | 4.3 KiB | 113 | 72 |
README_zh.md
1### 编译环境依赖: 21. meson 3mesa是使用meson进行编译的并要求版本>= 0.52,可执行以下命令安装meson 4``` 5sudo apt-get install python3 python3-pip ninja-build 6pip3 install --user meson 7``` 82. pkg-config 9meson配置编译环境时会使用pkg-config查找依赖库和头文件,可以执行以下命令安装 10``` 11sudo apt-get install pkg-config 12``` 13 14### 编译步骤如下: 151. 下载openharmony整个工程代码,并完成编译 162. 因为有些依赖库是静态库,整编后会被删除需要执行以下命令单独编译以rk3568为例 17``` 18./build.sh --product-name=rk3568 --build-target=expat 19./build.sh --product-name=rk3568 --build-target=libwayland_server.0 20./build.sh --product-name=rk3568 --build-target=libwayland_client.0 21./build.sh --product-name=rk3568 --build-target=libwayland_server 22./build.sh --product-name=rk3568 --build-target=libwayland_client 23``` 24 253. 编译mesa 26编译鸿蒙系统下的mesa库时,需要配置鸿蒙的交叉编译链和依赖的库,相关配置和编译步骤已经封装到ohos目录下的python脚本中,编译时只需执行 build_wayland_and_gbm.py 脚本即可,执行命名需要输入三个参数 27 28| 参数 | 说明 | 29| ---- | ---- | 30| arg1 | openharmony代码路径 | 31| arg2 | 产品名字,实际上为out目录下存放系统编译结果的那个目录 如hi3516dv300 或则 rk3568, 注: LTS3.0 的版本必须是 ohos-arm-release| 32| arg3 | mesa 源码路径 | 33 34示例如下: 35~/openharmony 是openharmony源码路径, rk3568是对应的产品输出目录,~/mesa3d为mesa源码路径, 执行完命令后会生成一个名叫builddir的文件夹,该文件夹是mesa的编译目录. 编译完成后相关的库存放在builddir/install/lib 下 36 37``` 38cd ~/mesa3d 39python ohos/build_ohos.py ~/openharmony rk3568 ~/mesa3d 40python ohos/build_ohos64.py ~/ohos_50 rpi4 ~/ohos_50/third_party/mesa3d-opc 41python ohos/build_ohos64.py ~/ohos_40 beryllium ~/ohos_40/third_party/mesa3d 42python ohos/build_ohos64.py ~/ohos_40 sagit ~/ohos_40/third_party/mesa3d 43 44```