[Libwebsockets] lwsws build on linux mint 20.1

Steve Calfee stevecalfee at gmail.com
Tue Jul 6 05:39:08 CEST 2021

Thanks, That made it build. But first I tried cmake from the wrong
directory somewhere and the include directory was deleted. That broke the
build fast. However, "git restore include" fixed that back and now the
build works.

I have now come around to thinking that lwsws is the way to go for all but
the smallest systems. I am trying to get one of the test apps built, it is
not clear how to start and add new lwsws apps, but maybe that will get
clearer as I try.

Thanks for the help, Steve

On Mon, Jul 5, 2021 at 8:18 PM Andy Green <andy at warmcat.com> wrote:

> On 7/6/21 1:24 AM, Steve Calfee wrote:
> > Hi,
> >
> > I don't really understand all the cmake stuff. But on my linux system
> > the "main" branch does not build lwsws. I have to add -luv to get the
> > link to work.
> >
> > In .../libwebsockets/lwsws/CMakeFiles/lwsws.dir/link.txt if I change to
> > this it works:
> >
> > /usr/bin/cc   -rdynamic CMakeFiles/lwsws.dir/main.o  -o lwsws
> >   -lwebsockets -luv
> >
> > Here is the cmake output:
> >
> > .../libweb/libwebsockets/lwsws$ cmake .  -DLWS_WITH_LWSWS=1
> lwsws is built as part of lws build, it's not designed to be built
> standalone.  Lots of subdirs have their own CMakeLists.txt that is
> referred by parent levels, it doesn't necessarily mean you can build
> from inside a subdir as the toplevel build context just because it has a
> CMakeLists.txt in it.
> If you build lws from the toplevel with -DLWS_WITH_LWSWS=1 it should
> build lwsws without problems.  I use it myself and it's built as part of
> the CI, eg, main on Focal building lwsws
> https://libwebsockets.org/sai/index.html?task=3bba771f4ef93ad09e25b933283526f246e1f0637a564d8d2b656277a77c9d6a
> -Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20210705/72c7e110/attachment.htm>

More information about the Libwebsockets mailing list