編譯Qt程序遇到ts_open、ts_fd 等未找到的解決方法

現象:出現類似下面的錯誤提示

/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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章