当前位置:网站首页>[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 !!!!
边栏推荐
- 广州地铁14号线新市墟站开建,白云区居民即将开启双线换乘模式!
- Can multithreading optimize program performance?
- JS promotion: the underlying principle of flat tiling
- Irregular area of OSPF, LSA and serial number
- 【Gradle】This version of the JMH Gradle plugin requires Gradle 6+, you are using 6.6.
- 对象到对象映射-AutoMapper
- 二分、三分、01分数规划 【第I弹】
- Have you ever seen this kind of dynamic programming -- the stock problem of state machine dynamic programming (Part 2)
- Data can't lie. Plato farm is the leader of the meta universe
- 【MySQL】查询多个ID返回字符串拼接
猜你喜欢

刚获融资的Espresso Systems,知识产权与团队道德双双陷入困境

Basic examples that must be mastered by beginners of C #

LSA and optimization of OSPF

Learn a hammer.Net zero foundation reverse tutorial lesson 3 (shell and homework)

3 minutes to tell you how to become a hacker | zero foundation to hacker getting started guide, you only need to master these five abilities

Have you ever seen this kind of dynamic programming -- the stock problem of state machine dynamic programming (Part 2)

技术人 | 研发效能的思考总结

老板:公司系统太多,能不能实现账号互通?

C# 读写文件从用户态切到内核态,到底是个什么流程?
Edge team explains how to improve the comprehensive performance experience through disk cache compression technology
随机推荐
7.27 minimum spanning tree phased test problem solution
B2B2C系统亮点是什么?如何助力珠宝首饰企业打造全渠道多商户商城管理体系
Introduction to timebasedrollingpolicy
The blind box of super primitive series will be launched soon, and platofarm will enable more rights and interests
为什么要考一级建造师,一建证书含金量有多高?
超级原始人系列盲盒即将上线,PlatoFarm赋能超多权益
技术人 | 研发效能的思考总结
JWT 登录认证 + Token 自动续期方案,写得太好了!
Platofarm has made continuous progress, and has launched the official version and super primitive NFT successively
OpenAtom OpenHarmony分论坛,今天14:00见!附大事记精彩发布
高温天气筑牢安全生产防线,广州海珠区开展加油站应急演练
DAO社区的胜利,Tiger DAO VC胜在治理与共识
PlatoFarm几大创新经济模型,给予当下元宇宙市场的启发
TCP Basics
In hot weather, the line of defense for safe production was strengthened, and Guangzhou Haizhu District carried out emergency drills for gas stations
二分、三分、01分数规划【第III弹】
New features of ES6
Openatom openharmony sub forum, see you today at 14:00! Wonderful release of memorabilia attached
pkg打包node工程
备受关注的Bit.Store,最新动态一览