cyrenity / mod_whisper

A FreeSWITCH module to interface to your speech recognition server over websocket
24 stars 12 forks source link

load module error #11

Open chubenli opened 10 months ago

chubenli commented 10 months ago

hi, I had porblem when i load this module on freeswitch, which return the error like this

2023-09-04 18:02:41.525076 [CRIT] switch_loadable_module.c:1785 Error Loading module /usr/local/freeswitch/lib/freeswitch/mod/mod_whisper.so
**/usr/local/freeswitch/lib/freeswitch/mod/mod_whisper.so: undefined symbol: lws_wsi_user**

And i had install ths libwebsockets, and the version of libwebsockets is v4.3.2

ldconfig -p |grep libwebsockets

return:

    libwebsockets.so.19 (libc6,x86-64) => /usr/local/lib/libwebsockets.so.19
    libwebsockets.so.13 (libc6,x86-64) => /usr/lib64/libwebsockets.so.13
    libwebsockets.so (libc6,x86-64) => /usr/local/lib/libwebsockets.so

Thanks in advance.

cyrenity commented 10 months ago

You need to re-compile after installing libwebsockets

laurieodgers commented 3 weeks ago

@chubenli did you solve this?

I have the same issue and it looks like its an issue with linking libwebsockets in at compile time.

I'm on debian 12 in docker so every compile is a fresh compile after installing libwebsockets and libwebsockets-dev. Recompiling results in the same issue