Fangjun Kuang
Committed by GitHub

Update to onnxruntime v1.16.1 (#406)

@@ -184,7 +184,7 @@ message(STATUS "CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}") @@ -184,7 +184,7 @@ message(STATUS "CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}")
184 184
185 if(NOT BUILD_SHARED_LIBS) 185 if(NOT BUILD_SHARED_LIBS)
186 if(APPLE) 186 if(APPLE)
187 - set(SHERPA_ONNX_PKG_CONFIG_EXTRA_LIBS "-lc++") 187 + set(SHERPA_ONNX_PKG_CONFIG_EXTRA_LIBS "-lc++ -framework Foundation")
188 endif() 188 endif()
189 189
190 if(UNIX AND NOT APPLE) 190 if(UNIX AND NOT APPLE)
@@ -42,7 +42,7 @@ fi @@ -42,7 +42,7 @@ fi
42 42
43 echo "ANDROID_NDK: $ANDROID_NDK" 43 echo "ANDROID_NDK: $ANDROID_NDK"
44 sleep 1 44 sleep 1
45 -onnxruntime_version=v1.16.0 45 +onnxruntime_version=v1.16.1
46 46
47 if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/arm64-v8a/libonnxruntime.so ]; then 47 if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/arm64-v8a/libonnxruntime.so ]; then
48 if [ ! -d android-onnxruntime-libs ]; then 48 if [ ! -d android-onnxruntime-libs ]; then
@@ -43,7 +43,7 @@ fi @@ -43,7 +43,7 @@ fi
43 echo "ANDROID_NDK: $ANDROID_NDK" 43 echo "ANDROID_NDK: $ANDROID_NDK"
44 sleep 1 44 sleep 1
45 45
46 -onnxruntime_version=v1.16.0 46 +onnxruntime_version=v1.16.1
47 47
48 if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/armeabi-v7a/libonnxruntime.so ]; then 48 if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/armeabi-v7a/libonnxruntime.so ]; then
49 if [ ! -d android-onnxruntime-libs ]; then 49 if [ ! -d android-onnxruntime-libs ]; then
@@ -43,7 +43,7 @@ fi @@ -43,7 +43,7 @@ fi
43 echo "ANDROID_NDK: $ANDROID_NDK" 43 echo "ANDROID_NDK: $ANDROID_NDK"
44 sleep 1 44 sleep 1
45 45
46 -onnxruntime_version=v1.16.0 46 +onnxruntime_version=v1.16.1
47 47
48 if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/x86_64/libonnxruntime.so ]; then 48 if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/x86_64/libonnxruntime.so ]; then
49 if [ ! -d android-onnxruntime-libs ]; then 49 if [ ! -d android-onnxruntime-libs ]; then
@@ -43,7 +43,7 @@ fi @@ -43,7 +43,7 @@ fi
43 echo "ANDROID_NDK: $ANDROID_NDK" 43 echo "ANDROID_NDK: $ANDROID_NDK"
44 sleep 1 44 sleep 1
45 45
46 -onnxruntime_version=v1.16.0 46 +onnxruntime_version=v1.16.1
47 47
48 if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/x86/libonnxruntime.so ]; then 48 if [ ! -f ./android-onnxruntime-libs/$onnxruntime_version/jni/x86/libonnxruntime.so ]; then
49 if [ ! -d android-onnxruntime-libs ]; then 49 if [ ! -d android-onnxruntime-libs ]; then
@@ -5,7 +5,7 @@ set -e @@ -5,7 +5,7 @@ set -e
5 dir=build-ios 5 dir=build-ios
6 mkdir -p $dir 6 mkdir -p $dir
7 cd $dir 7 cd $dir
8 -onnxruntime_version=1.16.0 8 +onnxruntime_version=1.16.1
9 9
10 if [ ! -f ios-onnxruntime/$onnxruntime_version/onnxruntime.xcframework/ios-arm64/onnxruntime.a ]; then 10 if [ ! -f ios-onnxruntime/$onnxruntime_version/onnxruntime.xcframework/ios-arm64/onnxruntime.a ]; then
11 if [ ! -d ios-onnxruntime ]; then 11 if [ ! -d ios-onnxruntime ]; then
@@ -5,6 +5,8 @@ CFLAGS := -I ../ -I ../build/_deps/cargs-src/include/ @@ -5,6 +5,8 @@ CFLAGS := -I ../ -I ../build/_deps/cargs-src/include/
5 LDFLAGS := -L ../build/lib 5 LDFLAGS := -L ../build/lib
6 LDFLAGS += -L ../build/_deps/onnxruntime-src/lib 6 LDFLAGS += -L ../build/_deps/onnxruntime-src/lib
7 LDFLAGS += -lsherpa-onnx-c-api -lsherpa-onnx-core -lonnxruntime -lkaldi-native-fbank-core -lkaldi-decoder-core -lsherpa-onnx-kaldifst-core -lsherpa-onnx-fst -lcargs 7 LDFLAGS += -lsherpa-onnx-c-api -lsherpa-onnx-core -lonnxruntime -lkaldi-native-fbank-core -lkaldi-decoder-core -lsherpa-onnx-kaldifst-core -lsherpa-onnx-fst -lcargs
  8 +LDFLAGS += -framework Foundation
  9 +LDFLAGS += -lc++
8 LDFLAGS += -Wl,-rpath,${CUR_DIR}/../build/lib 10 LDFLAGS += -Wl,-rpath,${CUR_DIR}/../build/lib
9 LDFLAGS += -Wl,-rpath,${CUR_DIR}/../build/_deps/onnxruntime-src/lib 11 LDFLAGS += -Wl,-rpath,${CUR_DIR}/../build/_deps/onnxruntime-src/lib
10 12
@@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS) @@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS)
14 message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") 14 message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
15 endif() 15 endif()
16 16
17 -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-linux-aarch64-static_lib-1.16.0.zip")  
18 -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-aarch64-static_lib-1.16.0.zip")  
19 -set(onnxruntime_HASH "SHA256=ddcb4e67bcdff53eb72265a12420c71f73acc8610054e06259e9b98770136bd5") 17 +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-linux-aarch64-static_lib-1.16.1.zip")
  18 +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-aarch64-static_lib-1.16.1.zip")
  19 +set(onnxruntime_HASH "SHA256=9b25c41fc2158b345744984d154ca975c8a772c0eb90a0ccfbe2be147b438ae3")
