From 8ab3301924f976306d63a4cf19e99d081d885e0b Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Thu, 23 May 2024 14:46:40 +0800 Subject: [PATCH] fix pkg-config and python tests --- cmake/cmake_extension.py | 1 + cmake/sherpa-onnx-no-tts.pc.in | 2 +- cmake/sherpa-onnx.pc.in | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/cmake_extension.py b/cmake/cmake_extension.py index b207a4171..46116f5c5 100644 --- a/cmake/cmake_extension.py +++ b/cmake/cmake_extension.py @@ -80,6 +80,7 @@ def get_binaries(): "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", diff --git a/cmake/sherpa-onnx-no-tts.pc.in b/cmake/sherpa-onnx-no-tts.pc.in index 4637b6ca4..0b020e43c 100644 --- a/cmake/sherpa-onnx-no-tts.pc.in +++ b/cmake/sherpa-onnx-no-tts.pc.in @@ -13,4 +13,4 @@ Cflags: -I"${includedir}" # Note: -lcargs is required only for the following file # https://github.com/k2-fsa/sherpa-onnx/blob/master/c-api-examples/decode-file-c-api.c # We add it here so that users don't need to specify -lcargs when compiling decode-file-c-api.c -Libs: -L"${libdir}" -lsherpa-onnx-c-api -lsherpa-onnx-core -lkaldi-decoder-core -lsherpa-onnx-kaldifst-core -lsherpa-onnx-fst -lkaldi-native-fbank-core -lonnxruntime -Wl,-rpath,${libdir} @SHERPA_ONNX_PKG_WITH_CARGS@ @SHERPA_ONNX_PKG_CONFIG_EXTRA_LIBS@ +Libs: -L"${libdir}" -lsherpa-onnx-c-api -lsherpa-onnx-core -lkaldi-decoder-core -lsherpa-onnx-kaldifst-core -lsherpa-onnx-fst -lkaldi-native-fbank-core -lonnxruntime -lssentencepiece_core -Wl,-rpath,${libdir} @SHERPA_ONNX_PKG_WITH_CARGS@ @SHERPA_ONNX_PKG_CONFIG_EXTRA_LIBS@ diff --git a/cmake/sherpa-onnx.pc.in b/cmake/sherpa-onnx.pc.in index fd37eeeb3..87b929a44 100644 --- a/cmake/sherpa-onnx.pc.in +++ b/cmake/sherpa-onnx.pc.in @@ -13,4 +13,4 @@ Cflags: -I"${includedir}" # Note: -lcargs is required only for the following file # https://github.com/k2-fsa/sherpa-onnx/blob/master/c-api-examples/decode-file-c-api.c # We add it here so that users don't need to specify -lcargs when compiling decode-file-c-api.c -Libs: -L"${libdir}" -lsherpa-onnx-c-api -lsherpa-onnx-core -lkaldi-decoder-core -lsherpa-onnx-kaldifst-core -lsherpa-onnx-fstfar -lsherpa-onnx-fst -lkaldi-native-fbank-core -lpiper_phonemize -lespeak-ng -lucd -lonnxruntime -Wl,-rpath,${libdir} @SHERPA_ONNX_PKG_WITH_CARGS@ @SHERPA_ONNX_PKG_CONFIG_EXTRA_LIBS@ +Libs: -L"${libdir}" -lsherpa-onnx-c-api -lsherpa-onnx-core -lkaldi-decoder-core -lsherpa-onnx-kaldifst-core -lsherpa-onnx-fstfar -lsherpa-onnx-fst -lkaldi-native-fbank-core -lpiper_phonemize -lespeak-ng -lucd -lonnxruntime -lssentencepiece_core -Wl,-rpath,${libdir} @SHERPA_ONNX_PKG_WITH_CARGS@ @SHERPA_ONNX_PKG_CONFIG_EXTRA_LIBS@