编译Qt程序遇到ts_open、ts_fd 等未找到的解决方法

来源:互联网 发布:清华王奇 知乎 编辑:程序博客网 时间:2024/05/22 11:56

现象:出现类似下面的错误提示

/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


原创粉丝点击