Ubuntu22.04编译OpenHarmony4.0究竟需要那些依赖

Ubuntu22.04编译OpenHarmony4.0究竟需要那些依赖

拿了块ssd 的移动硬盘,重装了下,正好要搭建openharmoney编译环境, 本着尽量少装些乱七八糟依赖,就看下究竟需要那些依赖,顺便记录下。

先上最后结果:

sudo apt install git git-lfs python-is-python3 pip bison ccache default-jdk flex ruby libssl-dev libtinfo5 genext2fs u-boot-tools mtools mtd-utils scons gcc-arm-none-eabi gcc-arm-linux-gnueabi libelf-dev liblz4-tool gcc-multilib xorg-dev

其中 python-is-python3 可以解决repo 上报找不到python问题

“/usr/bin/env: “python”: 没有那个文件或目录 ”

当然这个问题也可以通过手动建立软链接规避 ln -s /usr/bin/python3 /usr/bin/python

以下是编译的时候,有提示的, 以及编译过程中缺少报错的, 通过上述安装可以解决问题

 bison is not installed. please install it.
 ccache is not installed. please install it.
 default-jdk is not installed. please install it.
 flex is not installed. please install it.
 ruby is not installed. please install it.
 libssl-dev is not installed. please install it.
 libtinfo5 is not installed. please install it.
 genext2fs is not installed. please install it.
 u-boot-tools is not installed. please install it.
 mtools is not installed. please install it.
 mtd-utils is not installed. please install it.
 scons is not installed. please install it.
 gcc-arm-none-eabi is not installed. please install it.
 gcc-arm-linux-gnueabi is not installed. please install it.


Cannot resolve BTF IDs for CONFIG_DEBUG_INFO_BTF, please install libelf-dev, libelf-devel or elfutils-libelf-devel

/bin/sh: 行 1: lz4c: 未找到命令

/usr/include/stdint.h:26:10: fatal error: 'bits/libc-header-start.h' file not found
error: 'X11/Xcursor/Xcursor.h' file not found

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值