20 20
21 # If you don't have access to the Internet, 21 # If you don't have access to the Internet,
22 # please download onnxruntime to one of the following locations. 22 # please download onnxruntime to one of the following locations.
23 # You can add more if you want. 23 # You can add more if you want.
24 set(possible_file_locations 24 set(possible_file_locations
25 - $ENV{HOME}/Downloads/onnxruntime-linux-aarch64-static_lib-1.16.0.zip  
26 - ${PROJECT_SOURCE_DIR}/onnxruntime-linux-aarch64-static_lib-1.16.0.zip  
27 - ${PROJECT_BINARY_DIR}/onnxruntime-linux-aarch64-static_lib-1.16.0.zip  
28 - /tmp/onnxruntime-linux-aarch64-static_lib-1.16.0.zip  
29 - /star-fj/fangjun/download/github/onnxruntime-linux-aarch64-static_lib-1.16.0.zip 25 + $ENV{HOME}/Downloads/onnxruntime-linux-aarch64-static_lib-1.16.1.zip
  26 + ${PROJECT_SOURCE_DIR}/onnxruntime-linux-aarch64-static_lib-1.16.1.zip
  27 + ${PROJECT_BINARY_DIR}/onnxruntime-linux-aarch64-static_lib-1.16.1.zip
  28 + /tmp/onnxruntime-linux-aarch64-static_lib-1.16.1.zip
  29 + /star-fj/fangjun/download/github/onnxruntime-linux-aarch64-static_lib-1.16.1.zip
30 ) 30 )
31 31
32 foreach(f IN LISTS possible_file_locations) 32 foreach(f IN LISTS possible_file_locations)
@@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS) @@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS)
14 message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") 14 message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
15 endif() 15 endif()
16 16
17 -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-linux-aarch64-1.16.0.tgz")  
18 -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-linux-aarch64-1.16.0.tgz")  
19 -set(onnxruntime_HASH "SHA256=8b15781d974803203c09df7d52c84d8c9f1ac7d949a97f515e4d2f5dc978d8af") 17 +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-linux-aarch64-1.16.1.tgz")
  18 +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-aarch64-1.16.1.tgz")
  19 +set(onnxruntime_HASH "SHA256=f10851b62eb44f9e811134737e7c6edd15733d2c1549cb6ce403808e9c047385")
20 20
21 # If you don't have access to the Internet, 21 # If you don't have access to the Internet,
22 # please download onnxruntime to one of the following locations. 22 # please download onnxruntime to one of the following locations.
23 # You can add more if you want. 23 # You can add more if you want.
24 set(possible_file_locations 24 set(possible_file_locations
25 - $ENV{HOME}/Downloads/onnxruntime-linux-aarch64-1.16.0.tgz  
26 - ${PROJECT_SOURCE_DIR}/onnxruntime-linux-aarch64-1.16.0.tgz  
27 - ${PROJECT_BINARY_DIR}/onnxruntime-linux-aarch64-1.16.0.tgz  
28 - /tmp/onnxruntime-linux-aarch64-1.16.0.tgz  
29 - /star-fj/fangjun/download/github/onnxruntime-linux-aarch64-1.16.0.tgz 25 + $ENV{HOME}/Downloads/onnxruntime-linux-aarch64-1.16.1.tgz
  26 + ${PROJECT_SOURCE_DIR}/onnxruntime-linux-aarch64-1.16.1.tgz
  27 + ${PROJECT_BINARY_DIR}/onnxruntime-linux-aarch64-1.16.1.tgz
  28 + /tmp/onnxruntime-linux-aarch64-1.16.1.tgz
  29 + /star-fj/fangjun/download/github/onnxruntime-linux-aarch64-1.16.1.tgz
30 ) 30 )
31 31
32 foreach(f IN LISTS possible_file_locations) 32 foreach(f IN LISTS possible_file_locations)
@@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS) @@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS)
14 message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") 14 message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
15 endif() 15 endif()
16 16
17 -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-linux-arm-static_lib-1.16.0.zip")  
18 -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-arm-static_lib-1.16.0.zip")  
19 -set(onnxruntime_HASH "SHA256=d2bf3d69a479ac786bf2f019e720218a74634b73cfda758ba50d0b1adef1c76a") 17 +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-linux-arm-static_lib-1.16.1.zip")
  18 +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-arm-static_lib-1.16.1.zip")
  19 +set(onnxruntime_HASH "SHA256=7f01a4b025a2ae3bececd2ea1bbef6bdc0b5df43395f6a799123b74fa6180356")
