Hi, how to integrate socket.io libraries to project
-
General: http://doc.qt.io/qt-5/third-party-libraries.html
Using Qt Creator: http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html -
@Bharth said in Hi ,how to integrate socket.io libraries to project:
sokcet.io-client
hi
this one ?
https://github.com/socketio/socket.io-clientit is javascript?
-
@Bharth said in Hi ,how to integrate socket.io libraries to project:
sokcet.io-client
hi
this one ?
https://github.com/socketio/socket.io-clientit is javascript?
@mrjj said in Hi ,how to integrate socket.io libraries to project:
it is javascript?
There's a C++ version as well https://github.com/socketio/socket.io-client-cpp
-
See https://forum.qt.io/topic/76533/copy-selected-rows-of-a-table-to-a-model/12 on how to build from CMake if you hever did it before. That post uses a different repository but the result is the same
-
https://github.com/socketio/socket.io-client-cpp/blob/master/INSTALL.md#with-cmake
The above link had the detailed info on how to build the socket io for C++
or follow what I have did
1- clone the vcpkg first , because it has all the required modules
git clone https://github.com/microsoft/vcpkg.git
2- then run the batch file to make vcpkg to install the required modules
.\bootstrap-vcpkg.bat
3- then install the required modules
.\vcpkg install boost-asio boost-system boost-random websocketpp openssl
4- then get the code for socketio cpp
git clone --recurse-submodules https://github.com/socketio/socket.io-client-cpp.git
5- make the build structures
mkdir build
cd build
6 then CMAKE it
cmake -G "Visual Studio 15 2017" -A x64 -DSIO_TLS=ON .
7 then build it
cmake --build . --config Debug