• Lv0
    粉丝2

积分111 / 贡献0

提问13答案被采纳5文章0

编译full-SDK

深开鸿_张亮亮

沙发 发表于 2023-11-7 10:47:29

编译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 && bash build/prebuilts_download.sh -ndk && apt-get update -qqy && apt-get install doxygen -y --force-yes
  4. 编译:./build.sh --product-name ohos-sdk

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

edice

板凳 发表于 2023-11-7 16:51:17

前提条件

1.需注册码云SSH公钥,具体请参考 http://gitee.com/help/articles/4191

2. 配置服务器环境,具体请参考[搭建开发环境](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/quickstart-ide-env-ubuntu.md)

下载和编译命令

● 初始化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

             ● 根据上面下载的manifest仓进行下载代码:repo sync -c -d --force-sync

             ● 预编译: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

             ● 编译windows:./build.sh --product-name ohos-sdk

             ● 编译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/目录下的文件即可

Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

返回顶部