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
Forum Updated to NodeBB v4.3 + New Features

Hi, how to integrate socket.io libraries to project

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 4 Posters 1.6k 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 3 Sept 2018, 07:13 last edited by aha_1980 9 Mar 2018, 13:11
    #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
    • V Offline
      V Offline
      VRonin
      wrote on 3 Sept 2018, 07:58 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
      • M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 3 Sept 2018, 08:11 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?

        V 1 Reply Last reply 3 Sept 2018, 08:19
        0
        • M mrjj
          3 Sept 2018, 08:11

          @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?

          V Offline
          V Offline
          VRonin
          wrote on 3 Sept 2018, 08:19 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 3 Sept 2018, 08:51 last edited by
            #5

            sorry i downloaded c++ version only

            1 Reply Last reply
            0
            • B Offline
              B Offline
              Bharth
              wrote on 3 Sept 2018, 09:13 last edited by
              #6

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

              M 1 Reply Last reply 3 Sept 2018, 09:19
              0
              • B Bharth
                3 Sept 2018, 09:13

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

                M Offline
                M Offline
                mrjj
                Lifetime Qt Champion
                wrote on 3 Sept 2018, 09:19 last edited by mrjj 9 Mar 2018, 09:19
                #7

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

                1 Reply Last reply
                2
                • V Offline
                  V Offline
                  VRonin
                  wrote on 3 Sept 2018, 09:38 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
                  • K Offline
                    K Offline
                    keksi venksi
                    wrote on 27 Aug 2024, 11:50 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