Qt Version Is Invalid

Qt version is invalid

Problem solved :D.

QtCreator find libraries by using some qmake properties. It query for these properties by executing the command qmake -query. The issue was that none of these variables were set in the Qt 4.4.3 library while they were present in the Qt 4.7.4 library.

So the solution is to set the properties using

 home/$username/qt/Qt-4.4.3/bin/qmake -set VARIABLE VALUE

where value is usually a path to a directory

Variables in 4.7.4:

 QT_INSTALL_PREFIX: home/$username/qt/Qt-4.7.4/
QT_INSTALL_DATA:
QT_INSTALL_DOCS:
QT_INSTALL_HEADERS:
QT_INSTALL_LIBS:
QT_INSTALL_BINS:
QT_INSTALL_PLUGINS:
QT_INSTALL_IMPORTS:
QT_INSTALL_TRANSLATIONS:
QT_INSTALL_CONFIGURATION:
QT_INSTALL_EXAMPLES:
QT_INSTALL_DEMOS:
QMAKE_MKSPECS:
QMAKE_VERSION:2.01a
QT_VERSION:4.7.4

I think the most important are QT_INSTALL_LIBS, QT_INSTALL_LIBS and QT_VERSION.
see configuring qmake environment.

Qt Creator 2.6.2 and Qt 4.8.4: Qt version is not properly installed

Based on SO: How to install Qt on Windows after building? I eventually got to http://qt-project.org/doc/qt-4.8/install-win.html

Simply running configure solved it for me, I did not build, nothing else. The installer did apply several patches, so I still do not get why I have to run configure.

Qtvsaddin clears the uninstalled Qt version

VS add-in (aka Qt Visual Studio Tools) is independent of installed Qt versions, in the sense that the list is maintain separately. You can add and remove versions as you want (even duplicated with different names). When you remove a version in VS it should be removed from both the list view and the combo box, so if it was kept there it is probably due to a bug in the add-in.

You can check the list of versions in the Registry Editor at HKCU\Software\Digia\Versions. You'll see there a key for each version as well as a value with the default one.

Registry Editor

Close all instances of Visual Studio. Then remove your version from there and check that there is no value containing such version in HKCU\Software\Digia\Versions. Modify at your risk ;) (do a backup of the key before starting).

Qt VS Tools: error reading VS project settings

Well, after some more procedures that didn't help, I just did clean-reinstallation for my Windows 10. Fortunately, that helped :)

Qt Include and QMake error

Assuming you're using a recent version of Qt, such as version 4.7.4, and a recent version of Qt Creator, such as the branch 2.3 .*.

Probably somewhere in this process, Qt Creator or the settings for this specific project lost the reference to Qt install.

We first need to find out if Qt Creator knows where Qt is installed. Go to Tools > Options.... Then click in Qt4. Here will show all installed and detected Qt versions.

Detected Qt versions

As you can see, I have one Qt version installed (4.7.4), which was automatically detected.

If you do not have any installed version, you need to indicate a one manually. Simply click Add and point it to the right qmake.exe. Use the paths of the figure as reference. If you are developing a windows/mingw application, just need to add the qmake.exe associated with mingw (c:\qtsdk\desktop\qt\4.7.4\mingw\bin\qmake.exe on my computer) and remember the Version name, we'll need that in next step.

After that, open the project and click on Projects in the lateral bar. You need to Substitute the Qt version. Click on Manage next to it and select the correct version. This should resolve the problem.

Changing the project's Qt version

Any trouble just comment. Sorry about the creepy english.



Related Topics



Leave a reply



Submit