Skip to content

Commit a2f72fc

Browse files
authored
docs: update BUILDING.md to include shared library loading instructions (#57)
1 parent 298450f commit a2f72fc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

BUILDING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,14 @@ New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
190190

191191
</details>
192192

193+
### Shared library not found while it's in the same directly of executable
194+
195+
Modify the shared librarie and binary files to load other shared libraries located in the same folder.
196+
197+
```console
198+
patchelf --set-rpath '$ORIGIN' /path/to/binary/or/shared/library.so
199+
```
200+
193201
### Debug build
194202

195203
For debug the build process of sherpa-onnx, please set `SHERPA_BUILD_DEBUG=1` environment variable before build.

0 commit comments

Comments
 (0)