20 20
21 # If you don't have access to the Internet, 21 # If you don't have access to the Internet,
22 # please download onnxruntime to one of the following locations. 22 # please download onnxruntime to one of the following locations.
23 # You can add more if you want. 23 # You can add more if you want.
24 set(possible_file_locations 24 set(possible_file_locations
25 - $ENV{HOME}/Downloads/onnxruntime-linux-arm-static_lib-1.16.0.zip  
26 - ${PROJECT_SOURCE_DIR}/onnxruntime-linux-arm-static_lib-1.16.0.zip  
27 - ${PROJECT_BINARY_DIR}/onnxruntime-linux-arm-static_lib-1.16.0.zip  
28 - /tmp/onnxruntime-linux-arm-static_lib-1.16.0.zip  
29 - /star-fj/fangjun/download/github/onnxruntime-linux-arm-static_lib-1.16.0.zip 25 + $ENV{HOME}/Downloads/onnxruntime-linux-arm-static_lib-1.16.1.zip
  26 + ${PROJECT_SOURCE_DIR}/onnxruntime-linux-arm-static_lib-1.16.1.zip
  27 + ${PROJECT_BINARY_DIR}/onnxruntime-linux-arm-static_lib-1.16.1.zip
  28 + /tmp/onnxruntime-linux-arm-static_lib-1.16.1.zip
  29 + /star-fj/fangjun/download/github/onnxruntime-linux-arm-static_lib-1.16.1.zip
30 ) 30 )
31 31
32 foreach(f IN LISTS possible_file_locations) 32 foreach(f IN LISTS possible_file_locations)
@@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS) @@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS)
14 message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") 14 message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
15 endif() 15 endif()
16 16
17 -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-linux-arm-1.16.0.zip")  
18 -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-arm-1.16.0.zip")  
19 -set(onnxruntime_HASH "SHA256=0a63ea99fbba3ee399d6626c36752844ae93ae19bab30e4bf00d45cc8a13da02") 17 +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-linux-arm-1.16.1.zip")
  18 +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-arm-1.16.1.zip")
  19 +set(onnxruntime_HASH "SHA256=a668be37aa2eb5370e682f7599266c767b5327c1468203c372d8ceca4be1b585")
20 20
21 # If you don't have access to the Internet, 21 # If you don't have access to the Internet,
22 # please download onnxruntime to one of the following locations. 22 # please download onnxruntime to one of the following locations.
23 # You can add more if you want. 23 # You can add more if you want.
24 set(possible_file_locations 24 set(possible_file_locations
25 - $ENV{HOME}/Downloads/onnxruntime-linux-arm-1.16.0.zip  
26 - ${PROJECT_SOURCE_DIR}/onnxruntime-linux-arm-1.16.0.zip  
27 - ${PROJECT_BINARY_DIR}/onnxruntime-linux-arm-1.16.0.zip  
28 - /tmp/onnxruntime-linux-arm-1.16.0.zip  
29 - /star-fj/fangjun/download/github/onnxruntime-linux-arm-1.16.0.zip 25 + $ENV{HOME}/Downloads/onnxruntime-linux-arm-1.16.1.zip
  26 + ${PROJECT_SOURCE_DIR}/onnxruntime-linux-arm-1.16.1.zip
  27 + ${PROJECT_BINARY_DIR}/onnxruntime-linux-arm-1.16.1.zip
  28 + /tmp/onnxruntime-linux-arm-1.16.1.zip
  29 + /star-fj/fangjun/download/github/onnxruntime-linux-arm-1.16.1.zip
30 ) 30 )
31 31
32 foreach(f IN LISTS possible_file_locations) 32 foreach(f IN LISTS possible_file_locations)
@@ -18,19 +18,19 @@ if(NOT SHERPA_ONNX_ENABLE_GPU) @@ -18,19 +18,19 @@ if(NOT SHERPA_ONNX_ENABLE_GPU)
18 message(FATAL_ERROR "This file is for NVIDIA GPU only. Given SHERPA_ONNX_ENABLE_GPU: ${SHERPA_ONNX_ENABLE_GPU}") 18 message(FATAL_ERROR "This file is for NVIDIA GPU only. Given SHERPA_ONNX_ENABLE_GPU: ${SHERPA_ONNX_ENABLE_GPU}")
19 endif() 19 endif()
20 20
21 -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-linux-x64-gpu-1.16.0.tgz")  
22 -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-linux-x64-gpu-1.16.0.tgz")  
23 -set(onnxruntime_HASH "SHA256=f9cbf3d711f46d7e03ea43746ee9d1c7d8e82c171a4655f6591dd4d1ba1b9ec7") 21 +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-linux-x64-gpu-1.16.1.tgz")
  22 +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-gpu-1.16.1.tgz")
  23 +set(onnxruntime_HASH "SHA256=474d5d74b588d54aa3e167f38acc9b1b8d20c292d0db92299bdc33a81eb4492d")
24 24
25 # If you don't have access to the Internet, 25 # If you don't have access to the Internet,
26 # please download onnxruntime to one of the following locations. 26 # please download onnxruntime to one of the following locations.
27 # You can add more if you want. 27 # You can add more if you want.
28 set(possible_file_locations 28 set(possible_file_locations
29 - $ENV{HOME}/Downloads/onnxruntime-linux-x64-gpu-1.16.0.tgz  
30 - ${PROJECT_SOURCE_DIR}/onnxruntime-linux-x64-gpu-1.16.0.tgz  
31 - ${PROJECT_BINARY_DIR}/onnxruntime-linux-x64-gpu-1.16.0.tgz  
32 - /tmp/onnxruntime-linux-x64-gpu-1.16.0.tgz  
33 - /star-fj/fangjun/download/github/onnxruntime-linux-x64-gpu-1.16.0.tgz 29 + $ENV{HOME}/Downloads/onnxruntime-linux-x64-gpu-1.16.1.tgz
  30 + ${PROJECT_SOURCE_DIR}/onnxruntime-linux-x64-gpu-1.16.1.tgz
  31 + ${PROJECT_BINARY_DIR}/onnxruntime-linux-x64-gpu-1.16.1.tgz
  32 + /tmp/onnxruntime-linux-x64-gpu-1.16.1.tgz
  33 + /star-fj/fangjun/download/github/onnxruntime-linux-x64-gpu-1.16.1.tgz
34 ) 34 )
35 35
36 foreach(f IN LISTS possible_file_locations) 36 foreach(f IN LISTS possible_file_locations)
@@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS) @@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS)
14 message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") 14 message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
15 endif() 15 endif()
16 16
17 -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-linux-x64-static_lib-1.16.0.tgz")  
18 -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-linux-x64-static_lib-1.16.0.tgz")  
19 -set(onnxruntime_HASH "SHA256=a36e989c9a07f12bf16f63acb2217b02a0cf4ac75aa7bc27de76ae08706a5c1f") 17 +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-linux-x64-static_lib-1.16.1.zip")
  18 +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-static_lib-1.16.1.zip")
  19 +set(onnxruntime_HASH "SHA256=0aa52fbff16ee9b165f42b7ea2ad61600d415d19681c9a9c6daca686c512cc64")
