1 Star 0 Fork 16

ailorna / EasyBuildOpenHarmony

forked from lixilun / EasyBuildOpenHarmony 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

介绍

一个用于快速搭建OpenHarmony编译环境的介绍

工具安装

1. windows安装
https://www.microsoft.com/zh-cn/software-download/windows10
下载windows安装器制作u盘即可。 如果电脑自带key可以自动激活
如果已经制作好了win10的安装u盘可略过这一步

2. virtualbox安装
https://www.virtualbox.org/wiki/Downloads
下载virtualbox并安装

3. ubuntu下载
http://releases.ubuntu.com/20.04/ubuntu-20.04.2.0-desktop-amd64.iso

4. 使用virtualbox安装ubuntu
https://blog.csdn.net/weixin_44813579/article/details/105867198
内存不适合改的过大,需要给windows留一点余地。建议使用8g内存的机器,预留4g给虚拟机,否则可能会导致安装失败

5. ubuntu安装后使用本仓中的脚本初始化编译环境
bash all_in_one.sh
按提示输入邮箱、git 昵称

6. 如果不希望污染现有的环境,可以安装docker并下载华为官方docker镜像使用
docker工具配置方法
https://www.runoob.com/docker/ubuntu-docker-install.html
华为docker下载
sudo docker pull swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker:0.0.3
docker run命令
sudo docker run -it -v $(pwd):/home/openharmony swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker:0.0.3
注意这里是使用的root模式访问代码

7. 代码下载配置
为了顺利进行ssh下载,需要添加你的公钥~/.ssh/id_rsa.pub到gitee上,指导见:
https://gitee.com/help/articles/4191#article-header0
另外,如果是https下载的模式,则只需要输入用户名和密码即可,用户名可以看个人主页如下位置:
输入图片说明

8. hb配置
为了顺利执行编译,官方建议安装hb到环境中,当提示hb找不到时请执行如下命令。 docker也要执行这个命令

sudo python3 -m pip install --user build/lite

开始repo init下载代码,一起玩转OpenHarmony吧

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request
MIT License Copyright (c) 2021 duxbbo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

一个用于快速搭建OpenHarmony编译环境的脚本库 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/ailorna/easy-build-open-harmony.git
git@gitee.com:ailorna/easy-build-open-harmony.git
ailorna
easy-build-open-harmony
EasyBuildOpenHarmony
master

搜索帮助