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_触觉智能5 天前
【开源鸿蒙-AVCodec Kit】音视频编解码封装解封装部件介绍,转自开源鸿蒙官媒OpenAtom OpenHarmony
harmonyos·视频编解码·openharmony·开源鸿蒙
ShiMetaPi12 天前
基于M4-R1开发板的OpenHarmony开发实战丨创建第一个应用工程
嵌入式硬件·开放原子·鸿蒙系统·openharmony·开源鸿蒙·北向开发
fakerth21 天前
【OpenHarmony】sensors_miscdevice小器件模块架构
架构·操作系统·openharmony
fakerth22 天前
【OpenHarmony】医疗传感器模块架构
架构·操作系统·openharmony
fakerth23 天前
【OpenHarmony】AI引擎模块架构
人工智能·架构·openharmony
fakerth23 天前
【OpenHarmony】文件访问接口模块架构
架构·操作系统·openharmony
Industio_触觉智能23 天前
RK3576开发板/核心板应用分享之开源鸿蒙
鸿蒙·openharmony·嵌入式开发·开源鸿蒙·鸿蒙开发板·鸿蒙南向·xts
fakerth23 天前
【OpenHarmony】存储管理服务模块架构
架构·操作系统·openharmony
盆鱼宴之武冈分宴24 天前
flutter openharmony项目新手从0到1的保姆级教程
flutter·openharmony
Industio_触觉智能24 天前
开源鸿蒙6.1和8.1版本被确定为LTS建议版本,最新路标正式发布!-转自开源鸿蒙OpenHarmony社区
harmonyos·openharmony·开源鸿蒙