OpenHarmony开发者论坛

标题: 【编译报错】【mesa3d】编译过程报错 Python (3.x) mako module >= 0.8.0 required to build mesa [打印本页]

作者: 润开鸿_闻飞    时间: 2024-6-4 10:35
标题: 【编译报错】【mesa3d】编译过程报错 Python (3.x) mako module >= 0.8.0 required to build mesa
[md][itopen组织](https://gitee.com/itopen)
1、提供OpenHarmony优雅实用的小工具
2、手把手适配riscv + qemu + linux的三方库移植
3、未来计划riscv + qemu + ohos的三方库移植 + 小程序开发
4、一切拥抱开源,拥抱国产化

**【问题描述】**
按照OpenHarmony官方文档编译mesa3d命令报错如下

```
python ohos/build_ohos.py ~/OpenHarmony/beta3.2/ rk3568 ~/OpenHarmony/beta3.2/third_party/mesa3d
```

```
meson.build:982:2: ERROR: Problem encountered: Python (3.x) mako module >= 0.8.0 required to build mesa.

A full log can be found at /home/wen_fei/OpenHarmony/beta3.2/third_party/mesa3d/build-ohos/meson-logs/meson-log.txt
ninja: Entering directory `build-ohos'
ninja: error: loading 'build.ninja': No such file or directory
ninja: Entering directory `build-ohos'
ninja: error: loading 'build.ninja': No such file or directory
```

![输入图片说明](https://foruda.gitee.com/images/ ... fa53b54_7830586.png "屏幕截图")
**【问题分析】**
python中没有mako模块
**【问题处理】**
执行如下命令安装mako模块

```
pip3 install mako
```
[/md]




欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5