当前位置:网站首页>[openharmony] [rk2206] build openharmony compiler (2)
[openharmony] [rk2206] build openharmony compiler (2)
2022-07-28 10:06:00 【jianqiang.xue】
Above, :
[OpenHarmony] Quickly build linux development environment +OpenHarmony Environmental Science ( One )
One 、 structure OpenHarmony compiler
- download 【 Lingzhi electronics / Xiaoling sect -RK2206 Development board 】SDK
from gitee download : 【 Lingzhi electronics / Xiaoling sect -RK2206 Development board 】
from csdn download :lockzhiner-rk2206-openharmony3.0lts.zip
After downloading , Put it in linux Share Directory .
(1) stay D Disk creation prog Folder , And unzip it here .
If provided by this article linux, stay linux The input terminal :cd /mnt/d/prog/lockzhiner-rk2206-openharmony3.0lts
If through other channels linux, Then share windos Catalog , Refer to appendix .
then cd Get into lockzhiner-rk2206-openharmony3.0lts Catalog .
(2) install hb Tools , The input terminal :python3 -m pip install --user build/lite
(3) precompile , The input terminal : ./build/prebuilts_download.sh
Compilation failure :
① Complete dependencies are not installed , Please implement as above hm_install.sh, And run .
② shell Not changed to bash, Please follow the above operation .
③ python The version is not in 3.7-3.8 Inside , Build failed .
④ Not enough permissions , be chmod 777, Yes sdk The directory is weighted . Remember not to sudo function , Will report a mistake !!!
⑤ Cannot create to “xx” The symbolic connection of : Operation not allowed . reason : stay windos Shared folder perhaps Use windos Unzipped the file , The format is damaged . Please use linux Of unzip decompression sdk
(4) Set the environment variable , The input terminal :source build/envsetup.sh
(5)hb For the first time, you need to add -root, The input terminal : hb set -root $code_dir
(6) Select compile development board , The input terminal : hb set
Use the direction key ↑↓, choice lockzhiner-rk2206.( Ben SDK One by default , Press enter directly )
Two 、 compile OpenHarmony project
(1) Clear old files , The input terminal : hb clean
(2) compile , Suggestion plus -f Compile all , The input terminal : hb build -f
Compilation failure :
- [OHOS ERROR] ./build.sh: 16: Syntax error: “(” unexpected
reason : Did not correctly handle shell Change it to bash - [OHOS ERROR] FAILED: obj/device/rockchip/rk2206/third_party/lwip/rk2206_lwip
reason : Complete dependencies are not installed , Please implement as above hm_install.sh, And run , then (1) Clear old files . - COPY Command not found ,python The version is not in 3.7-3.8 Inside , And there are errors in the composition of the environment
appendix : Realization linux share directory , use vbox give an example :
First choose 【 Install enhancements 】
A prompt box may appear , select RUN Installation .
If not , Click the CD to install it manually , Right click script - Choose how to open 

Input password , Continue with the installation . The interface shown in the figure below appears , Press Enter Key to exit , restart .
It was found after restart that 【 View 】 The seamless mode and automatic display size adjustment function in the menu are already available , It can also copy and paste with the host ( Need to put 【 equipment 】-【 Share pasteboard 】 Set to 【 two-way 】, hold 【 equipment 】-【 Drag and drop 】 Set to 【 two-way 】)
Shared directory reference :virtualbox Set up shared directory

(1) The input terminal :cd /mnt
(2) newly build Ubuntu Shared folders , The input terminal :sudo mkdir /mnt/lockzhiner-rk2206-openharmony3.0lts
(3) Mount shared folder , The input terminal :sudo mount -t vboxsf lockzhiner-rk2206-openharmony3.0lts /mnt/lockzhiner-rk2206-openharmony3.0lts/
Format :sudo mount -t vboxsf Shared folder name ( See above ) To mount a directory
(4) Realize automatic mount after power on ,vim sudo gedit /etc/fstab
Input i, Enter edit mode , Add the following at the end . Press again esc, Exit edit mode . then shift+:, Enter command mode , Input wq, Press enter to save the changes .
lockzhiner-rk2206-openharmony3.0lts /mnt/lockzhiner-rk2206-openharmony3.0lts/ vboxsf defaults 0 0
Wrong situation :
xxx The symbolic connection of : Operation not allowed
tar: Because of the last mistake , Will exit... In the last error state

This is because in the linux Used windos Caused by shared directory !!! Please put sdk From the shared directory to Linux Any path , Re decompress !!!!
边栏推荐
猜你喜欢

房地产数字化转型方案:全方位数智化系统运营,助力房企管控实效提升

Data can't lie. Plato farm is the leader of the meta universe

工业品MRO采购网站有哪些优势?一文带你读懂

初学C#必须要掌握的基础例题

Joint search set

极致通缩和永动机模型,将推动 PlatoFarm 爆发

C# 读写文件从用户态切到内核态,到底是个什么流程?

Plato Farm-以柏拉图为目标的农场元宇宙游戏

Extreme deflation and perpetual motion machine model will promote the outbreak of platofarm

arthas使用教程
随机推荐
医药行业数字化建设,箭在弦上
工业品MRO采购网站有哪些优势?一文带你读懂
初学C#必须要掌握的基础例题
2022-7-27周报
对象到对象映射-AutoMapper
Array collation commonly used in PHP
博弈论 1.Introduction(组合游戏基本概念、对抗搜索、Bash游戏、Nim游戏)
高温天气筑牢安全生产防线,广州海珠区开展加油站应急演练
PlatoFarm进展不断,接连上线正式版以及推出超级原始人NFT
PlatoFarm几大创新经济模型,给予当下元宇宙市场的启发
为报复公司解雇,我更改了项目的所有代码注释!
Can multithreading optimize program performance?
Espresso systems, which has just obtained financing, has both intellectual property rights and team ethics in trouble
pkg打包node工程
The high temperature continues, and public transport enterprises carry out special safety training
Some problems about CLR GC tuning
How PHP gets the interface
In php7?? And?: Differences between
这种动态规划你见过吗——状态机动态规划之股票问题(中)
如何使用JWT进行身份验证与授权