Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Ubuntu 16.04: Unknown module(s) in QT: quickcontrols2
Forum Updated to NodeBB v4.3 + New Features

Ubuntu 16.04: Unknown module(s) in QT: quickcontrols2

Scheduled Pinned Locked Moved Solved QML and Qt Quick
6 Posts 3 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    diego-qt
    wrote on last edited by
    #1

    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 via apt-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.

    JonBJ 1 Reply Last reply
    0
    • D diego-qt

      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 via apt-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.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @diego-qt
      According to e.g. https://forum.snapcraft.io/t/qt-app-with-no-system-libraries-and-without/7638/30

      Ubuntu 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 ?

      D 1 Reply Last reply
      0
      • JonBJ JonB

        @diego-qt
        According to e.g. https://forum.snapcraft.io/t/qt-app-with-no-system-libraries-and-without/7638/30

        Ubuntu 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 ?

        D Offline
        D Offline
        diego-qt
        wrote on last edited by
        #3

        @JonB I didn't know that 16.04 didn't have this package, I guess my project can't be compiled this way in my computer ?
        Should I find another way to install Qt instead ?

        JonBJ jsulmJ 2 Replies Last reply
        0
        • D diego-qt

          @JonB I didn't know that 16.04 didn't have this package, I guess my project can't be compiled this way in my computer ?
          Should I find another way to install Qt instead ?

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @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 an apt 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....

          1 Reply Last reply
          0
          • D diego-qt

            @JonB I didn't know that 16.04 didn't have this package, I guess my project can't be compiled this way in my computer ?
            Should I find another way to install Qt instead ?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @diego-qt Installing manually a newer Qt version could help maybe. But it depends what the highest Qt version is which can be installed on Ubuntu 16.04. Qt Online Installer can be used to install Qt.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • D Offline
              D Offline
              diego-qt
              wrote on last edited by
              #6

              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 if quickcontrols2 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

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved