Unknown Module QML
-
Running QT 5.15.3 On Linux Machine. Useing QT Creator 6. Tried to build project. Got error "Unknown module QML". It 's been suggested that the qml module was not install by the default installer and I should reinstall qt.
Looked for the qml module using the online installer but, I could not find it. How do I install it? Should I remove qt5 and install qt6? If so what is the best way to do it?
Thanks,
Marty -
Running QT 5.15.3 On Linux Machine. Useing QT Creator 6. Tried to build project. Got error "Unknown module QML". It 's been suggested that the qml module was not install by the default installer and I should reinstall qt.
Looked for the qml module using the online installer but, I could not find it. How do I install it? Should I remove qt5 and install qt6? If so what is the best way to do it?
Thanks,
MartyHi,
5.15.3 was not provided as pre-built Qt version so there might be something fishy here.
-
Hi,
5.15.3 was not provided as pre-built Qt version so there might be something fishy here.
@SGaist - Ran qmake --version to list qt version in use. Result QT V 5.15.3 in /USR/LIB/X86-64-LINUX-GNU, QMAKE v 3.1.
Looking in that directory shows both qt5 and qt 6 directories.
The qt-unified-linux-x64-4.6.1-online.run online installer shows only qt 5.15.2. Unfortunately I do not remember how I installed qt 5.15.3.
So now how do I completely remove the existing qt 5.15.3 version without harming my system or qt6?
Using the online installer to remover it did not work.
Should I just install 5.15.2 over 5.15.3?qt-chooser does not see qt6. It reports only default, qt4 and qt5. Is there a problem with qtchooser and how do I fix it.
Thanks,
Marty -
@SGaist - Ran qmake --version to list qt version in use. Result QT V 5.15.3 in /USR/LIB/X86-64-LINUX-GNU, QMAKE v 3.1.
Looking in that directory shows both qt5 and qt 6 directories.
The qt-unified-linux-x64-4.6.1-online.run online installer shows only qt 5.15.2. Unfortunately I do not remember how I installed qt 5.15.3.
So now how do I completely remove the existing qt 5.15.3 version without harming my system or qt6?
Using the online installer to remover it did not work.
Should I just install 5.15.2 over 5.15.3?qt-chooser does not see qt6. It reports only default, qt4 and qt5. Is there a problem with qtchooser and how do I fix it.
Thanks,
MartyIt seems you are mixing system and Qt online installer versions of Qt.
You should not try to nuke the versions from your system as it's likely used by your desktop environment and/or applications you installed.
You should ensure that you are using a kit that is configured to use the Qt online installer version of Qt. If you would like to use the one from your system, you need to install the corresponding dev packages.
As for qtchooser, you shouldn't use it to try and look for your custom Qt installed. If on the command line, use the explicit path to the qmake executable of the Qt version you want to use to build your application.
-
OK. I'll keep 5.15.3. I have also installed qt6 and all of it's parts.
I'm using qtcreator to build two projects that compiled under 5.15.2. on another PC long gone now.
I need to point qtCreator to the proper version of qmake and get it to use qt6. So many options I do not know which to change. Tried using qmake6. That gave me more errors.
Marty
-
OK. I'll keep 5.15.3. I have also installed qt6 and all of it's parts.
I'm using qtcreator to build two projects that compiled under 5.15.2. on another PC long gone now.
I need to point qtCreator to the proper version of qmake and get it to use qt6. So many options I do not know which to change. Tried using qmake6. That gave me more errors.
Marty
If Qt Creator did not detect that version, did you create a new kit for Qt 6 ?
-
I do not know if I created a kit or not. I did change the enviroment path and qtdir to those for qt6. Now qtcrteator sees qt6 and it's associted compilers.
If do gcc --version I get 11.4. My projects still will not compile. Looks like it wants to use C++17 compiler. The highest version I have is 15. How do I install C++17. Not much on the net.
Thanks,
Marty -
I do not know if I created a kit or not. I did change the enviroment path and qtdir to those for qt6. Now qtcrteator sees qt6 and it's associted compilers.
If do gcc --version I get 11.4. My projects still will not compile. Looks like it wants to use C++17 compiler. The highest version I have is 15. How do I install C++17. Not much on the net.
Thanks,
MartyYou don't install C++17, you install a compiler that supports it.
-
OK. How do I know which compiler supports C++17?
I have about 10 listed under Manage Kits. I'll see what I can find on the net.Thanks,
MartyCheck the Qt 6 supported platforms page and see if it applies to your Linux distribution.