Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to install socket.io boost library in qt
Hii, i am new to QT...
Can anyone help me to install boost library .
Thanks in advance
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
VRonin last edited by
Small side note to @sierdzio , most of boost is header only so there's a chance you don't even need the
Then how to add the boost library to project in windows
so where is your problem? What did you actually do so far?
VRonin last edited by
@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)'
Sorry I have no experience with that library.
- Can you explain how you installed socket.io?
- Please avoid paths with spaces and non-ASCII characters (
- Can you give a bit more information about the error? I.e. show your code where the error appears?
Pablo J. Rogina last edited by
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.
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.
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.