socket.io-client-cpp
socket.io-client-cpp copied to clipboard
How to compile this project?
How to compile this project?
Hi, in order to make it compile, in addition to the instructions from https://github.com/socketio/socket.io-client-cpp/blob/master/INSTALL.md , I had to update one sub-module according to the instruction given in this issue : cf https://github.com/socketio/socket.io-client-cpp/issues/196
Hi, in order to make it compile, in addition to the instructions from https://github.com/socketio/socket.io-client-cpp/blob/master/INSTALL.md , I had to update one sub-module according to the instruction given in this issue : cf #196
Thanks! Could you tell me which version of the boost library should I use? I found a lot of errors refer to the boost library when I compile this project. My boost lirary version is 1.66.0
I used the latest version of boost (1.74.0). To install it I followed the insctructions from the boost section of the socketio installation (ie using ./bootstrap.sh, not installing it from the package manager). Ni idea if other versions work or not, I didn't tried.
NB : did you correctly specify the boost directory and version in cmake -DBOOST_ROOT:STRING=<your boost install folder> -DBOOST_VER:STRING=<your boost version> ./
PS : I tried this on Ubuntu 18.04 using the CMake installation. What OS(and version) and what method (Cmake/ without CMake) you are trying to use? PS2 : if the problem persists, it might be useful to have the beggining of the terminal output (from the start, stopping after a few errors should be enough)
I used the latest version of boost (1.74.0). To install it I followed the insctructions from the boost section of the socketio installation (ie using ./bootstrap.sh, not installing it from the package manager). Ni idea if other versions work or not, I didn't tried.
NB : did you correctly specify the boost directory and version in
cmake -DBOOST_ROOT:STRING=<your boost install folder> -DBOOST_VER:STRING=<your boost version> ./
PS : I tried this on Ubuntu 18.04 using the CMake installation. What OS(and version) and what method (Cmake/ without CMake) you are trying to use? PS2 : if the problem persists, it might be useful to have the beggining of the terminal output (from the start, stopping after a few errors should be enough)
I use windows 10 and CMake version is 3.19.0-rc2. cmake -DBOOST_ROOT:STRING="D:\boost_1_66_0" -DBOOST_VER:STRING="1.66.0" But the windows terminal shows: "Could not find BOOST...."( I had set the BOOST_ROOT environment variable)
I will have a bit more trouble helping you if the problem is Windows related (I'm doing all my programming on Linux).
For your boost version, it is already quite old (december 2017), but the last code update is a few month older, so I don't think that's the problem.
I think you forgot the end of the line (the "./"), not sure it if matters, but maybe try with it Also double check your path (check if the folder you need is not inside the boost_1_66_0 folder ; and if the path syntax is correct
Could you please check the installation steps, now that the dependency to Boost was removed (https://github.com/socketio/socket.io-client-cpp/commit/af68bf3067ab45dc6a53261284e0da9afd21b636)?