20 20
21 # If you don't have access to the Internet, 21 # If you don't have access to the Internet,
22 # please download onnxruntime to one of the following locations. 22 # please download onnxruntime to one of the following locations.
23 # You can add more if you want. 23 # You can add more if you want.
24 set(possible_file_locations 24 set(possible_file_locations
25 - $ENV{HOME}/Downloads/onnxruntime-linux-x64-static_lib-1.16.0.tgz  
26 - ${PROJECT_SOURCE_DIR}/onnxruntime-linux-x64-static_lib-1.16.0.tgz  
27 - ${PROJECT_BINARY_DIR}/onnxruntime-linux-x64-static_lib-1.16.0.tgz  
28 - /tmp/onnxruntime-linux-x64-static_lib-1.16.0.tgz  
29 - /star-fj/fangjun/download/github/onnxruntime-linux-x64-static_lib-1.16.0.tgz 25 + $ENV{HOME}/Downloads/onnxruntime-linux-x64-static_lib-1.16.1.zip
  26 + ${PROJECT_SOURCE_DIR}/onnxruntime-linux-x64-static_lib-1.16.1.zip
  27 + ${PROJECT_BINARY_DIR}/onnxruntime-linux-x64-static_lib-1.16.1.zip
  28 + /tmp/onnxruntime-linux-x64-static_lib-1.16.1.zip
  29 + /star-fj/fangjun/download/github/onnxruntime-linux-x64-static_lib-1.16.1.zip
30 ) 30 )
31 31
32 foreach(f IN LISTS possible_file_locations) 32 foreach(f IN LISTS possible_file_locations)
@@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS) @@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS)
14 message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") 14 message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
15 endif() 15 endif()
16 16
17 -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-linux-x64-1.16.0.tgz")  
18 -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-linux-x64-1.16.0.tgz")  
19 -set(onnxruntime_HASH "SHA256=02bcd1e4fef295dacc3b232774efeaa0a83527f439f29147c3badade4df1f6dc") 17 +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-linux-x64-1.16.1.tgz")
  18 +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-1.16.1.tgz")
  19 +set(onnxruntime_HASH "SHA256=53a0f03f71587ed602e99e82773132fc634b74c2d227316fbfd4bf67181e72ed")
20 20
21 # If you don't have access to the Internet, 21 # If you don't have access to the Internet,
22 # please download onnxruntime to one of the following locations. 22 # please download onnxruntime to one of the following locations.
23 # You can add more if you want. 23 # You can add more if you want.
24 set(possible_file_locations 24 set(possible_file_locations
25 - $ENV{HOME}/Downloads/onnxruntime-linux-x64-1.16.0.tgz  
26 - ${PROJECT_SOURCE_DIR}/onnxruntime-linux-x64-1.16.0.tgz  
27 - ${PROJECT_BINARY_DIR}/onnxruntime-linux-x64-1.16.0.tgz  
28 - /tmp/onnxruntime-linux-x64-1.16.0.tgz  
29 - /star-fj/fangjun/download/github/onnxruntime-linux-x64-1.16.0.tgz 25 + $ENV{HOME}/Downloads/onnxruntime-linux-x64-1.16.1.tgz
  26 + ${PROJECT_SOURCE_DIR}/onnxruntime-linux-x64-1.16.1.tgz
  27 + ${PROJECT_BINARY_DIR}/onnxruntime-linux-x64-1.16.1.tgz
  28 + /tmp/onnxruntime-linux-x64-1.16.1.tgz
  29 + /star-fj/fangjun/download/github/onnxruntime-linux-x64-1.16.1.tgz
30 ) 30 )
31 31
32 foreach(f IN LISTS possible_file_locations) 32 foreach(f IN LISTS possible_file_locations)
@@ -12,18 +12,18 @@ if(BUILD_SHARED_LIBS) @@ -12,18 +12,18 @@ if(BUILD_SHARED_LIBS)
12 message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") 12 message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
13 endif() 13 endif()
14 14
15 -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-osx-arm64-static_lib-1.16.0.zip")  
16 -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-arm64-static_lib-1.16.0.zip")  
17 -set(onnxruntime_HASH "SHA256=5f99c9a51d91e751ac20fcbb73dfa31a379438381c5357fd3f37bda816934e3e") 15 +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-osx-arm64-static_lib-1.16.1.zip")
  16 +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-arm64-static_lib-1.16.1.zip")
  17 +set(onnxruntime_HASH "SHA256=2f7e9661bb01cf676f676c8d02e24a1e8e244e6f1e2a983e9a6f5f582b7e4a02")
18 18
19 # If you don't have access to the Internet, 19 # If you don't have access to the Internet,
20 # please download onnxruntime to one of the following locations. 20 # please download onnxruntime to one of the following locations.
21 # You can add more if you want. 21 # You can add more if you want.
22 set(possible_file_locations 22 set(possible_file_locations
23 - $ENV{HOME}/Downloads/onnxruntime-osx-arm64-static_lib-1.16.0.zip  
24 - ${PROJECT_SOURCE_DIR}/onnxruntime-osx-arm64-static_lib-1.16.0.zip  
25 - ${PROJECT_BINARY_DIR}/onnxruntime-osx-arm64-static_lib-1.16.0.zip  
26 - /tmp/onnxruntime-osx-arm64-static_lib-1.16.0.zip 23 + $ENV{HOME}/Downloads/onnxruntime-osx-arm64-static_lib-1.16.1.zip
  24 + ${PROJECT_SOURCE_DIR}/onnxruntime-osx-arm64-static_lib-1.16.1.zip
  25 + ${PROJECT_BINARY_DIR}/onnxruntime-osx-arm64-static_lib-1.16.1.zip
  26 + /tmp/onnxruntime-osx-arm64-static_lib-1.16.1.zip
27 ) 27 )
28 28
29 foreach(f IN LISTS possible_file_locations) 29 foreach(f IN LISTS possible_file_locations)
@@ -12,18 +12,18 @@ if(NOT BUILD_SHARED_LIBS) @@ -12,18 +12,18 @@ if(NOT BUILD_SHARED_LIBS)
12 message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") 12 message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
13 endif() 13 endif()
14 14
15 -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-osx-arm64-1.16.0.tgz")  
16 -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-osx-arm64-1.16.0.tgz")  
17 -set(onnxruntime_HASH "SHA256=fec3b70ca4f642a5c6d5c3a6f3a4eddd4c1b9281893fe2c7ae03a3086e20c316") 15 +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-osx-arm64-1.16.1.tgz")
  16 +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-arm64-1.16.1.tgz")
  17 +set(onnxruntime_HASH "SHA256=56ca6b8de3a220ea606c2067ba65d11dfa6e4f722e01ac7dc75f7152b81445e0")
18 18
19 # If you don't have access to the Internet, 19 # If you don't have access to the Internet,
20 # please download onnxruntime to one of the following locations. 20 # please download onnxruntime to one of the following locations.
21 # You can add more if you want. 21 # You can add more if you want.
22 set(possible_file_locations 22 set(possible_file_locations
23 - $ENV{HOME}/Downloads/onnxruntime-osx-arm64-1.16.0.tgz  
24 - ${PROJECT_SOURCE_DIR}/onnxruntime-osx-arm64-1.16.0.tgz  
25 - ${PROJECT_BINARY_DIR}/onnxruntime-osx-arm64-1.16.0.tgz  
26 - /tmp/onnxruntime-osx-arm64-1.16.0.tgz 23 + $ENV{HOME}/Downloads/onnxruntime-osx-arm64-1.16.1.tgz
  24 + ${PROJECT_SOURCE_DIR}/onnxruntime-osx-arm64-1.16.1.tgz
  25 + ${PROJECT_BINARY_DIR}/onnxruntime-osx-arm64-1.16.1.tgz
  26 + /tmp/onnxruntime-osx-arm64-1.16.1.tgz
27 ) 27 )
28 28
29 foreach(f IN LISTS possible_file_locations) 29 foreach(f IN LISTS possible_file_locations)
@@ -13,18 +13,18 @@ if(BUILD_SHARED_LIBS) @@ -13,18 +13,18 @@ if(BUILD_SHARED_LIBS)
13 message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") 13 message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
14 endif() 14 endif()
15 15
16 -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-osx-universal2-static_lib-1.16.0.zip")  
17 -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-universal2-static_lib-1.16.0.zip")  
18 -set(onnxruntime_HASH "SHA256=6df205fb519d311ff57131d35ed43374f4fe483eb665baa38bfbc00034595b35") 16 +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-osx-universal2-static_lib-1.16.1.zip")
  17 +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-universal2-static_lib-1.16.1.zip")
  18 +set(onnxruntime_HASH "SHA256=ec47c70f47a76da237c10607e5129b99230c101c132ea1ec13b90d6e36f84a89")
19 19
20 # If you don't have access to the Internet, 20 # If you don't have access to the Internet,
21 # please download onnxruntime to one of the following locations. 21 # please download onnxruntime to one of the following locations.
22 # You can add more if you want. 22 # You can add more if you want.
23 set(possible_file_locations 23 set(possible_file_locations
24 - $ENV{HOME}/Downloads/onnxruntime-osx-universal2-static_lib-1.16.0.zip  
25 - ${PROJECT_SOURCE_DIR}/onnxruntime-osx-universal2-static_lib-1.16.0.zip  
26 - ${PROJECT_BINARY_DIR}/onnxruntime-osx-universal2-static_lib-1.16.0.zip  
27 - /tmp/onnxruntime-osx-universal2-static_lib-1.16.0.zip 24 + $ENV{HOME}/Downloads/onnxruntime-osx-universal2-static_lib-1.16.1.zip
  25 + ${PROJECT_SOURCE_DIR}/onnxruntime-osx-universal2-static_lib-1.16.1.zip
  26 + ${PROJECT_BINARY_DIR}/onnxruntime-osx-universal2-static_lib-1.16.1.zip
  27 + /tmp/onnxruntime-osx-universal2-static_lib-1.16.1.zip
28 ) 28 )
29 29
30 foreach(f IN LISTS possible_file_locations) 30 foreach(f IN LISTS possible_file_locations)
@@ -13,18 +13,18 @@ if(NOT BUILD_SHARED_LIBS) @@ -13,18 +13,18 @@ if(NOT BUILD_SHARED_LIBS)
13 message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") 13 message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
14 endif() 14 endif()
15 15
16 -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-osx-universal2-1.16.0.tgz")  
17 -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-osx-universal2-1.16.0.tgz")  
18 -set(onnxruntime_HASH "SHA256=e5b69ece634cf1cd5cf4b45ab478417199a5e8ab5775f6f12560e09dc5ef7749") 16 +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-osx-universal2-1.16.1.tgz")
  17 +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-universal2-1.16.1.tgz")
  18 +set(onnxruntime_HASH "SHA256=e8568a4a3f602c25ea7c3bbd2f085340dff5bb68fa7c859fd763d944105e3d76")
