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.设置环境脚本

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

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的位置

相关推荐
Elasticsearch4 分钟前
Elasticsearch:如何在 ES|QL 中使用 FORK 及 FUSE 命令来实现混合搜索 - 9.1+
elasticsearch
说私域1 小时前
定制开发AI智能名片S2B2C预约服务小程序的定制开发与优势分析
大数据·人工智能·小程序
武子康1 小时前
大数据-155 Apache Druid 存储与查询架构实战:Segment/Chunk/Roll-up/Bitmap 一文讲清
大数据·后端·nosql
ITVV3 小时前
计算引擎 Flink 1.19.3
大数据·flink
HillVue3 小时前
重估百度,也是在重估 AI 的未来
大数据·人工智能·sqlite
zxsz_com_cn5 小时前
设备健康管理诊断报告生成:工业智能化的“决策引擎”与效率革命
大数据
FPGA小迷弟9 小时前
ChatGPT回答用AI怎么怎么赚钱
大数据·人工智能
AllData公司负责人10 小时前
实时开发平台(Streampark)--Flink SQL功能演示
大数据·前端·架构·flink·开源
小坏讲微服务12 小时前
MaxWell中基本使用原理 完整使用 (第一章)
大数据·数据库·hadoop·sqoop·1024程序员节·maxwell
2301_7976042414 小时前
d47:Elasticsearch入门
elasticsearch