OpenHarmony开发者论坛

标题: 编译full-SDK [打印本页]

作者: lom    时间: 2023-11-7 09:17
标题: 编译full-SDK
[md]【问题描述】

如何编译full-sdk

【运行环境】

硬件:RK3568

ROM版本:OpenHarmony 3.2 Beta5

DevEvoStudio版本:

SDK版本:API 9

[/md]
作者: 深开鸿_张亮亮    时间: 2023-11-7 10:47
[md]## 编译full-SDK

**前提条件**

1. 需注册码云SSH公钥,具体请参考 http://gitee.com/help/articles/4191
2. 配置服务器环境,具体请参考[搭建开发环境](https://docs.openharmony.cn/page ... -ide-env-ubuntu.md/)

**下载和编译命令**

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

[/md]
作者: edice    时间: 2023-11-7 16:51
[md]前提条件

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

```
2. 配置服务器环境,具体请参考[搭建开发环境](https://gitee.com/openharmony/do ... t-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/目录下的文件即可

[/md]




欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5