Unsolved Project ERROR: Unknown modules in QT
-
I'm receiving the following error in QT Creator after selecting my project:
Project ERROR: Unknown module(s) in QT: qml quickwidgets location positioningOS is Xubuntu 18.04. The Qt installation with the Online Installer failed (stopped at 46% for Qt 5.11.2), but the Ubuntu packages (qt5-default and qtcreator) could be installed without any issues.
Same project works fine in my Windows environment.
Do you have any advice?
-
@reichi qt5-default is not enough.
you need to search for the additional packages and install them.
-
Thank you, aha_1980. I went through the packages related to qt5 and qml, installed everything where I could imagine it might help, but without any result. It's still complaining about the unknown modules. Maybe the modules are installed but Qt Creator cannot find? But where to look at?
-
Hi,
Did you check that you are now using your distribution provided Qt to build your project ?
-
@SGaist You mean to check the PATH? I'm not quite sure what to check...
-
@reichi said in Project ERROR: Unknown modules in QT:
@SGaist You mean to check the PATH? I'm not quite sure what to check...
See console output in Qt Creator, when you run qmake. It will contain all the paths -> check if the path is from your OS or from the (incomplete) installation you did.
-
@sierdzio Hi sierdzio, my Qt Creator does not say much: "QFileSystemWatcher: skipping native engine, using only polling engine". But I just realized that I have 5 Qt creators on my system. So I think I have to come to a clean system first. Do you have recommendation how to install?
-
Hi,
To start, install the version coming from your distribution. If not recent enough, go for the online installer.
-
@SGaist Now it works. I cleaned up existing QT installations. And installed the following packages:
qtcreator, qtbase5-dev, qtdeclarative5-dev