TL-LED 发表于 2024-9-7 10:08

【匠芯创D133CBS】linux编译环境搭建

<p>&nbsp;</p>

<p><span style="font-size:16px;"><strong>一、下载源码</strong></span></p>

<p>&nbsp;</p>

<p><span style="font-size:16px;">1.1、获取源码</span></p>

<p><span style="font-size:16px;">执行命令:root@ThinkPad:/opt# git clone <a href="https://gitee.com/artinchip/luban-lite.git" target="_blank">https://gitee.com/artinchip/luban-lite.git</a></span></p>

<p>&nbsp;</p>

<p><span style="font-size:16px;">1.2、更新资源库</span></p>

<p><span style="font-size:16px;"></span></p>

<p>&nbsp;</p>

<p><span style="font-size:16px;">1.3、安装scons</span></p>

<p><span style="font-size:16px;">root@ThinkPad:/opt/luban-lite# cd tools/env/local_pkgs/<br />
root@ThinkPad:/opt/luban-lite/tools/env/local_pkgs# tar xvf scons-3.1.2.tar.gz<br />
root@ThinkPad:/opt/luban-lite/tools/env/local_pkgs/scons-3.1.2# python3 setup.py install</span></p>

<p>&nbsp;</p>

<p><span style="font-size:16px;">1.4、安装 pycryptodomex</span></p>

<p><span style="font-size:16px;">root@ThinkPad:/opt/luban-lite# apt-get install pip<br />
root@ThinkPad:/opt/luban-lite# cd tools/env/local_pkgs/<br />
root@ThinkPad:/opt/luban-lite/tools/env/local_pkgs# tar xvf pycryptodomex-3.11.0.tar.gz<br />
root@ThinkPad:/opt/luban-lite/tools/env/local_pkgs/pycryptodomex-3.11.0# python3 setup.py install</span><br />
&nbsp;</p>

<p><strong><span style="font-size:16px;">二、编译SDK</span></strong></p>

<p><span style="font-size:16px;">root@ThinkPad:/opt/luban-lite# scons --list-def</span></p>

<p><span style="font-size:16px;"></span></p>

<p><span style="font-size:16px;">root@ThinkPad:/opt/luban-lite# scons --apply-def=11</span></p>

<p><span style="font-size:16px;"></span></p>

<p>&nbsp;</p>

<p><span style="font-size:16px;">root@ThinkPad:/opt/luban-lite# scons</span></p>

<p><span style="font-size:16px;"></span></p>

<p>&nbsp;</p>

<p><span style="font-size:16px;">编译成功</span></p>

<p>&nbsp;</p>

Jacktang 发表于 2024-9-9 07:33

<p>linux编译环境搭建本来就有点繁琐,确实是这样</p>

q1233 发表于 2024-9-10 08:46

<p>多谢分享!多谢分享!多谢分享!多谢分享!多谢分享!多谢分享!</p>
页: [1]
查看完整版本: 【匠芯创D133CBS】linux编译环境搭建