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

相关推荐
songze_lee5 天前
openharmony系统移植之gpu mesa3d适配
openharmony·mesa3d·panfrost·mali·mail-t628
Unity官方开发者社区5 天前
UUG杭州站 | 团结引擎1.5.0 OpenHarmony新Feature介绍
openharmony·团结引擎1.5
jklinux13 天前
OpenHarmony GPIO应用开发-LED
openharmony·gpio
AIGC魔法师14 天前
轮播图导航组件 | 纯血鸿蒙组件库AUI
开发语言·harmonyos·openharmony·鸿蒙开发·纯血鸿蒙·arkui / ets·鸿蒙组件库aui
智驾16 天前
OpenharmonyOS+RK3568,【编译&烧录】
编译·openharmony·rk3568·烧录
雪域迷影17 天前
OpenHarmony全局资源调度管控子系统之内存管理部件
openharmony
jklinux18 天前
OpenHarmony-简单的HDF驱动
openharmony·hdf驱动
晚秋大魔王19 天前
openharmony 4.1 运行busybox工具包(保姆教程)
openharmony·busybox·开源鸿蒙
雪域迷影24 天前
OpenHarmony之电源模式定制开发指导
openharmony·电源模式
智驾25 天前
Openharmony 和 HarmonyOS 区别?
harmonyos·openharmony