鸿蒙开发板Neptune (二) —— 开发环境
<h4 align="center" style="text-align:center; margin-top:19px; margin-bottom:19px"><span style="font-size:14pt"><span style="155%"><span style="font-family:Arial"><span style="font-weight:bold"><b><span style="font-size:14.0000pt"><span style="font-family:黑体"><span style="font-weight:bold"><font face="黑体">鸿蒙开发板</font>Neptune</span></span></span></b><b> </b><b><span style="font-size:14.0000pt"><span style="font-family:黑体"><span style="font-weight:bold"><font face="黑体">(</font></span></span></span></b><b><span style="font-size:14.0000pt"><span style="font-family:黑体"><span style="font-weight:bold"><font face="黑体">二</font></span></span></span></b><b><span style="font-size:14.0000pt"><span style="font-family:黑体"><span style="font-weight:bold"><font face="黑体">)</font></span></span></span></b><b> </b><b><span style="font-size:14.0000pt"><span style="font-family:黑体"><span style="font-weight:bold">——</span></span></span></b><b><span style="font-size:14.0000pt"><span style="font-family:黑体"><span style="font-weight:bold"> <font face="黑体">开发环境</font></span></span></span></b></span></span></span></span></h4><p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="background:#ffffff"><span style="font-family:宋体"><span style="color:#40485b"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="宋体">我收到</font>Neptune开发板后,就立刻就进行了开发环境的搭建工作,当时急着搭建开发环境,加上当时测评页上码云仓的链接打不开,造成前期准备工作严重不足。</span></span></span></span></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="background:#ffffff"><span style="font-family:宋体"><span style="color:#40485b"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="宋体">于是就采取了从官网</font>HarmonyOS上介绍的方式进行开发环境的搭建,并且参考了网上其他相关的帖子介绍的情况,采用了虚拟机的方式进行开发环境的搭建。</span></span></span></span></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="background:#ffffff"><span style="font-family:宋体"><span style="color:#40485b"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="宋体">本以为采用虚拟机的方式,可以很方便、快速的实现</font>window系统下编辑,下载,Linux系统编译的便利性。但是在实际操作时,发现这种方式太占电脑资源,而且Ubuntu系统频繁出现假死现象,耗费了大量的时间和精力。</span></span></span></span></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="background:#ffffff"><span style="font-family:宋体"><span style="color:#40485b"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="宋体">后来在开发者社区里看到了一篇文章,里面提到了</font>harmonyOS系统开发环境的配置要求。</span></span></span></span></span></span></span></span></p>
<p style="text-indent:21.0000pt; text-align:justify"> </p>
<p style="margin-top:7px; margin-bottom:7px; text-align:left"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="background:#ffffff"><span style="font-family:宋体"><span style="color:#40485b"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="宋体">下面是我使用的电脑配置信息,所以,一定要考虑自用电脑的硬件配置。</font></span></span></span></span></span></span></span></span> </p>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="background:#ffffff"><span style="font-family:宋体"><span style="color:#40485b"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="宋体">所以,权衡了许久,决定购入一块新硬盘,专门用来安装</font>Ubuntu系统,降低编译环境对电脑硬件资源的占用,提高编译效率。</span></span></span></span></span></span></span></span></p>
<ul>
<li class="MsoHeading7" style="margin-top:16px; margin-bottom:4px; text-align:justify"><span style="font-size:12pt"><span style="132%"><span style="font-family:Calibri"><span style="font-weight:bold"><b><span style="font-size:12.0000pt"><span style="font-family:宋体"><span style="font-weight:bold">Windows<font face="宋体">开发环境搭建</font></span></span></span></b></span></span></span></span></li>
</ul>
<ol>
<li style="margin-top:7px; margin-bottom:7px; margin-left:44px; text-align:left"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">系统要求:</font></span></span></span></span></li>
</ol>
<ol start="12" style="list-style-type:lower-alpha">
<li style="margin-top:7px; margin-bottom:7px; margin-left:72px; text-align:left" value="50"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体">Windows 10 64位系统。</span></span></span></span></li>
<li style="margin-top:7px; margin-bottom:7px; margin-left:72px; text-align:left" value="50"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">系统的用户名不能含有中文字符。</font></span></span></span></span></li>
</ol>
<ol>
<li style="margin-top:7px; margin-bottom:7px; margin-left:8px; text-align:left"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体">DevEco Device Tool以插件方式提供,基于Visual Studio Code进行扩展,支持一体化安装。所以,只要你有华为开发者账号,就可以很方便获取到软件。</span></span></span></span></li>
<li style="margin-top:7px; margin-bottom:7px; margin-left:8px; text-align:left"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">安装过程就省略了一大段文字,相信大家都会安装。</font></span></span></span></span></li>
<li style="margin-top:7px; margin-bottom:7px; margin-left:8px; text-align:left"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">需要谨记的就是建议安装最新版本的</font>DevEco Device Tool,你会发现有惊喜。</span></span></span></span> </li>
<li style="margin-top:7px; margin-bottom:7px; margin-left:8px; text-align:left"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">下面说一下踩到的坑儿:</font></span></span></span></span></li>
</ol>
<ol>
<li style="margin-top:7px; margin-bottom:7px; margin-left:16px; text-align:left"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="background:#ffffff"><span style="font-family:宋体"><span style="color:#40485b"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="宋体">想着</font></span></span></span></span></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">DevEco Device Tool</span></span> <span style="font-size:10.5000pt"><span style="background:#ffffff"><span style="font-family:宋体"><span style="color:#40485b"><span style="letter-spacing:0.0000pt"><span style="font-style:normal">3.0Beta1是才推出的,可能存在一些功能不稳定情况,对于新手可能不太友好,所以安装的是</span></span></span></span></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">DevEco Device Tool</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"> 2.1Release。坑儿已经开挖了。</span></span></span></span></li>
<li style="margin-top:7px; margin-bottom:7px; margin-left:16px; text-align:left"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="background:#ffffff"><span style="font-family:宋体"><span style="color:#40485b"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="宋体">本以为该开发板采用的</font>hi3861芯片的,</span></span></span></span></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">但是</font></span></span><span style="font-size:10.5000pt"><span style="background:#ffffff"><span style="font-family:宋体"><span style="color:#40485b"><span style="letter-spacing:0.0000pt"><span style="font-style:normal">Neptune开发板适配的</span></span></span></span></span></span><span style="font-size:10.5000pt"><span style="background:#ffffff"><span style="font-family:宋体"><span style="color:#40485b"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="宋体">阿里</font></span></span></span></span></span></span><span style="font-size:10.5000pt"><span style="background:#ffffff"><span style="font-family:宋体"><span style="color:#40485b"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="宋体">平头哥的</font>W800 WIFI/BT Combo 芯片</span></span></span></span></span></span><span style="font-size:10.5000pt"><span style="background:#ffffff"><span style="font-family:宋体"><span style="color:#40485b"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="宋体">,在打开</font>VScode后,根本找不到适配的芯片。</span></span></span></span></span></span></span></span></li>
<li style="margin-top:7px; margin-bottom:7px; margin-left:16px; text-align:left"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="background:#ffffff"><span style="font-family:宋体"><span style="color:#40485b"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="宋体">打开</font>VScode后,开始页面总是提示 </span></span></span></span></span></span><span style="font-size:10.5000pt"><span style="background:#ffffff"><span style="font-family:宋体"><span style="color:#40485b"><span style="letter-spacing:0.0000pt"><span style="font-style:normal">“</span></span></span></span></span></span><span style="font-size:10.5000pt"><span style="background:#ffffff"><span style="font-family:宋体"><span style="color:#40485b"><span style="letter-spacing:0.0000pt"><span style="font-style:normal">The 1 extension(s) below, in workspace recommendations have issues:huawei.deveco-device-tool (not found in marketplac</span></span></span></span></span></span></span></span></li>
</ol>
<p style="margin-top:7px; margin-bottom:7px; margin-left:28px; text-align:left"> </p>
<ul>
<li class="MsoHeading7" style="margin-top:16px; margin-bottom:4px; text-align:justify"><span style="font-size:12pt"><span style="132%"><span style="font-family:Calibri"><span style="font-weight:bold"><b><span style="font-size:12.0000pt"><span style="font-family:宋体"><span style="font-weight:bold">Ubuntu<font face="宋体">开发环境搭建</font></span></span></span></b></span></span></span></span></li>
</ul>
<p style="margin-top:7px; margin-bottom:7px; margin-left:24px; text-indent:20.8000pt; text-align:left"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">话不多说,请一定要按照下列次序进行安装,并且保证与</font>widow系统下安装的软件版本相一致,就能正确搭建完成。</span></span></span></span></p>
<ul>
<li style="list-style-type:none">
<ol>
<li style="margin-top:7px; margin-bottom:7px; text-align:left"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">安装</font>Visual Studio Code</span></span></span></span></li>
<li style="margin-top:7px; margin-bottom:7px; text-align:left"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">安装</font>Python</span></span></span></span></li>
<li style="margin-top:7px; margin-bottom:7px; text-align:left"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">安装</font>hpm</span></span></span></span></li>
<li style="margin-top:7px; margin-bottom:7px; text-align:left"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">安装</font>DevEco Device Tool插件</span></span></span></span></li>
</ol>
</li>
<li class="MsoHeading7" style="margin-top:16px; margin-bottom:4px; text-align:justify"><span style="font-size:12pt"><span style="132%"><span style="font-family:Calibri"><span style="font-weight:bold"><b><span style="font-size:12.0000pt"><span style="font-family:宋体"><span style="font-weight:bold"><font face="宋体">重要更正</font></span></span></span></b></span></span></span></span></li>
</ul>
<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">由于前期润和官方的</font>gitee仓一直无法正常显示,</span></span></span></span><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">关于开发环境的搭建都是摸着石头过河,例如:</font></span></span></span></span></p>
<ul>
<li style="margin-top: 7px; margin-bottom: 7px; margin-left: 16px; text-align: left;"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体">Neptune开发板是基于Harmony OS V1.1系统的,与harmony OS官网上支持的芯片有所不同。但是可以先搭建相应的开发环境。</span></span></span></span></li>
<li style="margin-top: 7px; margin-bottom: 7px; margin-left: 16px; text-align: left;"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体">HarmonyOS轻量和小型系统适用于内存较小的IOT设备,W800估计尚不支持在Windows平台下编译,需要在Ubuntu平台下编译</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">。</font></span></span></span></span></li>
</ul>
<p style="margin-top:7px; margin-bottom:7px; margin-left:28px; text-align:left"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><span style="font-weight:normal"><font face="宋体">直到看到了测评页面的更新,发现润和官方的</font>gitee<font face="宋体">恢复正常了,看到了</font></span></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"><span style="font-weight:normal"><font face="宋体">如下的内容,</font></span></span></span></span></span> </p>
<p style="margin-top:7px; margin-bottom:7px; margin-left:28px; text-align:left"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">所以,现在更正一下,附上官方链接,按照使用指南,即有保证的完成环境的搭建。</font></span></span></span></span></p>
<p style="margin-top:7px; margin-bottom:7px; margin-left:28px; text-align:left"><span style="font-size:10.5pt"><span style="font-family:Calibri"><a href="https://gitee.com/hihope_iot/docs/blob/master/Neptune/%E8%BD%AF%E4%BB%B6%E4%BD%BF%E7%94%A8%E6%89%8B%E5%86%8C.md"><u><span class="15" style="font-size:12.0000pt"><span style="font-family:宋体"><span style="color:#0000ff"><span style="text-decoration:underline"><span style="text-underline:single">Neptune/软件使用手册.md · HiHope IOT物联网设备/Docs - Gitee.com</span></span></span></span></span></u></a></span></span></p>
<p style="text-align:justify"> </p>
<p>过程很曲折,好在都走通啦。继续加油哈。</p>
<p> </p>
<p>找不到适配芯片的坑咋填的?</p>
<p style="text-align:left"><span style="color:#40485b">“本以为该开发板采用的hi3861芯片的,</span>但是<span style="color:#40485b">Neptune开发板适配的</span><span style="color:#40485b">阿里</span><span style="color:#40485b">平头哥的W800 WIFI/BT Combo 芯片</span><span style="color:#40485b">,在打开VScode后,根本找不到适配的芯片。”<br />
<br />
——确实,不过,他家海王星今年9月份新添了一名成员,HH-SLNPT201,采用的是Hi3861的芯片</span></p>
<p>没想到他家链接失效,让你这么折腾</p>
<p>吃螃蟹看来不少坑啊</p>
<p> </p>
soso 发表于 2021-11-26 10:47
过程很曲折,好在都走通啦。继续加油哈。
找不到适配芯片的坑咋填的?
<p>我在第二篇文档里说明了,将DevEco Device Tool 更新到3.0,刚刚看到DevEco Device Tool 又升级了,好像是增加了 可视化Trace工具和Perf性能分析工具。</p>
页:
[1]