交叉编译工具出错fatal error: lzo/lzo1x.h: No such file or directory,需要编译lzo2库

本文详细介绍了如何下载lzo-2.10源码包,并在ARM平台进行交叉编译的过程。包括配置参数说明、编译命令及安装步骤。适用于希望在ARM设备上使用lzo库的开发者。
AI助手已提取文章相关产品:

下载lzo-2.10.tar.gz

http://www.oberhumer.com/opensource/lzo/download/

  

配置configure

./configure --build=i686-linux --host=arm-arago-linux-gnueabi --target=arm-arago-linux-gnueabi --prefix=/home/picohood/projects/linux-
devkit_x64/sysroots/xj_cross_compile/ti-am335x-linux-devkit/arm-arago-linux-
gnueabi/usr/include/lsh CC=arm-arago-linux-gnueabi-gcc CXX=arm-arago-linux-gnueabi-g++ --disable-udev

 make

make

 安装

make install

  

 

转载于:https://www.cnblogs.com/liushuhe1990/p/9759558.html

您可能感兴趣的与本文相关内容

``` soho@ubuntu:~/Downloads/RE$ pip install python-lzo Collecting python-lzo Downloading https://files.pythonhosted.org/packages/a4/8f/60cbc1a57257cd21c9e35217a8bc8713424dc7502df17794d914738df50f/python-lzo-1.15.tar.gz Building wheels for collected packages: python-lzo Running setup.py bdist_wheel for python-lzo ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-MK08ju/python-lzo/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpyGIvKCpip-wheel- --python-tag cp27: running bdist_wheel running build running build_ext building 'lzo' extension creating build creating build/temp.linux-x86_64-2.7 x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-D7NSzq/python2.7-2.7.17=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include -I/usr/include/python2.7 -c lzomodule.c -o build/temp.linux-x86_64-2.7/lzomodule.o lzomodule.c:38:10: fatal error: lzo/lzo1.h: No such file or directory #include <lzo/lzo1.h> ^~~~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Failed building wheel for python-lzo Running setup.py clean for python-lzo Failed to build python-lzo Installing collected packages: python-lzo Running setup.py install for python-lzo ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-MK08ju/python-lzo/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-_zspTr-record/install-record.txt --single-version-externally-managed --compile --user --prefix=: running install running build running build_ext building 'lzo' extension creating build creating build/temp.linux-x86_64-2.7 x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-D7NSzq/python2.7-2.7.17=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include -I/usr/include/python2.7 -c lzomodule.c -o build/temp.linux-x86_64-2.7/lzomodule.o lzomodule.c:38:10: fatal error: lzo/lzo1.h: No such file or directory #include <lzo/lzo1.h> ^~~~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-MK08ju/python-lzo/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-_zspTr-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-MK08ju/python-lzo/```分析报错
04-09
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值