How to configure lws with LWS_WITH_SECURE_STREAMS?
OS - Ubuntu 20.04. I cloned the repository, then installed lws with cmake. Now I'm trying to compile examples. Server example Cmake shows me an error:
- Performing Test HAS_LWS_WITH_SECURE_STREAMS - Failed
CMake Error at /usr/local/lib/cmake/libwebsockets/LwsCheckRequirements.cmake:53 (message):
This project requires lws must have been configured with
LWS_WITH_SECURE_STREAMS
Call Stack (most recent call first):
CMakeLists.txt:14 (require_lws_config)
-- Configuring incomplete, errors occurred!
Did I miss something? How to configure the project to compile hello_world example?
First build lws with cmake option -DLWS_WITH_SECURE_STREAMS=1... if it's main, that is on by default now.
Then make && sudo make install.
Then you should be able to build the example from inside its dir. It is looking for the installed lws lws_config.h to check what options the library was built with. It won't work unless you did the make install part for lws first.
Ok, I rebuilt the library with the option and the example is compiled now. I don't know why it was not on by default on my system. Thank you.