Hi, how to integrate socket.io libraries to project
-
wrote on 3 Sept 2018, 07:58 last edited by
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?
wrote on 3 Sept 2018, 08:19 last edited by@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
-
wrote on 3 Sept 2018, 08:51 last edited by
sorry i downloaded c++ version only
-
wrote on 3 Sept 2018, 09:13 last edited by
in github lib folder is there i downloaded but i dont know how to add
-
Lifetime Qt Championwrote on 3 Sept 2018, 09:19 last edited by mrjj 9 Mar 2018, 09:19
@Bharth
Hi
Please look in
INSTALL. md
i think you have to build it first.
with cmake. -
wrote on 3 Sept 2018, 09:38 last edited by
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
-
wrote on 27 Aug 2024, 11:50 last edited by
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