OpenHarmony 学习笔记 01
2023-02-18 15:41:28 时间
1 下载代码
环境
- macOS Catalina 10.15.7, brew, pip/pip3, python/python3
下载方法
cd ~/Development/Gitee
mkdir ./bin
curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 -o ./bin/repo
chmod a+x ./bin/repo
export PATH=$PATH:./bin # 配置到环境变量中
pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests
mkdir ./openharmony_master
cd ./openharmony_master
repo init -u git@gitee.com:openharmony/manifest.git -b master --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
下载成功
- repo sync 耗时约 30 分钟,下载完成后代码文件夹总共 24.41 GB
问题记录
- repo init 出错
- 反复提示 "No module named requests" 错误,以下链接方法解决问题:
https://stackoverflow.com/questions/17309288/importerror-no-module-named-requests
python3 -m pip install requests
- repo sync -c 出错
git-lfs: command not found
- 以下链接方法解决问题:
brew install git-lfs
git lfs install
2 构建版本
执行 prebuilts
- 在源码根目录下执行prebuilts脚本,安装编译器及二进制工具
bash build/prebuilts_download.sh
构建
cd ./build/build_scripts/
./env_setup.sh
./build.sh
- Mac系统貌似不支持,后续再研究下
问题记录
- prebuilts_download 出错
ERROR: Could not find a version that satisfies the requirement rich (from versions: none)
ERROR: No matching distribution found for rich
- 解决
python3 -m pip install rich
3 提交代码
(待补充)
相关文章
- [PHP]post传递数据时的报错Array to string conversion
- [PHP] laravel框架发送带附件邮件
- [PHP] 解决laravel 报错:Too Many Attempts
- [mysql] mysqldump导出指定数据库表和条件的数据
- [PHP] 解决windows下请求https 报错cURL error 60: SSL certificate problem: unable to get local issuer certificate
- [PHP] 解决laravel Please provide a valid cache path
- [PHP] php使用phpoffice/phpexcel 生成excel文件
- [PHP] Laravel中env函数返回null原因
- [PHP] laravel8 发送通知邮件
- [PHP] hyperf代码热更新-hyperf-watch
- [日常]wps插入页眉页脚
- [PHP] new static()和new self()的区别
- [docker] docker删除容器
- [docker] docker删除镜像
- [PHP] hyperf框架代码热更新
- [PHP] Swoole 关闭短别名swoole.use_shortname
- [PHP] laravel 中__callStatic的使用
- [PHP] laravel data_get函数以及?? ?: 测试用例
- [PHP] opcache优化作用
- [MySQL] 解决:Specified key was too long; max key length 1000/767