[Libwebsockets] Minimal examples for webserver

Andy Green andy at warmcat.com
Wed Mar 4 20:07:25 CET 2020

On 3/4/20 7:02 PM, Pranjali Chumbhale wrote:
> Hello Andy,
> Yes, my current directory is example directory.
> ├── build

This is normally the right thing to do, but for the minimal examples, 
build them literally in-place so they can find the assets, eg

$ cd minimal-examples/http-server/minimal-http-server
$ cmake . && make && ./lws-minimal-http-server

They are looking for the assets in ./ not ../

You can also do in your case

$ cd ..
$ build/lws-minimal-http-server

and it'll also work.


More information about the Libwebsockets mailing list