19 19
20 # If you don't have access to the Internet, 20 # If you don't have access to the Internet,
21 # please download onnxruntime to one of the following locations. 21 # please download onnxruntime to one of the following locations.
22 # You can add more if you want. 22 # You can add more if you want.
23 set(possible_file_locations 23 set(possible_file_locations
24 - $ENV{HOME}/Downloads/onnxruntime-osx-universal2-1.16.0.tgz  
25 - ${PROJECT_SOURCE_DIR}/onnxruntime-osx-universal2-1.16.0.tgz  
26 - ${PROJECT_BINARY_DIR}/onnxruntime-osx-universal2-1.16.0.tgz  
27 - /tmp/onnxruntime-osx-universal2-1.16.0.tgz 24 + $ENV{HOME}/Downloads/onnxruntime-osx-universal2-1.16.1.tgz
  25 + ${PROJECT_SOURCE_DIR}/onnxruntime-osx-universal2-1.16.1.tgz
  26 + ${PROJECT_BINARY_DIR}/onnxruntime-osx-universal2-1.16.1.tgz
  27 + /tmp/onnxruntime-osx-universal2-1.16.1.tgz
28 ) 28 )
29 29
30 foreach(f IN LISTS possible_file_locations) 30 foreach(f IN LISTS possible_file_locations)
@@ -12,18 +12,18 @@ if(BUILD_SHARED_LIBS) @@ -12,18 +12,18 @@ if(BUILD_SHARED_LIBS)
12 message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") 12 message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
13 endif() 13 endif()
14 14
15 -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-osx-x86_64-static_lib-1.16.0.zip")  
16 -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-x86_64-static_lib-1.16.0.zip")  
17 -set(onnxruntime_HASH "SHA256=1686a1b6778483371d29106d8c7300a8960e3db084ab84ac4f870b7685cf5259") 15 +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-osx-x86_64-static_lib-1.16.1.zip")
  16 +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-x86_64-static_lib-1.16.1.zip")
  17 +set(onnxruntime_HASH "SHA256=da7e223d975ddfc9599187d016e2fc47e6f072f2a9817c5a48d8d7f021b49fbb")
18 18
19 # If you don't have access to the Internet, 19 # If you don't have access to the Internet,
20 # please download onnxruntime to one of the following locations. 20 # please download onnxruntime to one of the following locations.
21 # You can add more if you want. 21 # You can add more if you want.
22 set(possible_file_locations 22 set(possible_file_locations
23 - $ENV{HOME}/Downloads/onnxruntime-osx-x86_64-static_lib-1.16.0.zip  
24 - ${PROJECT_SOURCE_DIR}/onnxruntime-osx-x86_64-static_lib-1.16.0.zip  
25 - ${PROJECT_BINARY_DIR}/onnxruntime-osx-x86_64-static_lib-1.16.0.zip  
26 - /tmp/onnxruntime-osx-x86_64-static_lib-1.16.0.zip 23 + $ENV{HOME}/Downloads/onnxruntime-osx-x86_64-static_lib-1.16.1.zip
  24 + ${PROJECT_SOURCE_DIR}/onnxruntime-osx-x86_64-static_lib-1.16.1.zip
  25 + ${PROJECT_BINARY_DIR}/onnxruntime-osx-x86_64-static_lib-1.16.1.zip
  26 + /tmp/onnxruntime-osx-x86_64-static_lib-1.16.1.zip
27 ) 27 )
28 28
29 foreach(f IN LISTS possible_file_locations) 29 foreach(f IN LISTS possible_file_locations)
@@ -12,18 +12,18 @@ if(NOT BUILD_SHARED_LIBS) @@ -12,18 +12,18 @@ if(NOT BUILD_SHARED_LIBS)
12 message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") 12 message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
13 endif() 13 endif()
14 14
15 -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-osx-x86_64-1.16.0.tgz")  
16 -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-osx-x86_64-1.16.0.tgz")  
17 -set(onnxruntime_HASH "SHA256=3d639a269af4e97a455f23cff363a709ef3a5f3e086162e65e3395c339122285") 15 +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-osx-x86_64-1.16.1.tgz")
  16 +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-x86_64-1.16.1.tgz")
  17 +set(onnxruntime_HASH "SHA256=0b8ae24401a8f75e1c4f75257d4eaeb1b6d44055e027df4aa4a84e67e0f9b9e3")
18 18
19 # If you don't have access to the Internet, 19 # If you don't have access to the Internet,
20 # please download onnxruntime to one of the following locations. 20 # please download onnxruntime to one of the following locations.
21 # You can add more if you want. 21 # You can add more if you want.
22 set(possible_file_locations 22 set(possible_file_locations
23 - $ENV{HOME}/Downloads/onnxruntime-osx-x86_64-1.16.0.tgz  
24 - ${PROJECT_SOURCE_DIR}/onnxruntime-osx-x86_64-1.16.0.tgz  
25 - ${PROJECT_BINARY_DIR}/onnxruntime-osx-x86_64-1.16.0.tgz  
26 - /tmp/onnxruntime-osx-x86_64-1.16.0.tgz 23 + $ENV{HOME}/Downloads/onnxruntime-osx-x86_64-1.16.1.tgz
  24 + ${PROJECT_SOURCE_DIR}/onnxruntime-osx-x86_64-1.16.1.tgz
  25 + ${PROJECT_BINARY_DIR}/onnxruntime-osx-x86_64-1.16.1.tgz
  26 + /tmp/onnxruntime-osx-x86_64-1.16.1.tgz
27 ) 27 )
28 28
29 foreach(f IN LISTS possible_file_locations) 29 foreach(f IN LISTS possible_file_locations)
@@ -19,18 +19,18 @@ if(NOT SHERPA_ONNX_ENABLE_GPU) @@ -19,18 +19,18 @@ if(NOT SHERPA_ONNX_ENABLE_GPU)
19 message(FATAL_ERROR "This file is for NVIDIA GPU only. Given SHERPA_ONNX_ENABLE_GPU: ${SHERPA_ONNX_ENABLE_GPU}") 19 message(FATAL_ERROR "This file is for NVIDIA GPU only. Given SHERPA_ONNX_ENABLE_GPU: ${SHERPA_ONNX_ENABLE_GPU}")
20 endif() 20 endif()
21 21
22 -set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.0/onnxruntime-win-x64-gpu-1.16.0.zip")  
23 -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-win-x64-gpu-1.16.0.zip")  
24 -set(onnxruntime_HASH "SHA256=2a824d2a98fe7328980fcd27016fe797137f7050b047eecf3a3f6b82a24f63c1") 22 +set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.1/onnxruntime-win-x64-gpu-1.16.1.zip")
  23 +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x64-gpu-1.16.1.zip")
  24 +set(onnxruntime_HASH "SHA256=b841f8e8d9a0556bfc5228ff1488395fa041fafe8d16a62e25a254d000d51888")
