OpenHarmony系统编译环境

  1. 推荐系统Ubuntu 2204

  2. 必须安装的软件

    apt-get install curl build-essential gcc g++ make ninja-build cmake libffi-dev e2fsprogs pkg-config flex bison perl bc openssl libssl-dev libelf-dev binutils binutils-dev libdwarf-dev u-boot-tools mtd-utils cpio device-tree-compiler net-tools openssh-server git python3-pip git-lfs repo ccache

  3. 修改/usr/bin/repo文件,源改成清华

    REPO_URL = "https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/"

  4. 设置~/.pip/pip.config

    [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple
    [install] trusted-host = https://pypi.tuna.tsinghua.edu.cn

  5. 安装hb工具

    python3 -m pip install --user build/hb

  6. sh改为bash shell

    sudo dpkg-reconfigure dash

  7. 如果运行hb build报错,尝试运行hb env 看看提示,是不是有哪个组件没有安装?按照提示安装。

相关推荐
Industio_触觉智能2 天前
在瑞芯微RK平台下的开源鸿蒙OpenHarmony分区镜像/散包固件烧录
嵌入式硬件·openharmony·烧录·开源鸿蒙·瑞芯微·鸿蒙开发板·鸿蒙嵌入式
nullregedit16 天前
OpenHarmony 小鸿 AI 开发实战 10:CI1302 语音上行的 UART 帧、Opus 与 VAD
openharmony·语音交互·开源鸿蒙·ws63·ci1302
nullregedit20 天前
OpenHarmony 小鸿 AI 开发实战 04:WS63 BurnTool 烧录、Loader、导出与回滚
openharmony·嵌入式开发·开源鸿蒙·ws63·burntool
nullregedit20 天前
OpenHarmony 小鸿 AI 开发实战 05:烧录成功仍黑屏的 GPIO14/PWR_ON 故障复盘
openharmony·gpio·故障排查·开源鸿蒙·ws63
nullregedit21 天前
OpenHarmony 小鸿 AI 开发实战 01:先认对工程,WS63 与 ESP32-P4 路径怎么选
openharmony·嵌入式开发·开源鸿蒙·esp32-p4·ws63
北京麟卓1 个月前
卓奕引擎×OrangePi 5B开发板 | 面向开源鸿蒙的一站式安卓兼容验证方案
openharmony·安卓应用兼容
Industio_触觉智能1 个月前
开源鸿蒙OpenHarmony再进阶,OneConnect规范即将升级为国家级行业标准
嵌入式硬件·物联网·硬件架构·智能硬件·openharmony·开源鸿蒙
北京麟卓1 个月前
鸿蒙平板生态建设遇阻?卓奕引擎:安卓应用快速迁移+迁移成本直降80%以上
openharmony·安卓兼容
Industio_触觉智能2 个月前
瑞芯微RK3576落地智能农业新生态,鸿蒙农机平板应用场景拓展
嵌入式硬件·openharmony·开源鸿蒙·核心板·鸿蒙开发板·rk3576·农机平板
fakerth2 个月前
【OpenHarmony】communication_ipc模块
操作系统·openharmony