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

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, 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
              • D DarkPatate
                6 May 2018, 09:07

                @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 Offline
                S Offline
                sierdzio
                Moderators
                wrote on 7 May 2018, 04:55 last edited by
                #22

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

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

                Looks like it. Shame it didn't work. Try the other options maybe, but they are less likely to work.

                (Z(:^

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  DarkPatate
                  wrote on 7 May 2018, 11:53 last edited by
                  #23

                  @SGaist now all the librairy are found. But there is a missing plugin:

                  pi@raspberrypi:~/Documents/appliUR $ ./appliUR 
                  This application failed to start because it could not find or load the Qt platform plugin "eglfs"
                  in "".
                  
                  Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, xcb.
                  
                  Reinstalling the application may fix this problem.
                  Aborted
                  

                  So I tried to create a sym link to the EGL lib too:

                  sudo ln -s /opt/vc/lib/libbrcmEGL.so /opt/vc/lib/libEGL.so
                  

                  But it didn't work. It's almost working!

                  @sierdzio I tried all options, without success.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    sierdzio
                    Moderators
                    wrote on 7 May 2018, 12:00 last edited by sierdzio 5 Jul 2018, 12:00
                    #24

                    Eglfs platform plugin is a Qt plugin, located in <qt dir>/plugins/platforms.

                    Most probably your Qt was compiled for XCB (X11) only. Try running your app with -platform xcb argument (but expect low performance from this plugin...).

                    (Z(:^

                    D 1 Reply Last reply 7 May 2018, 15:00
                    0
                    • S sierdzio
                      7 May 2018, 12:00

                      Eglfs platform plugin is a Qt plugin, located in <qt dir>/plugins/platforms.

                      Most probably your Qt was compiled for XCB (X11) only. Try running your app with -platform xcb argument (but expect low performance from this plugin...).

                      D Offline
                      D Offline
                      DarkPatate
                      wrote on 7 May 2018, 15:00 last edited by
                      #25

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

                      -platform xcb

                      I got the same pb with xcb. I tried also linuxfb and minimal, without success :/

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        sierdzio
                        Moderators
                        wrote on 7 May 2018, 15:07 last edited by
                        #26

                        I see. Well, that answer won't make you happy, perhaps, but: try following the "RPI eglfs" (Google it) guide and cross compile Qt yourself.

                        If definitely works, I've used Qt, with Qt Quick, many times. There are issues with the drivers, sure. But in general it works.

                        (Z(:^

                        D 1 Reply Last reply 19 May 2018, 21:06
                        0
                        • S sierdzio
                          7 May 2018, 15:07

                          I see. Well, that answer won't make you happy, perhaps, but: try following the "RPI eglfs" (Google it) guide and cross compile Qt yourself.

                          If definitely works, I've used Qt, with Qt Quick, many times. There are issues with the drivers, sure. But in general it works.

                          D Offline
                          D Offline
                          DarkPatate
                          wrote on 19 May 2018, 21:06 last edited by
                          #27

                          @sierdzio sorry for the very late reply, I was so busy. I tried this solution long time ago but I failed. I will try again and let you know :)

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            sierdzio
                            Moderators
                            wrote on 20 May 2018, 06:51 last edited by
                            #28

                            Here's the link by the way https://wiki.qt.io/RaspberryPi2EGLFS

                            I recommend getting the source tarball instead of using git: https://download.qt.io/archive/qt/5.10/5.10.1/single/ Less to download, no need to run init-repository - in general less hassle (unless you want to contribute to Qt, but that's not the case here).

                            (Z(:^

                            1 Reply Last reply
                            1

                            • Login

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