jz4755linux移植最新的qt4.7.1
linux内核的编译比较简单,下载文件系统如果出ecc或者其他的错误,可能是需要将flash全部重新擦写一下,清除坏块标记,
然后开始qt移植,移植过程还是很简单的,
首先移植tslib
解压后运行./autogen.sh
./configure -prefix=/usr/local/tslib -host=mipsel-linux
make
make install
然后解压qt
修改qt-everywhere-opensource-src-4.7.1/mkspecs/qws/linux-mips-g++/qmake.conf 文件,
将编译器修改成mipsel-linux-
然后配置
./configure -prefix /opt/qt -opensource -release -no-largefile -webkit -no-qt3support -fast -qt-zlib -qt-gif -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -optimized-qmake -no-cups -reduce-relocations -embedded mips -xplatform qws/linux-mips-g++ -qt-mouse-tslib -I/usr/tslib/include -L/usr/local/tslib/lib
make & make install
要想触摸屏正常工作,必须设置tslib的脚本
export TSLIB_ROOT=/usr/local/tslib
export TSLIB_TSDEVICE=/dev/input/event0
export LD_LIBRARY_PATH=$TSLIB_ROOT/lib:$LD_LIBRARY_PATH
export TSLIB_CONSOLEDEVICE=none
export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf
export POINTERCAL_FILE=/etc/pointercal
export TSLIB_CALIBFILE=/etc/pointercal
然后设置qt的环境变量
export QWS_MOUSE_PROTO=Tslib:/dev/event
这样qt的触摸屏就可以工作了
其实也可以不用tslib 直接用qte对触摸屏的支持,
不过首先用examples/qws/mousecalibration来校正屏幕才行