Neptune Harmony环境搭建


Ubuntu shell改为bash

ls -l /bin/sh #查看shell
sudo dpkg-reconfigure dash #No

安装 DevEco Device Tool

用于HarmonyOS源码的编译、烧录、调试插件工具

安装 Neptune 工具链

#!/bin/bash

mkdir ~/Neptune_tools

wget https://repo.huaweicloud.com/harmonyos/compiler/gn/1717/linux/gn-linux-x86-1717.tar.gz
tar -xvf gn-linux-x86-1717.tar.gz -C ~/Neptune_tools

wget https://repo.huaweicloud.com/harmonyos/compiler/ninja/1.9.0/linux/ninja.1.9.0.tar
tar -xvf ninja.1.9.0.tar -C ~/Neptune_tools

wget https://repo.huaweicloud.com/harmonyos/compiler/clang/10.0.1-62608/linux/llvm.tar.gz
tar -zxvf llvm.tar.gz -C ~/Neptune_tools

wget https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/resource//1678184450048/csky-elfabiv2-tools-x86_64-minilibc-20230301.tar.gz
tar -zxvf csky-elfabiv2-tools-x86_64-minilibc-20230301.tar.gz -C ~/Neptune_tools

添加环境变量

代码下载

git clone https://gitee.com/hihopeorg_group/neptune-harmony-os1.1-iot.git
  • 编译
python build.py w800
posted @ 2023-07-18 19:08  D·Kingson.Mo  阅读(24)  评论(0)    收藏  举报