25 25
26 # If you don't have access to the Internet, 26 # If you don't have access to the Internet,
27 # please download onnxruntime to one of the following locations. 27 # please download onnxruntime to one of the following locations.
28 # You can add more if you want. 28 # You can add more if you want.
29 set(possible_file_locations 29 set(possible_file_locations
30 - $ENV{HOME}/Downloads/onnxruntime-win-x64-gpu-1.16.0.zip  
31 - ${PROJECT_SOURCE_DIR}/onnxruntime-win-x64-gpu-1.16.0.zip  
32 - ${PROJECT_BINARY_DIR}/onnxruntime-win-x64-gpu-1.16.0.zip  
33 - /tmp/onnxruntime-win-x64-gpu-1.16.0.zip 30 + $ENV{HOME}/Downloads/onnxruntime-win-x64-gpu-1.16.1.zip
  31 + ${PROJECT_SOURCE_DIR}/onnxruntime-win-x64-gpu-1.16.1.zip
  32 + ${PROJECT_BINARY_DIR}/onnxruntime-win-x64-gpu-1.16.1.zip
  33 + /tmp/onnxruntime-win-x64-gpu-1.16.1.zip
34 ) 34 )
35 35
36 foreach(f IN LISTS possible_file_locations) 36 foreach(f IN LISTS possible_file_locations)
@@ -15,18 +15,18 @@ if(BUILD_SHARED_LIBS) @@ -15,18 +15,18 @@ if(BUILD_SHARED_LIBS)
15 message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") 15 message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
16 endif() 16 endif()
17 17
18 -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-win-x64-static_lib-1.16.0.tar.bz2")  
19 -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x64-static_lib-1.16.0.tar.bz2")  
20 -set(onnxruntime_HASH "SHA256=7b28a694178d075e6836d618613e2a0fd0046ccd9fd66bbf6a46d22e96db33b8") 18 +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-win-x64-static_lib-1.16.1.tar.bz2")
  19 +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x64-static_lib-1.16.1.tar.bz2")
  20 +set(onnxruntime_HASH "SHA256=9d7ba69823a6948887d0dee3e80c8c8ce84aae3e4e151f1e96eb34ca8ba9915f")
21 21
22 # If you don't have access to the Internet, 22 # If you don't have access to the Internet,
23 # please download onnxruntime to one of the following locations. 23 # please download onnxruntime to one of the following locations.
24 # You can add more if you want. 24 # You can add more if you want.
25 set(possible_file_locations 25 set(possible_file_locations
26 - $ENV{HOME}/Downloads/onnxruntime-win-x64-static_lib-1.16.0.tar.bz2  
27 - ${PROJECT_SOURCE_DIR}/onnxruntime-win-x64-static_lib-1.16.0.tar.bz2  
28 - ${PROJECT_BINARY_DIR}/onnxruntime-win-x64-static_lib-1.16.0.tar.bz2  
29 - /tmp/onnxruntime-win-x64-static_lib-1.16.0.tar.bz2 26 + $ENV{HOME}/Downloads/onnxruntime-win-x64-static_lib-1.16.1.tar.bz2
  27 + ${PROJECT_SOURCE_DIR}/onnxruntime-win-x64-static_lib-1.16.1.tar.bz2
  28 + ${PROJECT_BINARY_DIR}/onnxruntime-win-x64-static_lib-1.16.1.tar.bz2
  29 + /tmp/onnxruntime-win-x64-static_lib-1.16.1.tar.bz2
30 ) 30 )
31 31
32 foreach(f IN LISTS possible_file_locations) 32 foreach(f IN LISTS possible_file_locations)
@@ -15,18 +15,18 @@ if(NOT BUILD_SHARED_LIBS) @@ -15,18 +15,18 @@ if(NOT BUILD_SHARED_LIBS)
15 message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") 15 message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
16 endif() 16 endif()
17 17
18 -set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.0/onnxruntime-win-x64-1.16.0.zip")  
19 -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-win-x64-1.16.0.zip")  
20 -set(onnxruntime_HASH "SHA256=ce6777ecde7d4a6c9d4eab9774089fe04be1bad979323ae502e667b95222e08f") 18 +set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.1/onnxruntime-win-x64-1.16.1.zip")
  19 +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x64-1.16.1.zip")
  20 +set(onnxruntime_HASH "SHA256=05a972384c73c05bce51ffd3e15b1e78325ea9fa652573113159b5cac547ecce")
