You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If Windows still reports that it cannot find a DLL, or if it loads a wrong
43
+
`onnxruntime.dll`, copy the DLL files from `%SHERPA_ONNX_LIB_DIR%` to the same
44
+
directory as the generated example executable, e.g.
45
+
`rust-api-examples/target/debug/examples/`.
46
+
47
+
### Method 2: Download prebuilt shared libraries
48
+
49
+
This is the easiest method for most users.
50
+
51
+
1. Go to [GitHub releases](https://github.com/k2-fsa/sherpa-onnx/releases)
52
+
2. Download the archive that matches your operating system
53
+
3. Extract it anywhere you like
54
+
4. Set `SHERPA_ONNX_LIB_DIR` to the extracted `lib` directory
55
+
5. On Linux/macOS, also set `RUSTFLAGS` so the executable can find the shared libraries
56
+
6. On Windows, add the same `lib` directory to `PATH`
57
+
58
+
Use the latest release in practice. We use `v1.12.31` below only as an example.
59
+
60
+
#### Which archive should I download?
61
+
62
+
| OS | Archive example | Download link |
63
+
|----|-----------------|---------------|
64
+
| Linux x86_64 |`sherpa-onnx-v1.12.31-linux-x64-shared.tar.bz2`|[Download](https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.12.31/sherpa-onnx-v1.12.31-linux-x64-shared.tar.bz2)|
65
+
| Linux aarch64 |`sherpa-onnx-v1.12.31-linux-aarch64-shared-cpu.tar.bz2`|[Download](https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.12.31/sherpa-onnx-v1.12.31-linux-aarch64-shared-cpu.tar.bz2)|
| Windows x64 |`sherpa-onnx-v1.12.31-win-x64-shared-MT-Release.tar.bz2`|[Download](https://github.com/k2-fsa/sherpa-onnx/releases/download/v1.12.31/sherpa-onnx-v1.12.31-win-x64-shared-MT-Release.tar.bz2)|
0 commit comments