现象:出现类似下面的错误提示
/usr/local/Trolltech/QtEmbedded-4.8.0-arm/lib/libQtGui.so: undefined reference to `ts_read_raw'
/usr/local/Trolltech/QtEmbedded-4.8.0-arm/lib/libQtGui.so: undefined reference to `ts_open'/usr/local/Trolltech/QtEmbedded-4.8.0-arm/lib/libQtGui.so: undefined reference to `ts_fd'
/usr/local/Trolltech/QtEmbedded-4.8.0-arm/lib/libQtGui.so: undefined reference to `ts_config'
/usr/local/Trolltech/QtEmbedded-4.8.0-arm/lib/libQtGui.so: undefined reference to `ts_close'
/usr/local/Trolltech/QtEmbedded-4.8.0-arm/lib/libQtGui.so: undefined reference to `ts_read'
解决方法1:
在项目Makefile的LIBS中最后增加-lts
方法2:
将tslib的库文件放到qt的库文件目录下面
我的系统是在:/usr/local/Trolltech/QtEmbedded-4.8.0-arm/lib