Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Build sherpa-onnx as a single shared library #1078

Merged
merged 54 commits into from
Jul 6, 2024

Conversation

csukuangfj
Copy link
Collaborator

When -D BUILD_SHARED_LIBS=ON is passed to cmake, it builds a single shared library.

Specifically,

  • For C APIs, it builds libsherpa-onnx-c-api.so
  • For Python APIs, it builds _sherpa_onnx.cpython-xx-xx.so
  • For Kotlin and Java APIs, it builds libsherpa-onnx-jni.so

There is no libsherpa-onnx-core.so any longer.

Note it affects only shared libraries.

@csukuangfj csukuangfj merged commit a250751 into k2-fsa:master Jul 6, 2024
3 of 166 checks passed
@csukuangfj csukuangfj deleted the symbol-vis branch August 16, 2024 12:13
XiaYucca pushed a commit to XiaYucca/sherpa-onnx that referenced this pull request Jan 9, 2025
When `-D BUILD_SHARED_LIBS=ON` is passed to `cmake`, it builds a single shared library.

Specifically, 

- For C APIs, it builds `libsherpa-onnx-c-api.so`
- For Python APIs, it builds `_sherpa_onnx.cpython-xx-xx.so`
- For Kotlin and Java APIs, it builds `libsherpa-onnx-jni.so`

There is no `libsherpa-onnx-core.so` any longer.

Note it affects only shared libraries.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant