Skip to content

Commit

Permalink
fix building errors introduced by simple-sentencepiece (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored May 24, 2024
1 parent b09fb7f commit 86ccb86
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmake/simple-sentencepiece.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
function(download_simple_sentencepiece)
include(FetchContent)

set(simple-sentencepiece_URL "https://github.com/pkufool/simple-sentencepiece/archive/refs/tags/v0.7.tar.gz")
set(simple-sentencepiece_URL2 "https://hub.nauu.cf/pkufool/simple-sentencepiece/archive/refs/tags/v0.7.tar.gz")
set(simple-sentencepiece_URL "https://github.com/pkufool/simple-sentencepiece/archive/refs/tags/v0.7.tar.gz")
set(simple-sentencepiece_URL2 "https://hub.nuaa.cf/pkufool/simple-sentencepiece/archive/refs/tags/v0.7.tar.gz")
set(simple-sentencepiece_HASH "SHA256=1748a822060a35baa9f6609f84efc8eb54dc0e74b9ece3d82367b7119fdc75af")

# If you don't have access to the Internet,
Expand Down
3 changes: 3 additions & 0 deletions scripts/dotnet/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def process_linux(s):
"libkaldi-decoder-core.so",
"libkaldi-native-fbank-core.so",
"libonnxruntime.so.1.17.1",
"libssentencepiece_core.so",
"libpiper_phonemize.so.1",
"libsherpa-onnx-c-api.so",
"libsherpa-onnx-core.so",
Expand Down Expand Up @@ -69,6 +70,7 @@ def process_macos(s):
"libkaldi-decoder-core.dylib",
"libkaldi-native-fbank-core.dylib",
"libonnxruntime.1.17.1.dylib",
"libssentencepiece_core.dylib",
"libpiper_phonemize.1.dylib",
"libsherpa-onnx-c-api.dylib",
"libsherpa-onnx-core.dylib",
Expand Down Expand Up @@ -98,6 +100,7 @@ def process_windows(s, rid):
"kaldi-decoder-core.dll",
"kaldi-native-fbank-core.dll",
"onnxruntime.dll",
"ssentencepiece_core.dll",
"piper_phonemize.dll",
"sherpa-onnx-c-api.dll",
"sherpa-onnx-core.dll",
Expand Down
2 changes: 1 addition & 1 deletion scripts/go/_internal/build_darwin_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

package sherpa_onnx

// #cgo LDFLAGS: -L ${SRCDIR}/lib/x86_64-apple-darwin -lsherpa-onnx-c-api -lsherpa-onnx-core -lkaldi-native-fbank-core -lkaldi-decoder-core -lsherpa-onnx-kaldifst-core -lsherpa-onnx-fstfar -lsherpa-onnx-fst -lpiper_phonemize -lespeak-ng -lucd -lonnxruntime -Wl,-rpath,${SRCDIR}/lib/x86_64-apple-darwin
// #cgo LDFLAGS: -L ${SRCDIR}/lib/x86_64-apple-darwin -lsherpa-onnx-c-api -lsherpa-onnx-core -lkaldi-native-fbank-core -lkaldi-decoder-core -lsherpa-onnx-kaldifst-core -lsherpa-onnx-fstfar -lsherpa-onnx-fst -lpiper_phonemize -lespeak-ng -lucd -lonnxruntime -lssentencepiece_core -Wl,-rpath,${SRCDIR}/lib/x86_64-apple-darwin
import "C"
2 changes: 1 addition & 1 deletion scripts/go/_internal/build_darwin_arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

package sherpa_onnx

// #cgo LDFLAGS: -L ${SRCDIR}/lib/aarch64-apple-darwin -lsherpa-onnx-c-api -lsherpa-onnx-core -lkaldi-native-fbank-core -lkaldi-decoder-core -lsherpa-onnx-kaldifst-core -lsherpa-onnx-fstfar -lsherpa-onnx-fst -lpiper_phonemize -lespeak-ng -lucd -lonnxruntime -Wl,-rpath,${SRCDIR}/lib/aarch64-apple-darwin
// #cgo LDFLAGS: -L ${SRCDIR}/lib/aarch64-apple-darwin -lsherpa-onnx-c-api -lsherpa-onnx-core -lkaldi-native-fbank-core -lkaldi-decoder-core -lsherpa-onnx-kaldifst-core -lsherpa-onnx-fstfar -lsherpa-onnx-fst -lpiper_phonemize -lespeak-ng -lucd -lonnxruntime -lssentencepiece_core -Wl,-rpath,${SRCDIR}/lib/aarch64-apple-darwin
import "C"

0 comments on commit 86ccb86

Please sign in to comment.