xmlIO.c:40:10: 致命错误: lzma.h:没有那个文件或目录
40 | #include <lzma.h>
在交叉编译libxml时,报错
为解决这个问题,编译liblzma
网址https://tukaani.org/xz/
解压:
tar jxvf xz-5.2.12.tar.bz2
执行:
./configure --build=i386-linux --host=aarch64-none-linux-gnu --target=aarch64-none-linux-gnu CC=aarch64-none-linux-gnu-gcc AR=aarch64-none-linux-gnu-ar LD= aarch64-none-linux-gnu-ld RANLIB=aarch64-none-linux-gnu-ranlib --prefix=/home/lkmao/linux/3588-linux/app/tools/xz-5.2.12/_install_aarch64
然后make
然后make install
好了,编译完毕