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. WebGl - remote UI

WebGl - remote UI

Scheduled Pinned Locked Moved Solved QML and Qt Quick
7 Posts 2 Posters 1.7k 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.
  • ODБOïO Offline
    ODБOïO Offline
    ODБOï
    wrote on last edited by
    #1

    Hi,
    I did a very minimal app for testing Remote access, there is only a Rectangle in the main window.

    When i try to access my qtQuick application with the FireFox browser, i only can see a green BusyIndicator and the ui is never loaded. In the browser console i have this :
    the connection with ws://127.0.0.1:64986/ was interrupted during page loading.

    With Chrome same thing with this output :
    webqt.js:71 WebSocket is already in CLOSING or CLOSED state.
    sendObject @ webqt.js:71
    check @ webqt.js:1069
    (anonymous) @ webqt.js:1077

    i start the app like this : app -platform webgl

    How can i solve this please ?

    -Qt5.11
    -MinGW32
    -w7

    1 Reply Last reply
    0
    • ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      I just enabled WebGL in Frefox setting webgl.force-enabled to true but still have same error

      DiracsbracketD 1 Reply Last reply
      0
      • ODБOïO ODБOï

        I just enabled WebGL in Frefox setting webgl.force-enabled to true but still have same error

        DiracsbracketD Offline
        DiracsbracketD Offline
        Diracsbracket
        wrote on last edited by Diracsbracket
        #3

        @LeLev
        Did you build Qt from source with the option -opengl es2?
        It seems to be required.

        https://forum.qt.io/topic/85835/webgl-example-qt5-10/2
        http://blog.qt.io/blog/2017/07/07/qt-webgl-streaming-merged/

        Without it, I get exactly the same as you (just a green Busy Indicator, then nothing.
        In Qt creator, the error I get is then:

        This plugin does not support dynamic OpenGL loading!
        
        ODБOïO 1 Reply Last reply
        1
        • DiracsbracketD Diracsbracket

          @LeLev
          Did you build Qt from source with the option -opengl es2?
          It seems to be required.

          https://forum.qt.io/topic/85835/webgl-example-qt5-10/2
          http://blog.qt.io/blog/2017/07/07/qt-webgl-streaming-merged/

          Without it, I get exactly the same as you (just a green Busy Indicator, then nothing.
          In Qt creator, the error I get is then:

          This plugin does not support dynamic OpenGL loading!
          
          ODБOïO Offline
          ODБOïO Offline
          ODБOï
          wrote on last edited by ODБOï
          #4

          hi,
          thx for answer,

          @Diracsbracket said in WebGl - remote UI:

          Did you build Qt from source with the option -opengl es2 ?

          I thought that is no more needed with qt5.11.
          Do i have to also build OpenGl es2 ?

          @Diracsbracket said in WebGl - remote UI:

          In Qt creator, the error I get is then:

          How do you get error in QtCrator ? are you running it from qt creator ?

          what i do is:

          qmake
          mingw32-make
          app.exe -platform webgl:port=8182

          DiracsbracketD 1 Reply Last reply
          0
          • ODБOïO ODБOï

            hi,
            thx for answer,

            @Diracsbracket said in WebGl - remote UI:

            Did you build Qt from source with the option -opengl es2 ?

            I thought that is no more needed with qt5.11.
            Do i have to also build OpenGl es2 ?

            @Diracsbracket said in WebGl - remote UI:

            In Qt creator, the error I get is then:

            How do you get error in QtCrator ? are you running it from qt creator ?

            what i do is:

            qmake
            mingw32-make
            app.exe -platform webgl:port=8182

            DiracsbracketD Offline
            DiracsbracketD Offline
            Diracsbracket
            wrote on last edited by
            #5

            @LeLev said in WebGl - remote UI:

            I thought that is no more needed with qt5.11.

            Oh, I didn't know that. Where did you read it?

            How do you get error in QtCrator ? are you running it from qt creator ?

            You can add the command line arguments in the Run settings of your project: For example, for the samegame QML example:

            0_1536888529857_5abb8859-6c9c-4ac0-a75c-294682806d74-image.png

            ODБOïO 1 Reply Last reply
            1
            • DiracsbracketD Diracsbracket

              @LeLev said in WebGl - remote UI:

              I thought that is no more needed with qt5.11.

              Oh, I didn't know that. Where did you read it?

              How do you get error in QtCrator ? are you running it from qt creator ?

              You can add the command line arguments in the Run settings of your project: For example, for the samegame QML example:

              0_1536888529857_5abb8859-6c9c-4ac0-a75c-294682806d74-image.png

              ODБOïO Offline
              ODБOïO Offline
              ODБOï
              wrote on last edited by ODБOï
              #6

              Thx a lot @Diracsbracket !

              @Diracsbracket said in WebGl - remote UI:

              Oh, I didn't know that. Where did you read it?

              actually i d'ont know why i was presuming that..

              edit : in that Qt Blog Jesús Fernández says : " if you want to give it a try before Qt 5.10 is released (~November 2017) do the following: ... " thats why i was presuming it is no more required.

              In any case i will build Qt from source with the option -opengl es2 today;
              Thx!

              1 Reply Last reply
              0
              • ODБOïO Offline
                ODБOïO Offline
                ODБOï
                wrote on last edited by ODБOï
                #7

                Now trying to build qt from source : http://doc.qt.io/qt-5/windows-requirements.html#building-from-source
                i have a doubt about this :

                
                ANGLE depends on these extra tools from the GnuWin32 and Win flex-bison projects, which are provided for your convenience in the gnuwin32/bin folder:
                
                    GPerf
                    Bison, Flex
                
                The gnuwin32/bin folder should be added to the PATH variable.
                

                i dl / installed GPerf from here http://gnuwin32.sourceforge.net/packages.html
                That created a folder c:/gnuwin32/bin ; but there are only 2 .dll files inside bin.
                i also downloaded Bison, Flex

                Do i have to put Bison & Flex inside c:/gnuwin32/bin ?

                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