How to install socket.io boost library in qt
-
Installing boost has nothing to do with Qt. You need to get it "the normal way" - on Linux you'll typically use your distributions package manager, for example.
Then, to add boost to your Qt project (or any other library), you need to do 2 things:
INCLUDEPATH += path/to/library/include LIBS+=-Lpath/to/lib -lnameOfLibrary
-
@aha_1980 Thank you for reply,
i had add included the path of rapidjson, websocketpp and boost library file in to my project to integrate socket.io in t my project, but I am getting error as
"" F:\socket.io code\socketioconnection\websocketpp\transport\asio\connection.hpp:426: error: no matching function for call to 'make_shared(std::reference_wrapperboost::asio::io_context)'
lib::ref(*io_service)); ""
^ -
-
@megha said in How to install socket.io boost library in qt:
Can anyone help me to install boost library
Initially I'd say "this is not related to Qt at all..." However, since it's always good know how to integrate 3rd party libraries within Qt applications, I'd say let's give it a try.
By searching for "socket.io boost library" turned out that there's no socket.io compoment from Boost itself, but a sockect.io C++ client based on Boost and WebSocket++ libraries.
One good thing for that socket.io C++ client is that it has a detailed step by step example of a Qt based chat application. One thing though regarding that tutorial is that it assumes you already have Boost properly installed, which seems not to be your case.
Have you followed this socket.io C++ client installation steps?
In particular, the "Boost setup section"?And if Boost installation/setup keeps giving you headaches, you may want to take a look at this socket.io C++ client without Boost, which also includes a Qt example.