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. How to run a qml applicatiion with wegbl on a embedded system?
Qt 6.11 is out! See what's new in the release blog

How to run a qml applicatiion with wegbl on a embedded system?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
13 Posts 2 Posters 1.4k Views 1 Watching
  • 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.
  • SGaistS SGaist

    Hi,

    You need to build the qtwebglplugin project in order to have its QPA available. I don't know whether it's doable in a cross-compilation context.

    F Offline
    F Offline
    feixu
    wrote on last edited by
    #3

    @SGaist
    thanks for your reply,I think I need to cross compile the whole Qt lib

    1 Reply Last reply
    0
    • F Offline
      F Offline
      feixu
      wrote on last edited by feixu
      #4

      @SGaist
      Hi:
      I crosscompile the qt with -opengl es2,and copy the libqwebgl.so to my beaglebone , but still can't run the qml with webgl,
      this is the log informatiaon:

      Found metadata in lib /opt/libqwebgl.so, metadata=
      {
      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
      "MetaData": {
      "Keys": [
      "webgl"
      ]
      },
      "archreq": 0,
      "className": "QWebGLIntegrationPlugin",
      "debug": false,
      "version": 331264
      }

      Got keys from plugin meta data ("eglfs")
      QFactoryLoader::QFactoryLoader() looking at "/usr/lib/plugins/platforms/libqlinuxfb.so"
      Found metadata in lib /usr/lib/plugins/platforms/libqlinuxfb.so, metadata=
      {
      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
      "MetaData": {
      "Keys": [
      "linuxfb"
      ]
      },
      "archreq": 0,
      "className": "QLinuxFbIntegrationPlugin",
      "debug": false,
      "version": 331264
      }

      Got keys from plugin meta data ("linuxfb")
      QFactoryLoader::QFactoryLoader() looking at "/usr/lib/plugins/platforms/libqminimal.so"
      Found metadata in lib /usr/lib/plugins/platforms/libqminimal.so, metadata=
      {
      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
      "MetaData": {
      "Keys": [
      "minimal"
      ]
      },
      "archreq": 0,
      "className": "QMinimalIntegrationPlugin",
      "debug": false,
      "version": 331264
      }

      Got keys from plugin meta data ("webgl")
      QFactoryLoader::QFactoryLoader() checking directory path "/opt/platforms" ...
      Cannot load library /usr/lib/plugins/platforms/libqwebgl.so: (/usr/lib/plugins/platforms/libqwebgl.so: undefined symbol: ZNK20QPlatformIntegration28createPlatformSessionManagerERK7QStringS2, version Qt)
      QLibraryPrivate::loadPlugin failed on "/usr/lib/plugins/platforms/libqwebgl.so" : "Cannot load library /usr/lib/plugins/platforms/libqwebgl.so: (/usr/lib/plugins/platforms/libqwebgl.so: undefined symbol:"
      qt.qpa.plugin: Could not load the Qt platform plugin "webgl" in "/usr/lib/plugins" even though it was found.
      This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

      Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, webgl.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #5

        Are you sure you installed the plugin ?

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

        F 1 Reply Last reply
        0
        • SGaistS SGaist

          Are you sure you installed the plugin ?

          F Offline
          F Offline
          feixu
          wrote on last edited by feixu
          #6

          @SGaist
          HI:
          I just copy the libqwebgl.so to /root/usr/lib/plugins/platforms/ ,and run the qmi app with -platform webgl,:

          Found metadata in lib /opt/libqwebgl.so, metadata=
          {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
          "Keys": [
          "webgl"
          ]
          },
          "archreq": 0,
          "className": "QWebGLIntegrationPlugin",
          "debug": false,
          "version": 331264
          }
          Got keys from plugin meta data ("webgl")
          QFactoryLoader::QFactoryLoader() checking directory path "/opt/platforms" ...
          Cannot load library /usr/lib/plugins/platforms/libqwebgl.so: (/usr/lib/plugins/platforms/libqwebgl.so: undefined symbol: ZNK20QPlatformIntegration28createPlatformSessionManagerERK7QStringS2, version Qt)

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #7

            @feixu said in How to run a qml applicatiion with wegbl on a embedded system?:

            I just copy the libqwebgl.so to /root/usr/lib/plugins/platforms/

            Where does that plugin come from ?

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

            F 1 Reply Last reply
            0
            • SGaistS SGaist

              @feixu said in How to run a qml applicatiion with wegbl on a embedded system?:

              I just copy the libqwebgl.so to /root/usr/lib/plugins/platforms/

              Where does that plugin come from ?

              F Offline
              F Offline
              feixu
              wrote on last edited by
              #8

              @SGaist
              hi:
              after cross compile the whole qt5.14.2, I found libqwebgl.so in :
              /qt-everywhere-src-5.14.2/qtwebglplugin/plugins/platforms/ .
              then I copy it to my beaglebone : /root/usr/lib/plugins/platforms/

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #9

                Which version of Qt are you using on your device ?
                You seem to be putting the plugin in a system folder rather than in a dedicated Qt installation,

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

                F 1 Reply Last reply
                0
                • SGaistS SGaist

                  Which version of Qt are you using on your device ?
                  You seem to be putting the plugin in a system folder rather than in a dedicated Qt installation,

                  F Offline
                  F Offline
                  feixu
                  wrote on last edited by feixu
                  #10

                  @SGaist

                  1. Which version of Qt are you using on your device ?
                    qt5.14.2
                    2.You seem to be putting the plugin in a system folder rather than in a dedicated Qt installation,
                    yes,I use ti‘s sdk . qt cannot be installed directly on the bbb,need to be cross compiled on the PC
                    first,and copy to the board.
                    I saw Qt Quick WebGL platform plugin worked on a Raspberry PI:
                    https://www.qt.io/blog/2017/03/24/webgl-streaming-raspberry-pi-zero-w
                    Is qt installed directly on Raspberry PI:?
                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #11

                    The raspbian provides Qt but it usually is a bit behind the current version and thus most people cross-compile it.

                    As for your use case, where exactly did you install your cross-compiled Qt ?

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

                    F 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      The raspbian provides Qt but it usually is a bit behind the current version and thus most people cross-compile it.

                      As for your use case, where exactly did you install your cross-compiled Qt ?

                      F Offline
                      F Offline
                      feixu
                      wrote on last edited by feixu
                      #12

                      @SGaist
                      Thank you for your continued help, this issue has been resolved.
                      this time I copy the whole cross-compiled qt lib to the board ,replace the prebuilt qt lib。
                      now it‘s working。
                      running qml in the web browser is really awesome~ I don't need a touch screen anymore
                      webgl.jpg

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #13

                        Great !

                        Then please mark the thread as solved so other forum users may know a solution has been found :-)

                        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
                        0

                        • Login

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