分多多!Qt于Linux Arm的移植问题,tslib没作用?
tslib和Qt4.8.0的交叉编译很成功,把相应的lib打到ARM板上,tslib的调试也很顺利,但是Qt程序的鼠标却一动不动。
Qt4.8.0编译时的配置:./configure -prefix /usr/local/Qt-4.8.0-arm -opensource -confirm-license -release -shared -embedded arm -xplatform qws/linux-arm-g++ -depths 16,18,24 -fast -optimized-qmake -pch -qt-sql-sqlite -qt-sql-sqlite -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -little-endian -host-little-endian -no-qt3support -no-libtiff -no-libmng -no-opengl -no-mmx -no-sse -no-sse2 -no-3dnow -no-openssl -no-webkit -no-qvfb -no-phonon -no-nis -no-cups -no-glib -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-separate-debug-info -nomake examples -nomake tools -nomake docs -qt-mouse-tslib -I/usr/local/tslib/include -L/usr/local/tslib/lib
ARM板上的环境变量:
export set HOME=/root
export set QTDIR=/opt/Qt48
export set QPEDIR=/opt/Qt48
export set KDEDIR=/opt/kde
export set QWS_KEYBOARD="TTY:/dev/tty1"
export set TSLIB_ROOT=/usr/local/tslib
export TSLIB_TSDEVICE=/dev/event0
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_QWS_MOUSE_PROTO="TPanel:/dev/event0 USB:/dev/mouse0"
export set PATH=$QPEDIR/bin:$PATH
export set LD_LIBRARY_PATH=$QTDIR/lib:$QPEDIR/lib:$TSLIB_ROOT/lib
求解:tslib调试是正常的 ts_calibtate,ts_test的运行正常,Qt的运行程序 鼠标没有动,怀疑是不是Qt的交叉编译过程出问题了,或者遗漏了环节,向有经验的求教!谢谢~
[解决办法]
节分无压力,呵呵,我的。
export QWS_KEYBOARD="TTY:/dev/input/event4"
./qt -qws
lineEdit有键盘输入,但是是些字符集。不知何因。
[解决办法]
正在装qt 不懂还要请教楼主