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