openharmony 鸿蒙 full-sdk-compile-guide

2023-06-24 浏览 (1371)

如何编译full-SDK

full-SDK是提供OpenHarmony全量接口的SDK,包含了系统应用所需要的高权限API,用于厂商开发应用。

从OpenHarmony3.2Beta5版本开始,不再随版本提供full-SDK。如有需要,可通过全量源码自行编译。

编译full-SDK

前提条件

  1. 需注册码云SSH公钥,具体请参考 http://gitee.com/help/articles/4191
  2. 配置服务器环境,具体请参考搭建开发环境

下载和编译命令

  1. 初始化manifest:repo init -u https://gitee.com/openharmony/manifest.git -b $manifest_branch --no-repo-verify --repo-url=https://gitee.com/oschina/repo --no-clone-bundle
  2. 根据上面下载的manifest仓进行下载代码:repo sync -c -d --force-sync
  3. 预编译:yes y|apt install libxinerama-dev libxcursor-dev libxrandr-dev libxi-dev && rm -rf prebuilts/clang/ohos/darwin-x86_64/clang-480513 && rm -rf prebuilts/clang/ohos/windows-x86_64/clang-480513 && rm -rf prebuilts/clang/ohos/linux-x86_64/clang-480513 && apt-get update -qqy && apt-get install doxygen -y --force-yes
  4. 编译windows:./build.sh --product-name ohos-sdk
  5. 编译mac:./build.sh --product-name ohos-sdk --gn-args full_mini_debug=false --keep-ninja-going --gn-args=is_use_check_deps=false

编译成功后导出out/sdk/packages/ohos-sdk/目录下的文件即可

替换SDK

full-SDK编译完成后需要在DevEcoStudio替换使用,具体请参考full-SDK替换指南

你可能感兴趣的鸿蒙文章

harmony 鸿蒙常见问题

harmony 鸿蒙程序访问控制开发常见问题

harmony 鸿蒙应用模型常见问题

harmony 鸿蒙ArkTS语言模块化加载异常常见问题

harmony 鸿蒙ArkTS语言基础类库开发常见问题

harmony 鸿蒙ArkUI动画/交互事件开发常见问题(ArkTS)

harmony 鸿蒙ArkTS语法使用常见问题

harmony 鸿蒙ArkUI组件开发常见问题(ArkTS)

harmony 鸿蒙ArkUI框架开发常见问题(JS)

harmony 鸿蒙ArkUI布局开发常见问题(ArkTS)

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/91160f9a059c450cab61e05dcb16502f