鸿蒙开发板Neptune (五) —— 源码编译2
<div class='showpostmsg'><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>2</span></span></span></b></span></span></span></span></h4><p style="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>Ubuntu<font face="宋体">系统下,</font></span></span></span></span></p>
<ul>
<li style="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></span></span></span></span></li>
</ul>
<p style="text-align:justify"> </p>
<ul>
<li style="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></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>VScode<font face="宋体">,添加工程需要的用户组件,</font></span></span></span></span></p>
<p style="text-align:justify"> </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="font-family:宋体"><font face="宋体">将</font>W800<font face="宋体">需要的工具:</font><font face="Calibri">gcc-csky-abov2-linux</font><font face="宋体">,</font><font face="Calibri">gn</font><font face="宋体">,</font><font face="Calibri">llvm</font><font face="宋体">,</font><font face="Calibri">ninja</font><font face="宋体">添加到工程工具中。</font></span></span></span></span></p>
<p style="text-align:justify"> </p>
<ul>
<li style="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></span></span></span></span></li>
</ul>
<p style="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>Project Settings<font face="宋体">,选择“</font><font face="Calibri">env</font><font face="宋体">:</font><font face="Calibri">W800</font><font face="宋体">”</font></span></span><span style="font-size:10.5000pt"><span style="font-family:Arial">→→</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"> <font face="宋体">勾选</font>“<font face="Calibri">Show Advanced Options</font><font face="宋体">”将这些工具:“</font><font face="Calibri">gcc-csky-abov2-linux</font><font face="宋体">,</font><font face="Calibri">gn</font><font face="宋体">,</font><font face="Calibri">llvm</font><font face="宋体">,</font><font face="Calibri">ninja</font><font face="宋体">”添加到工程项目的</font><font face="Calibri">platform_packages</font><font face="宋体">中,配置</font><font face="Calibri">Upload</font><font face="宋体">选项,并在右上角上点击“保存”。</font></span></span></span></span></p>
<p align="justify" style="text-align:justify"> </p>
<p align="justify" style="text-align:justify"> </p>
<ul>
<li style="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></span></span></span></span></li>
</ul>
<p style="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>“工作区”</span></span><span style="font-size:10.5000pt"><span style="font-family:Arial">→→</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"> PROJECT TASKS </span></span><span style="font-size:10.5000pt"><span style="font-family:Arial">→→</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"> Build</span></span></span></span></p>
<p align="justify" style="text-align:justify"> </p>
<p align="justify" style="text-align:justify"> </p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">终于出现久违的</font>“<font face="Calibri">SUCCESS</font><font face="宋体">”。</font></span></span></span></span></span></p>
<ul>
<li style="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></span></span></span></span></li>
</ul>
<p style="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>“工作区”</span></span><span style="font-size:10.5000pt"><span style="font-family:Arial">→→</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"> PROJECT TASKS </span></span><span style="font-size:10.5000pt"><span style="font-family:Arial">→→</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"> Upload<font face="宋体">,同时按开发板上的</font><font face="Arial">RST</font><font face="宋体">键。</font></span></span></span></span></p>
<p style="text-align:justify"> </p>
<ul>
<li style="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></span></span></span></span></li>
</ul>
<p style="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>Cute Come<font face="宋体">软件,可以看到下图</font></span></span></span></span></p>
<p align="justify" style="text-align:justify"> </p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">按开发板上的</font>PB9<font face="宋体">,开发板上靠近模块的</font><font face="Calibri">LED</font><font face="宋体">没有任何反应。???这是什么情况???</font></span></span></span></span></span></p>
<ul>
<li style="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></span></span></span></span></li>
</ul>
<p style="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>“资源管理器”</span></span><span style="font-size:10.5000pt"><span style="font-family:Arial">→→</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"> “工作区”</span></span><span style="font-size:10.5000pt"><span style="font-family:Arial">→→</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="font-family:Arial">→→</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"> applications\sample </span></span><span style="font-size:10.5000pt"><span style="font-family:Arial">→→</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"> wifi-iot </span></span><span style="font-size:10.5000pt"><span style="font-family:Arial">→→</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"> app </span></span><span style="font-size:10.5000pt"><span style="font-family:Arial">→→</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"> iothardware </span></span><span style="font-size:10.5000pt"><span style="font-family:Arial">→→</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"> README.md <font face="宋体">,这里关于“如何编译”的说明。</font></span></span></span></span></p>
<p align="justify" style="text-align:justify"> </p>
<ul>
<li style="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></span></span></span></span></li>
</ul>
<p style="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>Build<font face="宋体">编译。</font></span></span></span></span></p>
<p style="text-align:justify"> </p>
<p style="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>“<font face="Calibri">libgpio_example.a </font><font face="宋体">:</font><font face="Calibri">No such file or directory</font><font face="宋体">”,这是什么情况?仅仅按照提示添加了</font></span></span><span style="font-size:10.5000pt"><span style="font-family:Calibri">`$(OHOS_LIBS_DIR)/libgpio_example.a`</span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">,就提示没有这个文件?</font></span></span></span></span></p>
<p style="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>openHarmony<font face="宋体">的客服,</font><font face="Calibri">open Harmony</font><font face="宋体">客服说这个文件是由第三方软件公司适配的,</font><font face="Calibri">DevEco</font><font face="宋体">无法提供该文件。</font></span></span></span></span></p>
<p style="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></span></span></span></span></p>
<p><span style="display: none;"> </span><span style="display: none;"> </span><span style="display: none;"> </span><span style="display: none;"> </span><span style="display: none;"> </span><span style="display: none;"> </span><span style="display: none;"> </span><span style="display: none;"> </span><span style="display: none;"> </span> </p>
</div><script> var loginstr = '<div class="locked">查看本帖全部内容,请<a href="javascript:;" style="color:#e60000" class="loginf">登录</a>或者<a href="https://bbs.eeworld.com.cn/member.php?mod=register_eeworld.php&action=wechat" style="color:#e60000" target="_blank">注册</a></div>';
if(parseInt(discuz_uid)==0){
(function($){
var postHeight = getTextHeight(400);
$(".showpostmsg").html($(".showpostmsg").html());
$(".showpostmsg").after(loginstr);
$(".showpostmsg").css({height:postHeight,overflow:"hidden"});
})(jQuery);
} </script><script type="text/javascript">(function(d,c){var a=d.createElement("script"),m=d.getElementsByTagName("script"),eewurl="//counter.eeworld.com.cn/pv/count/";a.src=eewurl+c;m.parentNode.insertBefore(a,m)})(document,523)</script>
页:
[1]