-
推荐系统Ubuntu 2204
-
必须安装的软件
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
-
修改/usr/bin/repo文件,源改成清华
REPO_URL = "https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/"
-
设置~/.pip/pip.config
[global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install] trusted-host = https://pypi.tuna.tsinghua.edu.cn -
安装hb工具
python3 -m pip install --user build/hb
-
sh改为bash shell
sudo dpkg-reconfigure dash
-
如果运行hb build报错,尝试运行hb env 看看提示,是不是有哪个组件没有安装?按照提示安装。
OpenHarmony系统编译环境
ssmile2023-11-19 5:02
相关推荐
小白学鸿蒙12 小时前
【无标题】硅谷魔术师5 天前
openHarmony有没有类似安卓的scrcpy连接工具熊猫钓鱼>_>6 天前
Kotlin Multiplatform for OpenHarmony 实战:为 Landscapist 实现图片加载适配熊猫钓鱼>_>6 天前
开源鸿蒙平台 KMP 三方库 KStore 适配全流程:从 ohosArm64 target 到真机文件持久化验证熊猫钓鱼>_>8 天前
Kotlin Multiplatform for OpenHarmony 实战:为 kotlin-inject 实现依赖注入适配熊猫钓鱼>_>9 天前
Kotlin Multiplatform for OpenHarmony 实战:为 KMPNotifier 实现 OpenHarmony 本地通知引擎fellow999 天前
Electron + pnpm 在鸿蒙应用里跑起来熊猫钓鱼>_>10 天前
Kotlin Multiplatform for OpenHarmony 实战:为 MVIKotlin 实现单向数据流适配EatFan12 天前
Flutter 鸿蒙适配实践 2026:从环境搭建、混合渲染到 OpenTelemetry 性能基建行走的小派15 天前
OpenHarmony 音频应用开发:实时录音、重点标记与本地回放