Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Hi, how to integrate socket.io libraries to project
Qt 6.11 is out! See what's new in the release blog

Hi, how to integrate socket.io libraries to project

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 4 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bharth
    wrote on last edited by aha_1980
    #1

    i downloaded socket.io-client from github but i dont know how to add socket.io libraries to project please help

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      General: http://doc.qt.io/qt-5/third-party-libraries.html
      Using Qt Creator: http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      3
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Bharth said in Hi ,how to integrate socket.io libraries to project:

        sokcet.io-client

        hi
        this one ?
        https://github.com/socketio/socket.io-client

        it is javascript?

        VRoninV 1 Reply Last reply
        0
        • mrjjM mrjj

          @Bharth said in Hi ,how to integrate socket.io libraries to project:

          sokcet.io-client

          hi
          this one ?
          https://github.com/socketio/socket.io-client

          it is javascript?

          VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          @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

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          3
          • B Offline
            B Offline
            Bharth
            wrote on last edited by
            #5

            sorry i downloaded c++ version only

            1 Reply Last reply
            0
            • B Offline
              B Offline
              Bharth
              wrote on last edited by
              #6

              in github lib folder is there i downloaded but i dont know how to add

              mrjjM 1 Reply Last reply
              0
              • B Bharth

                in github lib folder is there i downloaded but i dont know how to add

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by mrjj
                #7

                @Bharth
                Hi
                Please look in
                INSTALL. md
                i think you have to build it first.
                with cmake.

                1 Reply Last reply
                2
                • VRoninV Offline
                  VRoninV Offline
                  VRonin
                  wrote on last edited by
                  #8

                  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

                  "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                  ~Napoleon Bonaparte

                  On a crusade to banish setIndexWidget() from the holy land of Qt

                  1 Reply Last reply
                  3
                  • keksi venksiK Offline
                    keksi venksiK Offline
                    keksi venksi
                    wrote on last edited by
                    #9

                    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

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved