Project ERROR: Unknown module(s)
-
I have an application which runs with Qt creator 2.7.0 (32 bit) in Win xp.
The same application I 'm trying to run it on Qt creator 6.0.2 Win 8.1 64 bit but I get this error:
:-1: error: Project ERROR: Unknown module(s) in QT: scriptThis is a screenshot from my Kits tab in Qt creator:
How can I fix it?
-
On my 64 bit machine I have also installed Qt creator 2.7.0 so I will try with this one.
But how can I install a kit?
This is a screenshot from the tab Kits in Qt creator 2.7.0:I see no maintenance tool.
-
If you want to use QtScript in Qt6 you will be out of luck: "Warning: This module is not actively developed. It is provided for backwards compatibility with Qt 4 only. For new code, use QJSEngine and related classes in the Qt QML module instead."
And please update your ancient QtCreator, also Qt is not QtCreator, so ' Qt 2.7.0' is wrong.
-
@Panoss said in Project ERROR: Unknown module(s):
Qt creator 2.7.
You said Qt 2.7! Not Qt Creator, which is quite different and has different version numbering.
Others will tell you better, but it doesn't surprise me if there is no maintenance tool available for a 10-year-old Creator version.
-
Again: What Qt version do you want to use? You can install a Qt version via the Qt online installer. But you will to stay at Qt5.15 since, as I wrote earlier, QtScript is removed in Qt6
I want ot run it on Qt Creator 2.7.0 because it can't run on Qt creator 6.0.2.
Please re-read this sentence ... what do you want to tell us here?
-
@Panoss said in Project ERROR: Unknown module(s):
Can I use Qt creator 6.0.2 and install in it an older kit suitable for my case?
Again - what do you ask here?
QtCreator is an IDE, Qt is a C++ framework - already told you twice.
-
You should install only the Qt version for your compiler, not simply selecting all...
-
@Christian-Ehrlicher you were right.
Now this is what I have (I installed on Qt Creator 6.0.2 the Qt 5.15.0 MinGW64bit):What else must I do? I keep getting the same error.
-
Hi,
You have to install QtScript separately (check the content of the online installer). It was deprecated for 5.6 and removed from the pre-built binary since 5.7.
Worst case scenario, you have to build the module yourself.
-
Then clone and build the module.
-
@Panoss said in Project ERROR: Unknown module(s):
@SGaist there is nothing like QScript in the list of the online installer.
It's here