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 看看提示,是不是有哪个组件没有安装?按照提示安装。

相关推荐
fakerth11 小时前
【OpenHarmony】sensors_miscdevice小器件模块架构
架构·操作系统·openharmony
fakerth2 天前
【OpenHarmony】医疗传感器模块架构
架构·操作系统·openharmony
fakerth3 天前
【OpenHarmony】AI引擎模块架构
人工智能·架构·openharmony
fakerth3 天前
【OpenHarmony】文件访问接口模块架构
架构·操作系统·openharmony
Industio_触觉智能3 天前
RK3576开发板/核心板应用分享之开源鸿蒙
鸿蒙·openharmony·嵌入式开发·开源鸿蒙·鸿蒙开发板·鸿蒙南向·xts
fakerth3 天前
【OpenHarmony】存储管理服务模块架构
架构·操作系统·openharmony
盆鱼宴之武冈分宴3 天前
flutter openharmony项目新手从0到1的保姆级教程
flutter·openharmony
Industio_触觉智能4 天前
开源鸿蒙6.1和8.1版本被确定为LTS建议版本,最新路标正式发布!-转自开源鸿蒙OpenHarmony社区
harmonyos·openharmony·开源鸿蒙
猫林老师4 天前
OpenHarmony南向开发环境搭建 - 深入理解Ubuntu、DevEco Device Tool与HPM
linux·运维·ubuntu·harmonyos·openharmony
fakerth5 天前
【OpenHarmony】分布式文件服务模块架构
分布式·架构·操作系统·openharmony