Linking and search path #1202
Replies: 1 comment 2 replies
-
You have to distinguish between a shared build and a static build of sherpa-onnx. For a static build with TTS, please refer to For a static build without TTS, please refer to For a shared build (regardless of with or without TTS), please refer to
In that case, only shared lib should be used.
Yes, as long as you run
Whe you use CUDA or directml, you have to use a shared lib of sherpa-onnx. By the way, it you want to always use a static build of sherpa-onnx, you need to change CMakeLists.txt so that The source code of sherpa-onnx can be built from the source, so it is possible to always use a static build. |
Beta Was this translation helpful? Give feedback.
-
I'm confused with linking and search path while creating bindings to sherpa-onnx in sherpa-rs/build.rs
Do I always need to link
kaldi-native-fbank-core
,sherpa-onnx-core
etc? What if shared libs is on eg. with Cuda or DirectML?As for
espeak-ng
,piper_phonemize
. always link static? only when tts enabled?I'm confuse with what to link and how.
Also regarding DLLs, they should always be available inside build/lib folder after compile?
Also, I like to link statically as far as possible. When it's not possible?
Beta Was this translation helpful? Give feedback.
All reactions