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

相关推荐
fakerth1 天前
OpenHarmony位置服务模块架构
操作系统·openharmony
fakerth22 天前
【OpenHarmony文件管理子系统】文件访问接口解析
操作系统·openharmony
特立独行的猫a22 天前
开源OpenHarmony润开鸿HH-SCDAYU800A开发板开箱体验
开源·harmonyos·openharmony·hh-scdayu800a
fakerth24 天前
【OpenHarmony文件管理子系统】文件访问接口mod_fileio解析
操作系统·openharmony
fakerth24 天前
【OpenHarmony文件管理子系统】文件访问接口mod_file解析
操作系统·openharmony
ShiMetaPi1 个月前
【ShiMetaPi M4-R1】上手:RK3568B2 |开源鸿蒙(OpenHarmony) 开发板上手指南
驱动开发·开源·鸿蒙系统·openharmony·南向开发
Monkey-旭1 个月前
鸿蒙 5.1 深度解析:ArkUI 4.1 升级与分布式开发新范式
分布式·wpf·harmonyos·arkts·openharmony·arkui
fakerth1 个月前
OpenHarmony介绍
操作系统·openharmony
雪域迷影2 个月前
Ubuntu22.04中搭建GN编译环境
github·openharmony·gn·ninja