21 21
22 # If you don't have access to the Internet, 22 # If you don't have access to the Internet,
23 # please download onnxruntime to one of the following locations. 23 # please download onnxruntime to one of the following locations.
24 # You can add more if you want. 24 # You can add more if you want.
25 set(possible_file_locations 25 set(possible_file_locations
26 - $ENV{HOME}/Downloads/onnxruntime-win-x64-1.16.0.zip  
27 - ${PROJECT_SOURCE_DIR}/onnxruntime-win-x64-1.16.0.zip  
28 - ${PROJECT_BINARY_DIR}/onnxruntime-win-x64-1.16.0.zip  
29 - /tmp/onnxruntime-win-x64-1.16.0.zip 26 + $ENV{HOME}/Downloads/onnxruntime-win-x64-1.16.1.zip
  27 + ${PROJECT_SOURCE_DIR}/onnxruntime-win-x64-1.16.1.zip
  28 + ${PROJECT_BINARY_DIR}/onnxruntime-win-x64-1.16.1.zip
  29 + /tmp/onnxruntime-win-x64-1.16.1.zip
30 ) 30 )
31 31
32 foreach(f IN LISTS possible_file_locations) 32 foreach(f IN LISTS possible_file_locations)
@@ -15,18 +15,18 @@ if(BUILD_SHARED_LIBS) @@ -15,18 +15,18 @@ if(BUILD_SHARED_LIBS)
15 message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") 15 message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
16 endif() 16 endif()
17 17
18 -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-win-x86-static_lib-1.16.0.tar.bz2")  
19 -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x86-static_lib-1.16.0.tar.bz2")  
20 -set(onnxruntime_HASH "SHA256=fe78775b222244bbcb512631719a94336391b645edb23c314201a6991ddecb58") 18 +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-win-x86-static_lib-1.16.1.tar.bz2")
  19 +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x86-static_lib-1.16.1.tar.bz2")
  20 +set(onnxruntime_HASH "SHA256=590d702f6705452567789ef862384e8ab99b039da10e7ecdc11a07d778c80ff9")
21 21
22 # If you don't have access to the Internet, 22 # If you don't have access to the Internet,
23 # please download onnxruntime to one of the following locations. 23 # please download onnxruntime to one of the following locations.
24 # You can add more if you want. 24 # You can add more if you want.
25 set(possible_file_locations 25 set(possible_file_locations
26 - $ENV{HOME}/Downloads/onnxruntime-win-x86-static_lib-1.16.0.tar.bz2  
27 - ${PROJECT_SOURCE_DIR}/onnxruntime-win-x86-static_lib-1.16.0.tar.bz2  
28 - ${PROJECT_BINARY_DIR}/onnxruntime-win-x86-static_lib-1.16.0.tar.bz2  
29 - /tmp/onnxruntime-win-x86-static_lib-1.16.0.tar.bz2 26 + $ENV{HOME}/Downloads/onnxruntime-win-x86-static_lib-1.16.1.tar.bz2
  27 + ${PROJECT_SOURCE_DIR}/onnxruntime-win-x86-static_lib-1.16.1.tar.bz2
  28 + ${PROJECT_BINARY_DIR}/onnxruntime-win-x86-static_lib-1.16.1.tar.bz2
  29 + /tmp/onnxruntime-win-x86-static_lib-1.16.1.tar.bz2
30 ) 30 )
31 31
32 foreach(f IN LISTS possible_file_locations) 32 foreach(f IN LISTS possible_file_locations)
@@ -15,18 +15,18 @@ if(NOT BUILD_SHARED_LIBS) @@ -15,18 +15,18 @@ if(NOT BUILD_SHARED_LIBS)
15 message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") 15 message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
16 endif() 16 endif()
17 17
18 -set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.0/onnxruntime-win-x86-1.16.0.zip")  
19 -set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-win-x86-1.16.0.zip")  
20 -set(onnxruntime_HASH "SHA256=a1da9e0739336c826c04ab7cb63a3e7bf6ab0dda5fb8bbba17bba4cf8c7d4e20") 18 +set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.16.1/onnxruntime-win-x86-1.16.1.zip")
  19 +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x86-1.16.1.zip")
  20 +set(onnxruntime_HASH "SHA256=60b476cde62d424fc9bf87ec3bf275cf40af76bdb25022581f3ecaf4af5992a1")
21 21
22 # If you don't have access to the Internet, 22 # If you don't have access to the Internet,
23 # please download onnxruntime to one of the following locations. 23 # please download onnxruntime to one of the following locations.
24 # You can add more if you want. 24 # You can add more if you want.
25 set(possible_file_locations 25 set(possible_file_locations
26 - $ENV{HOME}/Downloads/onnxruntime-win-x86-1.16.0.zip  
27 - ${PROJECT_SOURCE_DIR}/onnxruntime-win-x86-1.16.0.zip  
28 - ${PROJECT_BINARY_DIR}/onnxruntime-win-x86-1.16.0.zip  
29 - /tmp/onnxruntime-win-x86-1.16.0.zip 26 + $ENV{HOME}/Downloads/onnxruntime-win-x86-1.16.1.zip
  27 + ${PROJECT_SOURCE_DIR}/onnxruntime-win-x86-1.16.1.zip
  28 + ${PROJECT_BINARY_DIR}/onnxruntime-win-x86-1.16.1.zip
  29 + /tmp/onnxruntime-win-x86-1.16.1.zip
30 ) 30 )
31 31
32 foreach(f IN LISTS possible_file_locations) 32 foreach(f IN LISTS possible_file_locations)
@@ -34,7 +34,7 @@ def get_dict(): @@ -34,7 +34,7 @@ def get_dict():
34 def process_linux(s): 34 def process_linux(s):
35 libs = [ 35 libs = [
36 "libkaldi-native-fbank-core.so", 36 "libkaldi-native-fbank-core.so",
37 - "libonnxruntime.so.1.16.0", 37 + "libonnxruntime.so.1.16.1",
38 "libsherpa-onnx-c-api.so", 38 "libsherpa-onnx-c-api.so",
39 "libsherpa-onnx-core.so", 39 "libsherpa-onnx-core.so",
40 ] 40 ]
@@ -56,7 +56,7 @@ def process_linux(s): @@ -56,7 +56,7 @@ def process_linux(s):
56 def process_macos(s): 56 def process_macos(s):
57 libs = [ 57 libs = [
58 "libkaldi-native-fbank-core.dylib", 58 "libkaldi-native-fbank-core.dylib",
59 - "libonnxruntime.1.16.0.dylib", 59 + "libonnxruntime.1.16.1.dylib",
60 "libsherpa-onnx-c-api.dylib", 60 "libsherpa-onnx-c-api.dylib",
61 "libsherpa-onnx-core.dylib", 61 "libsherpa-onnx-core.dylib",
62 ] 62 ]