赞
踩
由于新版Open Harmony要求编译环境是Ubuntu22.04,所以Windows下需要先安装虚拟机
wsl --set-default-version 2 ; wsl --update
Ubuntu LTS
即可安装 sudo apt-get update && yes | sudo apt-get install binutils git git-lfs gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip m4 bc gnutls-bin python3.8 python3-pip ruby
# 1)配置config
git config --global user.name "yourname"
git config --global user.email "your-email-address"
git config --global credential.helper store
# 2) 生成自己的key,填写的名称和email需要与git config配置一模一样。
gpg --gen-key
# 3) 运行下面命令配置commit自动签名 (可能不生效)
git config --global commit.gpgsign true
mkdir ohsc && cd ohsc
repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
bash build/prebuilts_download.sh
./build.sh --product-name rk3568 --ccache
/usr/include/stdint.h:26:10: fatal error: 'bits/libc-header-start.h' file not found
sudo apt update
yes | sudo apt install gcc-multilib
/usr/bin/env: ‘/usr/bin/flex’: No such file or directory
yes | sudo apt install flex
sudo apt-get install liblz4-tool
sudo dpkg-reconfigure dash
sudo apt install libelf-dev
pip install dataclasses
yes | sudo apt install gcc-arm-none-eabi
yes | sudo apt install scons
yes | sudo apt install mtd-utils
yes | sudo apt install mtools
yes | sudo apt install u-boot-tools
sudo apt install genext2fs
sudo apt install default-jdk
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。