日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

‘struct lws_context_creation_info’ has no member named ‘ws_ping_pong_interval’

發(fā)布時(shí)間:2023/12/20 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ‘struct lws_context_creation_info’ has no member named ‘ws_ping_pong_interval’ 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

原文標(biāo)題為:How to solve Janus Gateway Build error: ‘struct lws_context_creation_info’ has no member named ‘ws_ping_pong_interval’

以下是原文給出的解決辦法:

We wrote recently a detailed guide about how to install Janus Gateway on Ubuntu 18.04 on this article. The tutorial works great, however you will face some exceptions when you try to use the latest version of the libraries that Janus needs to work.

In this case, this issue was reported on our YouTube channel a couple of days after we published the tutorial. When you install the latest version of libwebsockets and Janus 0.10.0, if you try to run make on the janus gateway source code, the following exception will be triggered:

transports/janus_websockets.c: In function ‘janus_websockets_init’: transports/janus_websockets.c:535:11: error: ‘struct lws_context_creation_info’ has no member named ‘ws_ping_pong_interval’wscinfo.ws_ping_pong_interval = pingpong_trigger;^ Makefile:2204: recipe for target 'transports/transports_libjanus_websockets_la-janus_websockets.lo' failed make[2]: *** [transports/transports_libjanus_websockets_la-janus_websockets.lo] Error 1 make[2]: Leaving directory '/root/janus-installers/janus-gateway' Makefile:3189: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/root/janus-installers/janus-gateway' Makefile:1431: recipe for target 'all' failed make: *** [all] Error 2

Copy snippet

It seems to happen only when libwebsockets has been built from the current master, so forcing a stable version like

# 1. Clone libwebsockets repo git clone https://github.com/warmcat/libwebsockets.git # 2. Change to its directory cd libwebsockets # 3. Use the stable v2.4 git checkout v2.4-stable# 4. Follow the steps to build it mkdir build cd build cmake -DLWS_MAX_SMP=1 -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_C_FLAGS="-fpic" .. make && sudo make install

Copy snippet

After building libwebsockets with the specified version, you should be able now to run make on the janus directory.

Happy coding ??!

?

總結(jié)

以上是生活随笔為你收集整理的‘struct lws_context_creation_info’ has no member named ‘ws_ping_pong_interval’的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。