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

相关推荐
是Yu欸5 天前
鸿蒙PC移植:2048 从网页小游戏到 AI 桌面应用
大数据·人工智能·算法·数据挖掘·openharmony·codex
wei_shuo12 天前
鸿蒙平台 GnuWin32 Unix 工具集适配实战:基于 Electron 壳方案的 14 款文本处理工具真实实现
openharmony
wei_shuo13 天前
鸿蒙平台 Haroopad Markdown 编辑器适配实战:基于 Electron 壳方案的实时预览写作工具
openharmony
wei_shuo13 天前
鸿蒙平台 Cypress 前端测试框架适配实战:基于 Electron 壳方案的纯 JavaScript BDD 测试引擎开发
openharmony
wei_shuo13 天前
鸿蒙平台 ES Agent REST API 测试工具适配实战:基于 Electron 壳方案的跨平台 HTTP 调试客户端开发
openharmony
wei_shuo13 天前
鸿蒙平台 H2 SQL 工作台适配实战:基于 Electron 壳方案的 Navicat 风格数据库管理工具开发
openharmony
wei_shuo14 天前
Flutter 三方库 OpenHarmony 鸿蒙适配实战:in_app_update 应用内更新插件 ArkTS 原生适配全流程
openharmony·in_app_update
Java的搬运工16 天前
HarmonyOS ArkUI V2 实战:Schema 驱动表单、2in1 适配与实时通信
harmonyos·arkts·openharmony·harmonyos next·表单校验·arkui v2·2in1
熊猫钓鱼>_>16 天前
Flutter app_settings 鸿蒙适配实战:Intent 体系到 Want 的跨越
flutter·华为·harmonyos·openharmony·intent·want
哈__18 天前
Flutter 3.44.9 + OpenHarmony7:image_cropper三方库 图片裁剪的应用
flutter·openharmony