openharmony源码编译

1. win拷贝数据到虚拟机Ubuntu配置

1.打开终端,更新软件库

sudo apt-get update

2.下载安装open-vm-tools,open-vm-tools-desktop

sudo apt-get install open-vm-tools open-vm-tools-desktop

3.重启

sudo reboot

2.编译环境配置

1.设置环境脚本

1.

sudo apt-get install binutils binutils-dev git git-lfs gnupg flex bison gperf build-essential zip curl zlib1g-dev 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 genext2fs device-tree-compiler make libffi-dev e2fsprogs pkg-config perl openssl libssl-dev libelf-dev libdwarf-dev u-boot-tools mtd-utils cpio doxygen liblz4-tool openjdk-8-jre gcc g++ texinfo dosfstools mtools default-jre default-jdk libncurses5 apt-utils wget scons python3.8-distutils tar rsync git-core libxml2-dev lib32z-dev grsync xxd libglib2.0-dev libpixman-1-dev kmod jfsutils reiserfsprogs xfsprogs squashfs-tools pcmciautils quota ppp libtinfo-dev libtinfo5 libncurses5-dev libncursesw5 libstdc++6 gcc-arm-none-eabi vim ssh locales libxinerama-dev libxcursor-dev libxrandr-dev libxi-dev

2.

sudo apt-get install gcc-arm-linux-gnueabi gcc-9-arm-linux-gnueabi

3.将Python3.8设置为默认Python版本。

查看Python3.8的位置:

which python3.8 将Python和Python3切换为Python3.8:

sudo update-alternatives--install /usr/bin/python python {Python 3.8路径} 1 #{Python 3.8路径}为上一步查看的Python 3.8的位置

sudo update-alternatives--install /usr/bin/python3 python3 {Python 3.8路径} 1 #{Python 3.8路径}为上一步查看的Python 3.8的位置

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

MatrixData

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值