|
发表于 2014-1-8 10:00:05
|
显示全部楼层
我也出现同样问题了,解决方法如下:
首先执行
qmake -query
会出现如下打印
kingjin@king-desktop:~$ qmake -query
QT_INSTALL_PREFIX:/usr
QT_INSTALL_DATA:/usr/share/qt4
QT_INSTALL_DOCS:/usr/share/qt4/doc
QT_INSTALL_HEADERS:/usr/include/qt4
QT_INSTALL_LIBS:/usr/lib/i386-linux-gnu
QT_INSTALL_BINS:/usr/bin
QT_INSTALL_PLUGINS:/usr/lib/i386-linux-gnu/qt4/plugins
QT_INSTALL_IMPORTS:/usr/lib/qt4/imports
QT_INSTALL_TRANSLATIONS:/usr/share/qt4/translations
QT_INSTALL_CONFIGURATION:/etc/xdg
QT_INSTALL_EXAMPLES:/usr/lib/qt4/examples
QT_INSTALL_DEMOS:/usr/lib/qt4/demos
QMAKE_MKSPECS:/usr/share/qt4/mkspecs
QMAKE_VERSION:2.01a
QT_VERSION:4.8.1
按照你机器的具体情况来配置qt.conf(在/usr/bin中,如果没有新建一个)
qt.conf写法如下
http://qt-project.org/doc/qt-5.0/qtdoc/qt-conf.html
修正到
qmake -query
出来的打印正确为止.
祝你好运! |
|