編譯QT時出現lib/libQtGui.so: undefined reference to `ts_read_raw'的解決辦法

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-everywhere-opensource-src-4.7.2/mkspecs/qws/linux-arm-g++/qmake.conf 文件(添加lts參數):

QMAKE_CC = arm-linux-gcc -lts

QMAKE_CXX = arm-linux-g++ -lts

QMAKE_LINK = arm-linux-g++ -lts

QMAKE_LINK_SHLIB = arm-linux-g++ -lts

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