Ubuntu 16.04: Unknown module(s) in QT: quickcontrols2
-
Hello,
I am working on a Ubuntu 16.04, using Qt 5.5.1 and QMake version 3.0. I'm trying to compile a project by terminal but I get the error in the title.
As suggested in this question Unknown module(s) in QT: quickcontrols2, I have tried to install the requested package viaapt-get
but the package doesn't seem to exist$ sudo apt-get install qtquickcontrols2-5-dev Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package qtquickcontrols2-5-dev
I don't know if the package name has changed but I haven't found a replacement for it yet.
-
@diego-qt
According to e.g. https://forum.snapcraft.io/t/qt-app-with-no-system-libraries-and-without/7638/30Ubuntu 16.04 don’t have package qtquickcontrols2-5-dev, only qtquick1-5-dev
But I use in my app quickcontrols2. I need this particular package. Ubuntu 16.04 useless to me.
So do you have any evidence that 16.04 supports/comes with quickcontrols2 ?
-
@diego-qt
It's not installing Qt that is the problem, it is that apparently qtquickcontrols2 is not supplied/was not released at the time of your Ubuntu 16.04. That would mean that, assuming it can be made to work, you would probably have to compile it/Qt yourself. And that is "a lot of work", compared to what you are used to which is just downloading anapt
package.I am not an expert here. You should wait a while to see if someone who knows better than me can suggest if you can obtain it more easily....
-
I know for a fact that it is possible to have QtQuick.Controls 2 if Qt is built from source
I was looking for a simpler way to install Qt (apt-get
) and run a project of my own but ifquickcontrols2
doesn't allow it, I'll just have to continue with the online installer option
Thank you both, I'll close the topic if there isn't anything to add