配置:
./configure -prefix /home/nzm/qt/arm-qt4 -fast -no-largefile -no-qt3support -no-mmx -no-3dnow -no-xmlpatterns -no-webkit -no-svg -nomake demos -nomake docs -no-openssl -embedded arm -little-endian -no-qvfb -no-mouse-qvfb -depths 32,16,24 -confirm-license
-xplatform qws/linux-arm-g++ -no-xcursor -no-xfixes -qt-mouse-linuxinput -qt-mouse-pc -qt-mouse-tslib -I/usr/local/tslib/include -L/usr/local/tslib/lib
出错:
/home/nzm/toolchain/arm-2008q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libts-0.0.so.0, needed by /home/nzm/qt/qt-4.7.0-arm/lib/libQtGui.so, not found (try using -rpath or -rpath-link)
/home/nzm/qt/qt-4.7.0-arm/lib/libQtGui.so: undefined reference to `ts_read_raw'
/home/nzm/qt/qt-4.7.0-arm/lib/libQtGui.so: undefined reference to `ts_open'
/home/nzm/qt/qt-4.7.0-arm/lib/libQtGui.so: undefined reference to `ts_fd'
/home/nzm/qt/qt-4.7.0-arm/lib/libQtGui.so: undefined reference to `ts_config'
/home/nzm/qt/qt-4.7.0-arm/lib/libQtGui.so: undefined reference to `ts_close'
/home/nzm/qt/qt-4.7.0-arm/lib/libQtGui.so: undefined reference to `ts_read'
collect2: ld returned 1 exit status
make[3]: *** [blockingfortuneclient] 错误 1
把/usr/local/tslib/lib 下的相关库
libts-0.0.so.0 libts-0.0.so.0.1.0
拷到编译器库里面/home/nzm/toolchain/arm-2008q1/arm-none-linux-gnueabi/lib/
最后板上的环境变量设为:
export QWS_MOUSE_PROTO="tslib:/dev/input/event1 usb:/dev/input/event2"