ubuntu中用mips32交叉编译Qt4.7.1时出现The tslib functionality test failed!的解决办法

make编译时报错

The tslib functionality test failed!

因为tslib是用mips32交叉编译产生,因此在./configure时,也要将mips32的交叉编译器及相应的库文件写入环境变量

#!/bin/bash
export PATH=/opt/buildroot-2016.02-glibc-gcc-4.7.x-mips32-nofpu/output/host/usr/bin:$PATH
export LD_LIBRARY_PATH=/opt/buildroot-2016.02-glibc-gcc-4.7.x-mips32-nofpu/output/host/usr/lib:/opt/buildroot-2016.02-glibc-gcc-4.7.x-mips32-nofpu/output/target/lib:$LD_LIBRARY_PATH

搞定。目录记得修改成自己的目录。