linux的学习之路(imx6)一
解决使用野火例程出现的问题
1.使用build-tslib.sh时执行一半报错
done...
start unpacking the tslib-1.21 package ...
done...
start configure tslib-1.21...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-gnueabihf-strip... arm-linux-gnueabihf-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... arm-unknown-linux-gnueabihf
checking for arm-linux-gnueabihf-gcc... /opt/gcc-arm-linux-gnueabihf-8.3.0/bin/arm-linux-gnueabihf-gcc
checking whether the C compiler works... no
configure: error: in `/home/debian/tslib-1.21':
configure: error: C compiler cannot create executables
See `config.log' for more details
done...
start make and install tslib-1.21 ...
make: *** No targets specified and no makefile found. Stop.
done...
解决方法
在linux的命令行中,输入下面的两行,清空CFLAGS和LIBS的值:
export LIBS= 回车
export CFLAGS= 回车
然后,就再运行./configue 等时,就可以正常通过了。
或者直接在build-tslib.sh的./configure指令上一行加入
export LIBS=
export
export CFLAGS=
export
重新运行build-tslibu.sh就可以了