[Solved] QT_VERSION can't be recgonized
-
Hello:
I used niXman's mingw64-4.7.1 previously, and I compiled Qt-4.8.3, qt-creator-2.5.2 successfully, and used for a long while.
Recently I upgrade my compiler to niXman's mingw64-4.7.2, and qt-creator-2.5.2 ran smoothly.
Yesterday I tried to upgrade to qt-creator-2.6.0 but failed. When I compile qt-creator-2.6.0, the error message of qmake is like this:
@
Cannot build Qt Creator with Qt version .
Use at least Qt 4.8.0.
@I checked qtcreator.pro in the source, and I found there should be $${QT_VERSION} at the end of the first line, but it diapered.
Then I tried "qmake -quesry" but the output is correct.
I feel very confused, I can't understand it.
Now old Qt-4.8.3 and qt-creator-2.5.2 can run correctly, so I can continue my work, but I can't upgrade to qt-creator-2.6.0 and I can't add any QT_VERSION check in .pro files, it's not good.
Can anyone help me?
-
@
export QTDIR=/path/to/4.8.3
qmake qtcreator.pro
@Have you tried this?
-
thank you seierdzio. I have tried to set system variable such as QTDIR, QTLIB, but still failed.
This is the output of "qmake -query"
QT_INSTALL_PREFIX:C:\Qt
QT_INSTALL_DATA:C:/Qt
QT_INSTALL_DOCS:C:/Qt/doc
QT_INSTALL_HEADERS:C:/Qt/include
QT_INSTALL_LIBS:C:/Qt/lib
QT_INSTALL_BINS:C:/Qt/bin
QT_INSTALL_PLUGINS:C:/Qt/plugins
QT_INSTALL_IMPORTS:C:/Qt/imports
QT_INSTALL_TRANSLATIONS:C:/Qt/translations
QT_INSTALL_CONFIGURATION:C:/Qt
QT_INSTALL_EXAMPLES:C:/Qt/examples
QT_INSTALL_DEMOS:C:/Qt/demos
QMAKE_MKSPECS:C:/Qt\mkspecs
QMAKE_VERSION:2.01a
QT_VERSION:4.8.3 -
-
Thank you Lukas.
I tried your solution, and recompile Qt-4.8.3 and qt-creator-2.6.0 by niXman's mingw64-4.7.2-rev1.
Now everything runs well.
-
You need not have to recompile, just apply the fix to <code>device_config.pri</code>. But the most important thing is it works! ;-)
Feel free to prepend the topic title with '[Solved]' to indicate that there is a solution inside.