Qt4.7源码下载地址:
http://download.qt-project.org/archive/qt/4.7/qt-everywhere-opensource-src-4.7.0.tar.gz
再下载tslib-1.4
步骤
解压tslib1.4.tar.gz
cd tslib
export CC=arm-linux-gcc
./autogen.sh
echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
./configure --host=arm-linux ac_cv_func_malloc_0_nonnull=yes -prefix=${PWD}/../__installed/tslib-1.4make
make install
解压qt-everywhere-opensource-src-4.7.0.tar.gz,并拷贝出三份,分别命名成qt-4.7.0-arm、qt-4.7.0-x86、qt-4.7.0-pc
./configure -prefix ${PWD}/../__installed/qt-everywhere-opensource-src-4.8.1
-opensource -confirm-license -release -shared -embedded arm -xplatform qws/linux-arm-g++ -no-qt3support -fast -no-largefile -qt-mouse-tslib -I ${PWD}/../__installed/tslib-1.4/include -L ${PWD}/../__installed/tslib-1.4/lib -make tools -make demos -make examples
-make docs -qt-libjpeg -qt-libpng -qt-libtiff -qt-gif -multimedia
make
make install