WebGl - remote UI
-
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:1077i start the app like this : app -platform webgl
How can i solve this please ?
-Qt5.11
-MinGW32
-w7 -
@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!
-
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 -
@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 thesamegame
QML example: -
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! -
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, FlexDo i have to put Bison & Flex inside c:/gnuwin32/bin ?