Websockets support[solved]
-
I can't build Websockets for WP arm.
-
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 ?
-
Perl 5.20.2 for MSWin 32bit. I have installed Active Perl.
-
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 -
Are you sure it's not just related to the permission missing ?
There's a QtQuick example here
-
Qt Creator seems it know WebsocketServer, but Websocket not. But I managed to get it working by rewriting component into C++.
-
Did you check if the example is working for you ?
-
It did not worked on 5.5 Windows Phone, but it worked on 5.4 (tested on Desktop and Android and iOS)