Neptune w800開發版ubuntu linux環境編譯通過——如何搭建開發環境


 

Ubuntu開發環境准備

 https://device.harmonyos.com/cn/docs/ide/user-guides/install_ubuntu-0000001072959308

 

下載源碼Neptune-HarmonyOS-IOT-master.zip

代碼倉地址:

https://gitee.com/hihopeorg_group/neptune-harmony-os1.1-iot

https://gitee.com/hihopeorg_group

解壓后,待用。

 

 

下載工具包:csky-elfabiv2-tools-x86_64-minilibc-xxxxx.tar.gz

下載地址:https://occ.t-head.cn/community/download

選擇 工具 - 工具鏈-800 Series 中相應的版本

下載完成后將工具包拷貝到相應的目錄下,如~/Downloads/HarmonyOS

解壓后,配置環境變量

操作命令:

```
cp csky-elfabiv2-tools-x86_64-minilibc-xxxxx.tar.gz /Downloads/HarmonyOS
cd /Downloads/HarmonyOS
tar xzvf csky-elfabiv2-tools-x86_64-minilibc-xxxxx.tar.gz
```

在~/.bashrc文件的最后一行添加

```
export PATH=~/Downloads/HarmonyOS/csky-elfabiv2-tools-x86_64-minilibc-20210423/bin:$PATH
```

20210423這個版本號在變化,請注意匹配。

 

下載:gcc-csky-abiv2-linux

https://gitee.com/alios-things/gcc-csky-abiv2-linux

unzip解壓后,添加環境變量。

vim ~/.bashrc,打開后,按i鍵,移動到底部,添加如下語句:

export PATH=~/Downloads/gcc-csky-abiv2-linux-master/main/bin:$PATH

再按鍵盤左上角ESC,取消插入功能。再按: (兩個點表示冒號),再收入wq,回車保存。

再輸入source ~/.bashrc,更新環境變量的配置文件。

 

cd 進入Neptune-HarmonyOS-IOT-master目錄,可以看到build.py,

編譯源碼

 輸入:python build.py w800

 


make[2]: 進入目錄“/home/txwtech/Downloads/Neptune-HarmonyOS-IOT-master/vendor/winnermicro/w800/src/app/cJSON”
make[2]: 離開目錄“/home/txwtech/Downloads/Neptune-HarmonyOS-IOT-master/vendor/winnermicro/w800/src/app/cJSON”
make[1]: 離開目錄“/home/txwtech/Downloads/Neptune-HarmonyOS-IOT-master/vendor/winnermicro/w800/src/app”
libs has been updated.
LINK     w800.elf
OBJCOPY  w800.bin
generate normal image completed.
compress binary completed.
generate compressed image completed.
build finished!
Build success!
[170/170] STAMP obj/vendor/winnermicro/w800/build_w800_sdk.stamp
ohos w800 build success!


燒錄教程參考:

https://www.cnblogs.com/txwtech/p/15086282.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM