Solved Building QT Creator from source problem: Unknown module(s) in QT: script.
-
Hi there,
I'm running on Linux (Debian 8.8). I'm using QT 5.9.2 and attempting to build Qt Creator 4.4.1 from source, as this is a pre-requisite to be able to build a QTC plugin I have worked on in the past.
However, I'm running into the error: Project ERROR: Unknown module(s) in QT: script.
From the "building QT Creator from Git" tutorial page, it doesn't appear as though I need to build QT from source in order to build QTC from source, is this correct? I have already installed the qt-opensource-5.9.2 package, but from my research into other threads where people have similar issues (here, here, here) it appears as thought the qtscript module was deprecated in QT 5.5 onwards.
Does this mean that QTC 4.4.1 is dependent on a module that isn't present in the latest QT distributions (or am I misinterpreting things - totally possible knowing myself ;-)...)?
Furthermore, from these threads, it looks like if I want to build QTC 4.4.1 with QT 5.9.2, I therefore need to build QT from sources, and I would appreciate some feedback on whether this logic is correct before continuing.
I also spotted this thread, which mentions building the qtscript module using a shadow build as per the following:
mkdir c:\Qt\ builddir\qtscript -p
cd c:\Qt\builddir\qtscript
qmake C:\Qt56\5.6\Src\qtscript
nmake or jom
nmake installDoes the 'builddir' here reference the build directory for QT from source? It seems to suggest just manually adding the qtscript module to the other modules included in the default QT package built.
Basically, I'm a little confused as to what is necessary to build QT Creator from source with QT versions 5.5 and above, and would greatly appreciate some help!
Thanks in advance,
Ben -
@bmarsden10 said in Building QT Creator from source problem: Unknown module(s) in QT: script.:
Does this mean that QTC 4.4.1 is dependent on a module that isn't present in the latest QT distributions (or am I misinterpreting things - totally possible knowing myself ;-)...)?
Hi,
you're right, Creator depends on a deprecated Qt module. However, deprecated does not mean unusable, it just means it is no longer actively maintained. If someone would step up, it could be re-animated.
Regarding your questions: No, you don't need to build Qt yourself to build Creator. If you have installed Qt through the online installer, then there is a separate option Qt script - deprecated. If you installed by the package manager you need to search if it provides the package.
Last solution would be to build from source:
Does the 'builddir' here reference the build directory for QT from source? It seems to suggest just manually adding the qtscript module to the other modules included in the default QT package built.
No, this can be arbitrary.
make install
copies the build results to the Qt installation dir (this may need root rights)Hope that helped!
-
@aha_1980 said in Building QT Creator from source problem: Unknown module(s) in QT: script.:
Regarding your questions: No, you don't need to build Qt yourself to build Creator. If you have installed Qt through the online installer, then there is a separate option Qt script - deprecated. If you installed by the package manager you need to search if it provides the package.
...Hope that helped!
Wow, I cannot believe that simple check box was what I was missing! I'm ashamed to say I even re-installed QT a couple of times and still didn't spot it... Anyway, upon adding the QT script (deprecated) module via the maintenance tool to my QT installation, QT Creator successfully built and ran.
Thank you; I really appreciate you taking the time to point me in the right direction.
Kind regards,
Ben