编译qt程序到x86板子上,make 的时候出现下列问题
/lib/libQtGui.so: undefined reference to `ts_read_raw'
lib/libQtGui.so: undefined reference to `ts_open'lib/libQtGui.so: undefined reference to `ts_fd'
lib/libQtGui.so: undefined reference to `ts_config'
lib/libQtGui.so: undefined reference to `ts_close'
lib/libQtGui.so: undefined reference to `ts_read'
此错误需要修改Qt源码安装包qt-everywhere-source-4.7.3中mkspecs/common/linux.conf文件,将QMAKE_LIBS_THREAD选项改为
QMAKE_LIBS_THREAD=-lphtread -lts
这具体是什么原因,目前不知到,希望大婶补充,
遇到编译Qt程序到x86板子时出现的链接错误,通过修改Qt源码安装包中的配置文件解决了问题。具体步骤包括:将QMAKE_LIBS_THREAD选项更改为QMAKE_LIBS_THREAD=-lphtread-lts。
1213

被折叠的 条评论
为什么被折叠?



