Websockets support[solved]
-
You can also get them from the installer
-
You don't have them in the qtwebsocket folder ?
-
That sounds strange, if you can't compile the sources you get from the installer then just clone the qtwebsocket from code.qt.io
-
When I try to clone repository I get.
http://ctrlv.cz/Xhhn -
IIRC there was some problem of server accessibility can you retry ?
-
and call
nmake install
if applicable -
I tried to build it, but it failed, so I tried run sync from command prompt, bud I get
C:\Users\Sony>perl -w C:\Qt5\5.4\winphone_arm\bin\syncqt.pl -module QtWebsocket
-version 5.4.3 -outdir C:\qtwebsockets3 -verbose
Use of uninitialized value $val in string eq at C:\Qt5\5.4\winphone_arm\bin\sync
qt.pl line 727.
Use of uninitialized value $val in string eq at C:\Qt5\5.4\winphone_arm\bin\sync
qt.pl line 729.
Use of uninitialized value $val in int at C:\Qt5\5.4\winphone_arm\bin\syncqt.pl
line 732.
No such module: QtWebsocket at C:\Qt5\5.4\winphone_arm\bin\syncqt.pl line 817.Might it be problem, that I am using Qt 5.4.1?
-
What failure did you hit ?
-
That I understood, my question was: what errors are you getting when building ?
-
I am getting http://ctrlv.cz/Xe5c
-
Looks like you don't have perl installed on your system or is it Qt Creator that doesn't find it ?
If you have perl, what version is it ?
-
Do you have more details about the perl error ?
-
Use of uninitialized value $val in string eq at C:\Qt5\5.4\winphone_arm\bin\sync
qt.pl line 727.
Use of uninitialized value $val in string eq at C:\Qt5\5.4\winphone_arm\bin\sync
qt.pl line 729.
Use of uninitialized value $val in int at C:\Qt5\5.4\winphone_arm\bin\syncqt.pl
line 732.
No such module: QtWebsocket at C:\Qt5\5.4\winphone_arm\bin\syncqt.pl line 817.It might could be caused by, that QtWebsockets are not listed in some variable, which contains supported modules.
-
I solved it by updating Qt to 5.5 beta.
EDIT: I build app successfully, but app will stack on loading screen if I add Websockets to .pro file.
EDIT: EDIT: Seems that Websocket are not implemented yet for Qt Quick, so I solved it by rewriting component in C++ and adding internet permission to appmanifest.xml