Open sergsavchuk opened 1 year ago
P. S. I've already tried to modify libvosk.dylib
using install_name_tool
but got stuck with https://github.com/pyinstaller/pyinstaller/wiki/Recipe-OSX-Code-Signing#pyinstaller-fix-implementation
It is not about dylib itself, I believe dylib just have to be in the flutter package where linker finds it
It is not about dylib itself, I believe dylib just have to be in the flutter package where linker finds it
Actually, it's already there(it's placed to Frameworks during build): but linker tries to find it in the project root. And you gave me an idea - we can just create a symlink in the project root as a workaround 🤔
P. S. It looks like there is wrong version of the libvosk.dylib
inside the https://repo1.maven.org/maven2/com/alphacephei/vosk/0.3.45/vosk-0.3.45.jar
00:46 +5 -1: Recognizer Constructor grammar and #setGrammar give same result [E]
Invalid argument(s): Failed to lookup symbol 'vosk_recognizer_set_grm': dlsym(0x2020df5a0, vosk_recognizer_set_grm): symbol not found
Yes, we need to rebuild it eventually, see https://github.com/alphacep/vosk-api/issues/681
And we can package libvosk into framework too
Can this be implemented please
I tried to use
libvosk.dylib
from vosk-0.3.45 and got an error:After a little investigation, I found that
libvosk.dylib
does have a non-rpath reference inside, which is causing the problem:But I'm not much in macOS and CMake, so would appreciate any help in compiling the voks-api with RPATH enabled 🙏