How to integerate this in Cmake based C++ project #1539
Replies: 2 comments 1 reply
-
You literally hit "make" in the folder. That's it. It builds all the examples including uSockets. It also literally prints the exact compiler invocation like so:
Which means that it becomes extremely easy and obvious what you need to replicate in <insert one of the 59 million different build systems for C++>. It is very rare for a project to be this clean in its invocation of the compiler, making it incredibly easy to understand and move into whatever environment or IDE or project file you may want. |
Beta Was this translation helpful? Give feedback.
-
These are not uWS bugs, your compiler is broken. Report bugs to your compiler vendor, not here. |
Beta Was this translation helpful? Give feedback.
-
Hi ,
I have tried various ways to integerate this into my Cmake based C++ project , without a sucess.
Steps followed:
git clone --recurse-submodules [email protected]:uNetworking/uWebSockets.git
boringssl
withlibuv
.WITH_BORINGSSL=1 WITH_LIBUV=1 make
uWebSockets
, by commandWITH_BORINGSSL=1 WITH_LIBUV=1 make -f ./GNUmakefile
With gcc 10.4.0 its was not compiling, so I repeated the process with gcc: 9.4.0 (Built ssl > usockets > uWebSockets).
After which it successfully was build :
./HelloWorld
example is runningI included the header files in my Cmake, and referenced the
uSockets.a
in my project. But still getting many errors.Can any one summarize or give me link to how to embed
uWebSockets
to a C++ based project with boringssl and libuv event loop ?My system specfications are:
OS: Ubuntu 20.04.5 LTS
GCC: 10.4.0
Beta Was this translation helpful? Give feedback.
All reactions