Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Unknown module(s) in QT: quickcontrols2
QtWS25 Last Chance

Unknown module(s) in QT: quickcontrols2

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
28 Posts 3 Posters 18.4k 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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 5 May 2018, 19:04 last edited by
    #2

    Hi,

    What does qmake --version tell you ?

    What distribution are you using on your Pi ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    D 1 Reply Last reply 5 May 2018, 19:38
    0
    • S SGaist
      5 May 2018, 19:04

      Hi,

      What does qmake --version tell you ?

      What distribution are you using on your Pi ?

      D Offline
      D Offline
      DarkPatate
      wrote on 5 May 2018, 19:38 last edited by
      #3

      @SGaist Hi,
      The result of qmake version :

      QMake version 3.0
      Using Qt version 5.7.1 in /usr/lib/arm-linux-gnueabihf
      

      Here, my distribution:

      PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
      NAME="Raspbian GNU/Linux"
      VERSION_ID="9"
      VERSION="9 (stretch)"
      ID=raspbian
      ID_LIKE=debian
      HOME_URL="http://www.raspbian.org/"
      SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
      BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
      
      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 5 May 2018, 19:43 last edited by
        #4

        Do you have the libgles2-mesa-dev package installed ?

        You also need to install qtquickcontrols2-5-dev

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        D 1 Reply Last reply 5 May 2018, 19:49
        1
        • S SGaist
          5 May 2018, 19:43

          Do you have the libgles2-mesa-dev package installed ?

          You also need to install qtquickcontrols2-5-dev

          D Offline
          D Offline
          DarkPatate
          wrote on 5 May 2018, 19:49 last edited by
          #5

          @SGaist
          It's compiling!
          I just got a makefile error :

          /usr/bin/ld: cannot find -lGLESv2
          collect2: error: ld returned 1 exit status
          Makefile:143: recipe for target 'appliUR' failed
          
          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 5 May 2018, 19:50 last edited by
            #6

            Did you install libgles2-mesa-dev ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            D 1 Reply Last reply 5 May 2018, 19:59
            0
            • S SGaist
              5 May 2018, 19:50

              Did you install libgles2-mesa-dev ?

              D Offline
              D Offline
              DarkPatate
              wrote on 5 May 2018, 19:59 last edited by
              #7

              @SGaist
              Yes, I got the following result:

              pi@raspberrypi:~/Documents/urecran/appliUR $ sudo apt-get install libgles2-mesa-dev
              Reading package lists... Done
              Building dependency tree       
              Reading state information... Done
              libgles2-mesa-dev is already the newest version (13.0.6-1+rpi2).
              The following packages were automatically installed and are no longer required:
                lxkeymap python-cairo python-gobject python-gobject-2 python-gtk2 python-xklavier
              Use 'sudo apt autoremove' to remove them.
              0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
              
              

              (sorry I have to wait 600 seconds to post a new message)

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 5 May 2018, 20:02 last edited by
                #8

                What distribution are you using ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                D 1 Reply Last reply 5 May 2018, 20:12
                0
                • S SGaist
                  5 May 2018, 20:02

                  What distribution are you using ?

                  D Offline
                  D Offline
                  DarkPatate
                  wrote on 5 May 2018, 20:12 last edited by
                  #9

                  @SGaist As I said, I use Raspbian :

                  PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
                  NAME="Raspbian GNU/Linux"
                  VERSION_ID="9"
                  VERSION="9 (stretch)"
                  ID=raspbian
                  ID_LIKE=debian
                  HOME_URL="http://www.raspbian.org/"
                  SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
                  BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
                  

                  At less you want more informations?

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 5 May 2018, 20:45 last edited by
                    #10

                    Did you check whether you have this library somewhere on your OS ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    D 1 Reply Last reply 5 May 2018, 21:12
                    0
                    • S SGaist
                      5 May 2018, 20:45

                      Did you check whether you have this library somewhere on your OS ?

                      D Offline
                      D Offline
                      DarkPatate
                      wrote on 5 May 2018, 21:12 last edited by
                      #11

                      @SGaist I tried this function:

                      ldconfig -p | grep libgles2-mesa-dev
                      

                      I have no output, so I suppose the lib is not installed? So why apt-get told me it is already installed?

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 5 May 2018, 21:17 last edited by
                        #12

                        You are mixing the name of the package and the name of the library. Use grep -i gles.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        D 1 Reply Last reply 5 May 2018, 21:26
                        0
                        • S SGaist
                          5 May 2018, 21:17

                          You are mixing the name of the package and the name of the library. Use grep -i gles.

                          D Offline
                          D Offline
                          DarkPatate
                          wrote on 5 May 2018, 21:26 last edited by
                          #13

                          @SGaist said in Unknown module(s) in QT: quickcontrols2:

                          grep -i gles

                          I got this result:

                          pi@raspberrypi:/ $ ldconfig -p | grep -i gles
                          	libbrcmGLESv2.so (libc6,hard-float) => /opt/vc/lib/libbrcmGLESv2.so
                          	libGLESv1_CM.so.1 (libc6,hard-float) => /usr/lib/arm-linux-gnueabihf/libGLESv1_CM.so.1
                          

                          Both folder don't exist.

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 5 May 2018, 21:58 last edited by
                            #14

                            IIRC, the quick workaround would to create a symbolic link named libGLESv2.so to your libbrcmGLESv2.so

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            D 1 Reply Last reply 5 May 2018, 22:12
                            0
                            • S SGaist
                              5 May 2018, 21:58

                              IIRC, the quick workaround would to create a symbolic link named libGLESv2.so to your libbrcmGLESv2.so

                              D Offline
                              D Offline
                              DarkPatate
                              wrote on 5 May 2018, 22:12 last edited by
                              #15

                              @SGaist
                              I never did that before.
                              So I tried that :

                              sudo ln -s /opt/vc/lib/libbrcmGLESv2.so /opt/vc/lib/libGLESv2.so
                              

                              But now the compilation failed:

                              pi@raspberrypi:~/Documents/urecran/appliUR $ make
                              g++ -Wl,-O1 -Wl,-rpath-link,/usr/lib/arm-linux-gnueabihf -o appliUR main.o strategiesmodel.o communication.o qrc_qml.o moc_strategiesmodel.o moc_communication.o   -lQt5QuickControls2 -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGLESv2 -lpthread 
                              /usr/bin/ld: cannot find -lGLESv2
                              collect2: error: ld returned 1 exit status
                              Makefile:143: recipe for target 'appliUR' failed
                              make: *** [appliUR] Error 1
                              

                              It was the right command?

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on 5 May 2018, 22:14 last edited by
                                #16

                                Because the linker won't search for libraries in /opt/vc/lib/. Add it to your .pro file with a line like LIBS += -L/opt/vc/lib/

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                D 1 Reply Last reply 5 May 2018, 22:25
                                0
                                • S SGaist
                                  5 May 2018, 22:14

                                  Because the linker won't search for libraries in /opt/vc/lib/. Add it to your .pro file with a line like LIBS += -L/opt/vc/lib/

                                  D Offline
                                  D Offline
                                  DarkPatate
                                  wrote on 5 May 2018, 22:25 last edited by
                                  #17

                                  @SGaist
                                  Visibly another component need the lib and doesn't find the symbolic link. Sorry to be so nooby.

                                  pi@raspberrypi:~/Documents/urecran/appliUR $ make
                                  g++ -Wl,-O1 -Wl,-rpath-link,/usr/lib/arm-linux-gnueabihf -o appliUR main.o strategiesmodel.o communication.o qrc_qml.o moc_strategiesmodel.o moc_communication.o   -L/opt/vc/lib/ -lQt5QuickControls2 -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGLESv2 -lpthread 
                                  /usr/bin/ld: warning: libGLESv2.so.2, needed by /usr/lib/gcc/arm-linux-gnueabihf/6/../../../arm-linux-gnueabihf/libQt5Quick.so, not found (try using -rpath or -rpath-link)
                                  
                                  1 Reply Last reply
                                  0
                                  • D Offline
                                    D Offline
                                    DarkPatate
                                    wrote on 6 May 2018, 08:24 last edited by
                                    #18

                                    I am stupid, it's just a warning. The application compiled.
                                    I just have a problem when I want to execute the program. The symbolic link doesn't work:

                                    ./appliUR: error while loading shared libraries: libGLESv2.so: cannot open shared object file: No such file or directory
                                    
                                    1 Reply Last reply
                                    0
                                    • S Offline
                                      S Offline
                                      sierdzio
                                      Moderators
                                      wrote on 6 May 2018, 08:29 last edited by
                                      #19

                                      You need to enable the vc4 gpu driver in raspi-config. I think it is listed under experimental section.

                                      (Z(:^

                                      D 1 Reply Last reply 6 May 2018, 09:07
                                      0
                                      • S sierdzio
                                        6 May 2018, 08:29

                                        You need to enable the vc4 gpu driver in raspi-config. I think it is listed under experimental section.

                                        D Offline
                                        D Offline
                                        DarkPatate
                                        wrote on 6 May 2018, 09:07 last edited by
                                        #20

                                        @sierdzio
                                        I was in :

                                        7 Advanced options > A7 GL Driver > G1 GL (Full KMS)
                                        

                                        (I din't find reference to VC4 GPU Driver in my raspi-config)

                                        I don't now if it's that? But it didn't work, even after reboot.

                                        S 1 Reply Last reply 7 May 2018, 04:55
                                        0
                                        • S Offline
                                          S Offline
                                          SGaist
                                          Lifetime Qt Champion
                                          wrote on 6 May 2018, 21:56 last edited by
                                          #21

                                          Modify LD_LIBRARY_PATH so that it also point to that folder.

                                          Interested in AI ? www.idiap.ch
                                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                          1 Reply Last reply
                                          1

                                          11/28

                                          5 May 2018, 21:12

                                          • Login

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