warmcat / libwebsockets

canonical libwebsockets.org networking library

Home Page:https://libwebsockets.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

E: lws_create_context: failed to load evlib_glib

wi24rd opened this issue · comments

I enable the glib and gtk option in cmake config to complile gtk example. I make a log. [1]
Firstly, when compile that, it has errors. [1] line 14
I try to fix that via [2] and compile sucessfully then run that, it says "E: lws init failed". [1] line 1
BTW, what's the coding conventions of your project? If there's something like .clang-format, I can help keep consistency of code style.

[1] wi24rd/wlibwebsocket@a0aa85a#diff-d70d8230ddb9ad6e408007dfaa3ea8fd03001a227a75feb9b9e0ab6c3359960bR14
[2] wi24rd/wlibwebsocket@708fd13

This doesn't produce any errors here on Rocky 9 with -DLWS_WITH_GTK enabled. However looking at the errors, I pushed fixes on main.

Your editor seems like it wants to change unedited whitespace, that's not a great way.

As mentioned here https://github.com/warmcat/libwebsockets/blob/main/READMEs/README.contributing.md the coding style is that of the Linux kernel.