From 4034daf7e0729a86d490c2db1b9a58e52e14eef9 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Thu, 18 Apr 2024 18:16:54 +0800 Subject: [PATCH 1/3] Fix cmake for onnxruntime 1.17.3 --- cmake/onnxruntime-linux-aarch64-static.cmake | 16 ++++++++-------- cmake/onnxruntime-linux-arm-static.cmake | 16 ++++++++-------- cmake/onnxruntime-linux-arm.cmake | 16 ++++++++-------- cmake/onnxruntime-linux-x86_64-gpu.cmake | 16 ++++++++-------- cmake/onnxruntime-linux-x86_64-static.cmake | 16 ++++++++-------- cmake/onnxruntime-linux-x86_64.cmake | 16 ++++++++-------- cmake/onnxruntime-osx-arm64-static.cmake | 14 +++++++------- cmake/onnxruntime-osx-arm64.cmake | 14 +++++++------- cmake/onnxruntime-osx-universal-static.cmake | 14 +++++++------- cmake/onnxruntime-osx-universal.cmake | 14 +++++++------- cmake/onnxruntime-osx-x86_64-static.cmake | 14 +++++++------- cmake/onnxruntime-osx-x86_64.cmake | 14 +++++++------- cmake/onnxruntime-wasm-simd.cmake | 16 ++++++++-------- cmake/onnxruntime-win-x64-gpu.cmake | 14 +++++++------- cmake/onnxruntime-win-x64-static-debug.cmake | 18 +++++++++--------- cmake/onnxruntime-win-x64-static.cmake | 14 +++++++------- cmake/onnxruntime-win-x64.cmake | 14 +++++++------- cmake/onnxruntime-win-x86-static-debug.cmake | 18 +++++++++--------- cmake/onnxruntime-win-x86-static.cmake | 14 +++++++------- cmake/onnxruntime-win-x86.cmake | 14 +++++++------- 20 files changed, 151 insertions(+), 151 deletions(-) diff --git a/cmake/onnxruntime-linux-aarch64-static.cmake b/cmake/onnxruntime-linux-aarch64-static.cmake index 9606c79db..48d8aeca6 100644 --- a/cmake/onnxruntime-linux-aarch64-static.cmake +++ b/cmake/onnxruntime-linux-aarch64-static.cmake @@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS) message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") endif() -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-aarch64-static_lib-1.17.1.zip") -set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-aarch64-static_lib-1.17.1.zip") -set(onnxruntime_HASH "SHA256=831b9a3869501040b4399de85f34c4f170e2bcbd41881edaeb553f8dc4080985") +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-linux-aarch64-static_lib-1.17.3.zip") +set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-linux-aarch64-static_lib-1.17.3.zip") +set(onnxruntime_HASH "SHA256=cc026c72eb0fcebc38ad86ef0e54745c27a06523c5e50b7482315017946a3f0c") # If you don't have access to the Internet, # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-linux-aarch64-static_lib-1.17.1.zip - ${CMAKE_SOURCE_DIR}/onnxruntime-linux-aarch64-static_lib-1.17.1.zip - ${CMAKE_BINARY_DIR}/onnxruntime-linux-aarch64-static_lib-1.17.1.zip - /tmp/onnxruntime-linux-aarch64-static_lib-1.17.1.zip - /star-fj/fangjun/download/github/onnxruntime-linux-aarch64-static_lib-1.17.1.zip + $ENV{HOME}/Downloads/onnxruntime-linux-aarch64-static_lib-1.17.3.zip + ${CMAKE_SOURCE_DIR}/onnxruntime-linux-aarch64-static_lib-1.17.3.zip + ${CMAKE_BINARY_DIR}/onnxruntime-linux-aarch64-static_lib-1.17.3.zip + /tmp/onnxruntime-linux-aarch64-static_lib-1.17.3.zip + /star-fj/fangjun/download/github/onnxruntime-linux-aarch64-static_lib-1.17.3.zip ) foreach(f IN LISTS possible_file_locations) diff --git a/cmake/onnxruntime-linux-arm-static.cmake b/cmake/onnxruntime-linux-arm-static.cmake index cf2269afb..2a4495271 100644 --- a/cmake/onnxruntime-linux-arm-static.cmake +++ b/cmake/onnxruntime-linux-arm-static.cmake @@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS) message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") endif() -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-arm-static_lib-1.17.1.zip") -set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-arm-static_lib-1.17.1.zip") -set(onnxruntime_HASH "SHA256=3f2ba38156d2facfb732c0fe53bc1eaaf2791d9a91dd240380e3d53716798b09") +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-linux-arm-static_lib-1.17.3.zip") +set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-linux-arm-static_lib-1.17.3.zip") +set(onnxruntime_HASH "SHA256=b4d3cc4d0a821c3286cf5dcc04b039d1983af990cbee8d761cc5aebd49f08477") # If you don't have access to the Internet, # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-linux-arm-static_lib-1.17.1.zip - ${CMAKE_SOURCE_DIR}/onnxruntime-linux-arm-static_lib-1.17.1.zip - ${CMAKE_BINARY_DIR}/onnxruntime-linux-arm-static_lib-1.17.1.zip - /tmp/onnxruntime-linux-arm-static_lib-1.17.1.zip - /star-fj/fangjun/download/github/onnxruntime-linux-arm-static_lib-1.17.1.zip + $ENV{HOME}/Downloads/onnxruntime-linux-arm-static_lib-1.17.3.zip + ${CMAKE_SOURCE_DIR}/onnxruntime-linux-arm-static_lib-1.17.3.zip + ${CMAKE_BINARY_DIR}/onnxruntime-linux-arm-static_lib-1.17.3.zip + /tmp/onnxruntime-linux-arm-static_lib-1.17.3.zip + /star-fj/fangjun/download/github/onnxruntime-linux-arm-static_lib-1.17.3.zip ) foreach(f IN LISTS possible_file_locations) diff --git a/cmake/onnxruntime-linux-arm.cmake b/cmake/onnxruntime-linux-arm.cmake index 556bd0646..e35182af0 100644 --- a/cmake/onnxruntime-linux-arm.cmake +++ b/cmake/onnxruntime-linux-arm.cmake @@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS) message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") endif() -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-arm-1.17.1.zip") -set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-arm-1.17.1.zip") -set(onnxruntime_HASH "SHA256=08eed09b35a015fbf3a068baf6388a3b447d24dec62b75cd591a01179d0bfe7b") +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-linux-arm-1.17.3.zip") +set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-linux-arm-1.17.3.zip") +set(onnxruntime_HASH "SHA256=90018ff51f70112225bda9e009c0ad71c6f62c26fd1c2e41b50136f08206db38") # If you don't have access to the Internet, # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-linux-arm-1.17.1.zip - ${CMAKE_SOURCE_DIR}/onnxruntime-linux-arm-1.17.1.zip - ${CMAKE_BINARY_DIR}/onnxruntime-linux-arm-1.17.1.zip - /tmp/onnxruntime-linux-arm-1.17.1.zip - /star-fj/fangjun/download/github/onnxruntime-linux-arm-1.17.1.zip + $ENV{HOME}/Downloads/onnxruntime-linux-arm-1.17.3.zip + ${CMAKE_SOURCE_DIR}/onnxruntime-linux-arm-1.17.3.zip + ${CMAKE_BINARY_DIR}/onnxruntime-linux-arm-1.17.3.zip + /tmp/onnxruntime-linux-arm-1.17.3.zip + /star-fj/fangjun/download/github/onnxruntime-linux-arm-1.17.3.zip ) foreach(f IN LISTS possible_file_locations) diff --git a/cmake/onnxruntime-linux-x86_64-gpu.cmake b/cmake/onnxruntime-linux-x86_64-gpu.cmake index ab96b2351..ef9cd3a5e 100644 --- a/cmake/onnxruntime-linux-x86_64-gpu.cmake +++ b/cmake/onnxruntime-linux-x86_64-gpu.cmake @@ -18,19 +18,19 @@ if(NOT SHERPA_ONNX_ENABLE_GPU) message(FATAL_ERROR "This file is for NVIDIA GPU only. Given SHERPA_ONNX_ENABLE_GPU: ${SHERPA_ONNX_ENABLE_GPU}") endif() -set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-linux-x64-gpu-1.17.1.tgz") -set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-linux-x64-gpu-1.17.1.tgz") -set(onnxruntime_HASH "SHA256=613c53745ea4960ed368f6b3ab673558bb8561c84a8fa781b4ea7fb4a4340be4") +set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.3/onnxruntime-linux-x64-gpu-1.17.3.tgz") +set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.3/onnxruntime-linux-x64-gpu-1.17.3.tgz") +set(onnxruntime_HASH "SHA256=149a6169958a3460d61986a77ff0766ccaa92a92fb2046223ce609e673ba379c") # If you don't have access to the Internet, # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-linux-x64-gpu-1.17.1.tgz - ${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-gpu-1.17.1.tgz - ${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-gpu-1.17.1.tgz - /tmp/onnxruntime-linux-x64-gpu-1.17.1.tgz - /star-fj/fangjun/download/github/onnxruntime-linux-x64-gpu-1.17.1.tgz + $ENV{HOME}/Downloads/onnxruntime-linux-x64-gpu-1.17.3.tgz + ${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-gpu-1.17.3.tgz + ${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-gpu-1.17.3.tgz + /tmp/onnxruntime-linux-x64-gpu-1.17.3.tgz + /star-fj/fangjun/download/github/onnxruntime-linux-x64-gpu-1.17.3.tgz ) foreach(f IN LISTS possible_file_locations) diff --git a/cmake/onnxruntime-linux-x86_64-static.cmake b/cmake/onnxruntime-linux-x86_64-static.cmake index 0b3884367..8a2849f35 100644 --- a/cmake/onnxruntime-linux-x86_64-static.cmake +++ b/cmake/onnxruntime-linux-x86_64-static.cmake @@ -14,19 +14,19 @@ if(BUILD_SHARED_LIBS) message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") endif() -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-x64-static_lib-1.17.1-gcc-8.zip") -set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-x64-static_lib-1.17.1-gcc-8.zip") -set(onnxruntime_HASH "SHA256=44377e9b7eef618afd10216a597a4d2a09a74727cbc5bdd7d86ca2b6e00a28cb") +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-linux-x64-static_lib-1.17.3-gcc-8.zip") +set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-linux-x64-static_lib-1.17.3-gcc-8.zip") +set(onnxruntime_HASH "SHA256=4848ba65d7ded63298953f8c85541e043bed214381bc08659b725e22e2afec61") # If you don't have access to the Internet, # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-linux-x64-static_lib-1.17.1-gcc-8.zip - ${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-static_lib-1.17.1-gcc-8.zip - ${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-static_lib-1.17.1-gcc-8.zip - /tmp/onnxruntime-linux-x64-static_lib-1.17.1-gcc-8.zip - /star-fj/fangjun/download/github/onnxruntime-linux-x64-static_lib-1.17.1-gcc-8.zip + $ENV{HOME}/Downloads/onnxruntime-linux-x64-static_lib-1.17.3-gcc-8.zip + ${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-static_lib-1.17.3-gcc-8.zip + ${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-static_lib-1.17.3-gcc-8.zip + /tmp/onnxruntime-linux-x64-static_lib-1.17.3-gcc-8.zip + /star-fj/fangjun/download/github/onnxruntime-linux-x64-static_lib-1.17.3-gcc-8.zip ) foreach(f IN LISTS possible_file_locations) diff --git a/cmake/onnxruntime-linux-x86_64.cmake b/cmake/onnxruntime-linux-x86_64.cmake index 5cd3fb83b..9a5dc23db 100644 --- a/cmake/onnxruntime-linux-x86_64.cmake +++ b/cmake/onnxruntime-linux-x86_64.cmake @@ -14,19 +14,19 @@ if(NOT BUILD_SHARED_LIBS) message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") endif() -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-x64-glibc2_17-Release-1.17.1.zip") -set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-x64-glibc2_17-Release-1.17.1.zip") -set(onnxruntime_HASH "SHA256=3cfa5c2c5c21a9401572af5a4cd9d15ed8f6524f10d3b80e5a38676b3a31efe0") +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-linux-x64-glibc2_17-Release-1.17.3.zip") +set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-linux-x64-glibc2_17-Release-1.17.3.zip") +set(onnxruntime_HASH "SHA256=fbb51f79f7488ce37cedee75ec50a90ba2717c2545a0c5dc1f43fcfd20b5d8f1") # If you don't have access to the Internet, # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-linux-x64-glibc2_17-Release-1.17.1.zip - ${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-glibc2_17-Release-1.17.1.zip - ${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-glibc2_17-Release-1.17.1.zip - /tmp/onnxruntime-linux-x64-glibc2_17-Release-1.17.1.zip - /star-fj/fangjun/download/github/onnxruntime-linux-x64-glibc2_17-Release-1.17.1.zip + $ENV{HOME}/Downloads/onnxruntime-linux-x64-glibc2_17-Release-1.17.3.zip + ${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-glibc2_17-Release-1.17.3.zip + ${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-glibc2_17-Release-1.17.3.zip + /tmp/onnxruntime-linux-x64-glibc2_17-Release-1.17.3.zip + /star-fj/fangjun/download/github/onnxruntime-linux-x64-glibc2_17-Release-1.17.3.zip ) foreach(f IN LISTS possible_file_locations) diff --git a/cmake/onnxruntime-osx-arm64-static.cmake b/cmake/onnxruntime-osx-arm64-static.cmake index 494e263ff..0b8debcb7 100644 --- a/cmake/onnxruntime-osx-arm64-static.cmake +++ b/cmake/onnxruntime-osx-arm64-static.cmake @@ -12,18 +12,18 @@ if(BUILD_SHARED_LIBS) message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") endif() -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-osx-arm64-static_lib-1.17.1.zip") -set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-osx-arm64-static_lib-1.17.1.zip") -set(onnxruntime_HASH "SHA256=b88a4017251c159fea005aefe836bd0cf4d0bc7454e2810784f84a42143f17eb") +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-osx-arm64-static_lib-1.17.3.zip") +set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-osx-arm64-static_lib-1.17.3.zip") +set(onnxruntime_HASH "SHA256=2af5237cc828eb04dc0a8421bc623ab6d22c502bc599b5bfdd0766618563421b") # If you don't have access to the Internet, # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-osx-arm64-static_lib-1.17.1.zip - ${CMAKE_SOURCE_DIR}/onnxruntime-osx-arm64-static_lib-1.17.1.zip - ${CMAKE_BINARY_DIR}/onnxruntime-osx-arm64-static_lib-1.17.1.zip - /tmp/onnxruntime-osx-arm64-static_lib-1.17.1.zip + $ENV{HOME}/Downloads/onnxruntime-osx-arm64-static_lib-1.17.3.zip + ${CMAKE_SOURCE_DIR}/onnxruntime-osx-arm64-static_lib-1.17.3.zip + ${CMAKE_BINARY_DIR}/onnxruntime-osx-arm64-static_lib-1.17.3.zip + /tmp/onnxruntime-osx-arm64-static_lib-1.17.3.zip ) foreach(f IN LISTS possible_file_locations) diff --git a/cmake/onnxruntime-osx-arm64.cmake b/cmake/onnxruntime-osx-arm64.cmake index 3998cc8b4..b1486c9e3 100644 --- a/cmake/onnxruntime-osx-arm64.cmake +++ b/cmake/onnxruntime-osx-arm64.cmake @@ -12,18 +12,18 @@ if(NOT BUILD_SHARED_LIBS) message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") endif() -set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-osx-arm64-1.17.1.tgz") -set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-osx-arm64-1.17.1.tgz") -set(onnxruntime_HASH "SHA256=89566f424624a7ad9a7d9d5e413c44b9639a994d7171cf409901d125b16e2bb3") +set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.3/onnxruntime-osx-arm64-1.17.3.tgz") +set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.3/onnxruntime-osx-arm64-1.17.3.tgz") +set(onnxruntime_HASH "SHA256=236c49c9065213b0ec9dec874e3619da3d01cbc8b984bb24291247293454d0f4") # If you don't have access to the Internet, # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-osx-arm64-1.17.1.tgz - ${CMAKE_SOURCE_DIR}/onnxruntime-osx-arm64-1.17.1.tgz - ${CMAKE_BINARY_DIR}/onnxruntime-osx-arm64-1.17.1.tgz - /tmp/onnxruntime-osx-arm64-1.17.1.tgz + $ENV{HOME}/Downloads/onnxruntime-osx-arm64-1.17.3.tgz + ${CMAKE_SOURCE_DIR}/onnxruntime-osx-arm64-1.17.3.tgz + ${CMAKE_BINARY_DIR}/onnxruntime-osx-arm64-1.17.3.tgz + /tmp/onnxruntime-osx-arm64-1.17.3.tgz ) foreach(f IN LISTS possible_file_locations) diff --git a/cmake/onnxruntime-osx-universal-static.cmake b/cmake/onnxruntime-osx-universal-static.cmake index 2abcf46b4..3ddd3bc35 100644 --- a/cmake/onnxruntime-osx-universal-static.cmake +++ b/cmake/onnxruntime-osx-universal-static.cmake @@ -13,18 +13,18 @@ if(BUILD_SHARED_LIBS) message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") endif() -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-osx-universal2-static_lib-1.17.1.zip") -set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-osx-universal2-static_lib-1.17.1.zip") -set(onnxruntime_HASH "SHA256=45599dbd2fb9dd52d6505930c0e82ca165391e222a68f5606b9ea9d4f3922e15") +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-osx-universal2-static_lib-1.17.3.zip") +set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-osx-universal2-static_lib-1.17.3.zip") +set(onnxruntime_HASH "SHA256=e2140977bfca538bdb8a6b444e64a2a17a821c3b4100b70165e14a2bbd5b47f3") # If you don't have access to the Internet, # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-osx-universal2-static_lib-1.17.1.zip - ${CMAKE_SOURCE_DIR}/onnxruntime-osx-universal2-static_lib-1.17.1.zip - ${CMAKE_BINARY_DIR}/onnxruntime-osx-universal2-static_lib-1.17.1.zip - /tmp/onnxruntime-osx-universal2-static_lib-1.17.1.zip + $ENV{HOME}/Downloads/onnxruntime-osx-universal2-static_lib-1.17.3.zip + ${CMAKE_SOURCE_DIR}/onnxruntime-osx-universal2-static_lib-1.17.3.zip + ${CMAKE_BINARY_DIR}/onnxruntime-osx-universal2-static_lib-1.17.3.zip + /tmp/onnxruntime-osx-universal2-static_lib-1.17.3.zip ) foreach(f IN LISTS possible_file_locations) diff --git a/cmake/onnxruntime-osx-universal.cmake b/cmake/onnxruntime-osx-universal.cmake index 2b0fbb110..8dbef994d 100644 --- a/cmake/onnxruntime-osx-universal.cmake +++ b/cmake/onnxruntime-osx-universal.cmake @@ -13,18 +13,18 @@ if(NOT BUILD_SHARED_LIBS) message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") endif() -set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-osx-universal2-1.17.1.tgz") -set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-osx-universal2-1.17.1.tgz") -set(onnxruntime_HASH "SHA256=9fa57fa6f202a373599377ef75064ae568fda8da838632b26a86024c7378d306") +set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.3/onnxruntime-osx-universal2-1.17.3.tgz") +set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.3/onnxruntime-osx-universal2-1.17.3.tgz") +set(onnxruntime_HASH "SHA256=f0309e28fbcf870bfb6fc8ed8b88e6f501183102347bad50e9103534cee5e97d") # If you don't have access to the Internet, # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-osx-universal2-1.17.1.tgz - ${CMAKE_SOURCE_DIR}/onnxruntime-osx-universal2-1.17.1.tgz - ${CMAKE_BINARY_DIR}/onnxruntime-osx-universal2-1.17.1.tgz - /tmp/onnxruntime-osx-universal2-1.17.1.tgz + $ENV{HOME}/Downloads/onnxruntime-osx-universal2-1.17.3.tgz + ${CMAKE_SOURCE_DIR}/onnxruntime-osx-universal2-1.17.3.tgz + ${CMAKE_BINARY_DIR}/onnxruntime-osx-universal2-1.17.3.tgz + /tmp/onnxruntime-osx-universal2-1.17.3.tgz ) foreach(f IN LISTS possible_file_locations) diff --git a/cmake/onnxruntime-osx-x86_64-static.cmake b/cmake/onnxruntime-osx-x86_64-static.cmake index 259ec4d01..cc5e10675 100644 --- a/cmake/onnxruntime-osx-x86_64-static.cmake +++ b/cmake/onnxruntime-osx-x86_64-static.cmake @@ -12,18 +12,18 @@ if(BUILD_SHARED_LIBS) message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") endif() -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-osx-x86_64-static_lib-1.17.1.zip") -set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-osx-x86_64-static_lib-1.17.1.zip") -set(onnxruntime_HASH "SHA256=5ff8efb97e50e257943c6c588328d2c57b649278098d3b468036f02755b60903") +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-osx-x86_64-static_lib-1.17.3.zip") +set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-osx-x86_64-static_lib-1.17.3.zip") +set(onnxruntime_HASH "SHA256=463908a32a8129a377c2a069270e10674f3d842b13f0f499702d2dd6b286b7b7") # If you don't have access to the Internet, # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-osx-x86_64-static_lib-1.17.1.zip - ${CMAKE_SOURCE_DIR}/onnxruntime-osx-x86_64-static_lib-1.17.1.zip - ${CMAKE_BINARY_DIR}/onnxruntime-osx-x86_64-static_lib-1.17.1.zip - /tmp/onnxruntime-osx-x86_64-static_lib-1.17.1.zip + $ENV{HOME}/Downloads/onnxruntime-osx-x86_64-static_lib-1.17.3.zip + ${CMAKE_SOURCE_DIR}/onnxruntime-osx-x86_64-static_lib-1.17.3.zip + ${CMAKE_BINARY_DIR}/onnxruntime-osx-x86_64-static_lib-1.17.3.zip + /tmp/onnxruntime-osx-x86_64-static_lib-1.17.3.zip ) foreach(f IN LISTS possible_file_locations) diff --git a/cmake/onnxruntime-osx-x86_64.cmake b/cmake/onnxruntime-osx-x86_64.cmake index 81b78991a..96572c906 100644 --- a/cmake/onnxruntime-osx-x86_64.cmake +++ b/cmake/onnxruntime-osx-x86_64.cmake @@ -12,18 +12,18 @@ if(NOT BUILD_SHARED_LIBS) message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") endif() -set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-osx-x86_64-1.17.1.tgz") -set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-osx-x86_64-1.17.1.tgz") -set(onnxruntime_HASH "SHA256=86c6b6896434084ff5086eebc4e9ea90be1ed4d46743f92864f46ee43e7b5059") +set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.3/onnxruntime-osx-x86_64-1.17.3.tgz") +set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.3/onnxruntime-osx-x86_64-1.17.3.tgz") +set(onnxruntime_HASH "SHA256=6292ad3d2e095b54b012a9fce7361f39fbac0b75fb6e9b1d9c320874515182e8") # If you don't have access to the Internet, # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-osx-x86_64-1.17.1.tgz - ${CMAKE_SOURCE_DIR}/onnxruntime-osx-x86_64-1.17.1.tgz - ${CMAKE_BINARY_DIR}/onnxruntime-osx-x86_64-1.17.1.tgz - /tmp/onnxruntime-osx-x86_64-1.17.1.tgz + $ENV{HOME}/Downloads/onnxruntime-osx-x86_64-1.17.3.tgz + ${CMAKE_SOURCE_DIR}/onnxruntime-osx-x86_64-1.17.3.tgz + ${CMAKE_BINARY_DIR}/onnxruntime-osx-x86_64-1.17.3.tgz + /tmp/onnxruntime-osx-x86_64-1.17.3.tgz ) foreach(f IN LISTS possible_file_locations) diff --git a/cmake/onnxruntime-wasm-simd.cmake b/cmake/onnxruntime-wasm-simd.cmake index dcc8fb5dd..784be3f51 100644 --- a/cmake/onnxruntime-wasm-simd.cmake +++ b/cmake/onnxruntime-wasm-simd.cmake @@ -10,19 +10,19 @@ if(BUILD_SHARED_LIBS) message(FATAL_ERROR "BUILD_SHARED_LIBS should be OFF for WebAssembly") endif() -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-wasm-static_lib-simd-1.17.1.zip") -set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-wasm-static_lib-simd-1.17.1.zip") -set(onnxruntime_HASH "SHA256=8f07778e4233cf5a61a9d0795d90c5497177fbe8a46b701fda2d8d4e2b11cef8") +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-wasm-static_lib-simd-1.17.3.zip") +set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-wasm-static_lib-simd-1.17.3.zip") +set(onnxruntime_HASH "SHA256=96067b54ada9eecccb0e51f678fc0366ac6ea3dcaac50124e70848735795280c") # If you don't have access to the Internet, # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-wasm-static_lib-simd-1.17.1.zip - ${CMAKE_SOURCE_DIR}/onnxruntime-wasm-static_lib-simd-1.17.1.zip - ${CMAKE_BINARY_DIR}/onnxruntime-wasm-static_lib-simd-1.17.1.zip - /tmp/onnxruntime-wasm-static_lib-simd-1.17.1.zip - /star-fj/fangjun/download/github/onnxruntime-wasm-static_lib-simd-1.17.1.zip + $ENV{HOME}/Downloads/onnxruntime-wasm-static_lib-simd-1.17.3.zip + ${CMAKE_SOURCE_DIR}/onnxruntime-wasm-static_lib-simd-1.17.3.zip + ${CMAKE_BINARY_DIR}/onnxruntime-wasm-static_lib-simd-1.17.3.zip + /tmp/onnxruntime-wasm-static_lib-simd-1.17.3.zip + /star-fj/fangjun/download/github/onnxruntime-wasm-static_lib-simd-1.17.3.zip ) foreach(f IN LISTS possible_file_locations) diff --git a/cmake/onnxruntime-win-x64-gpu.cmake b/cmake/onnxruntime-win-x64-gpu.cmake index 18b64d01f..1dfc6c8b2 100644 --- a/cmake/onnxruntime-win-x64-gpu.cmake +++ b/cmake/onnxruntime-win-x64-gpu.cmake @@ -19,18 +19,18 @@ if(NOT SHERPA_ONNX_ENABLE_GPU) message(FATAL_ERROR "This file is for NVIDIA GPU only. Given SHERPA_ONNX_ENABLE_GPU: ${SHERPA_ONNX_ENABLE_GPU}") endif() -set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-win-x64-gpu-1.17.1.zip") -set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-win-x64-gpu-1.17.1.zip") -set(onnxruntime_HASH "SHA256=b7a66f50ad146c2ccb43471d2d3b5ad78084c2d4ddbd3ea82d65f86c867408b2") +set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.3/onnxruntime-win-x64-gpu-1.17.3.zip") +set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.3/onnxruntime-win-x64-gpu-1.17.3.zip") +set(onnxruntime_HASH "SHA256=82d545bbcde0976ed3a1bfe44f4df27721975dcd806ab312c37f05a16c52aced") # If you don't have access to the Internet, # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-win-x64-gpu-1.17.1.zip - ${CMAKE_SOURCE_DIR}/onnxruntime-win-x64-gpu-1.17.1.zip - ${CMAKE_BINARY_DIR}/onnxruntime-win-x64-gpu-1.17.1.zip - /tmp/onnxruntime-win-x64-gpu-1.17.1.zip + $ENV{HOME}/Downloads/onnxruntime-win-x64-gpu-1.17.3.zip + ${CMAKE_SOURCE_DIR}/onnxruntime-win-x64-gpu-1.17.3.zip + ${CMAKE_BINARY_DIR}/onnxruntime-win-x64-gpu-1.17.3.zip + /tmp/onnxruntime-win-x64-gpu-1.17.3.zip ) foreach(f IN LISTS possible_file_locations) diff --git a/cmake/onnxruntime-win-x64-static-debug.cmake b/cmake/onnxruntime-win-x64-static-debug.cmake index 3281f4989..569fcd780 100644 --- a/cmake/onnxruntime-win-x64-static-debug.cmake +++ b/cmake/onnxruntime-win-x64-static-debug.cmake @@ -15,14 +15,14 @@ if(BUILD_SHARED_LIBS) message(FATAL_ERROR "This file is for building static libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") endif() -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-win-x64-static_lib-${CMAKE_BUILD_TYPE}-1.17.1.tar.bz2") -set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-win-x64-static_lib-${CMAKE_BUILD_TYPE}-1.17.1.tar.bz2") +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-win-x64-static_lib-${CMAKE_BUILD_TYPE}-1.17.3.tar.bz2") +set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-win-x64-static_lib-${CMAKE_BUILD_TYPE}-1.17.3.tar.bz2") if(CMAKE_BUILD_TYPE STREQUAL Debug) - set(onnxruntime_HASH "SHA256=ecc68d914541c3b6ebc36148af63fe2a6af0f4f955b35199d612698d23169fa5") + set(onnxruntime_HASH "SHA256=e192c21fbf0f7370a34ad39f10433affe813d7a8b10a07e3dccb1120825fe899") elseif(CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo) - set(onnxruntime_HASH "SHA256=7cbe58273e55d033568f84fb16d220cea4e25ec29eb7db405c4ac7b6e41f2dfa") + set(onnxruntime_HASH "SHA256=461c396a51504c15b08299627f3e63285e5c2bd9624dccc24c80dd9dc7e9f001") elseif(CMAKE_BUILD_TYPE STREQUAL MinSizeRel) - set(onnxruntime_HASH "SHA256=9eb3adf0f6ac3b0e9f118e0d9e686f50fc651394e0b0cc569275af6e3ffed0e0") + set(onnxruntime_HASH "SHA256=3d71daf3e5642145b80acfcf8f38c1c95bc4b50d0dd6737b816e5528e1d8099a") else() message(FATAL_ERROR "This file is for building a debug version on Windows x64. Given ${CMAKE_BUILD_TYPE}") endif() @@ -31,10 +31,10 @@ endif() # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-win-x64-static_lib-${CMAKE_BUILD_TYPE}-1.17.1.tar.bz2 - ${CMAKE_SOURCE_DIR}/onnxruntime-win-x64-static_lib-${CMAKE_BUILD_TYPE}-1.17.1.tar.bz2 - ${CMAKE_BINARY_DIR}/onnxruntime-win-x64-static_lib-${CMAKE_BUILD_TYPE}-1.17.1.tar.bz2 - /tmp/onnxruntime-win-x64-static_lib-${CMAKE_BUILD_TYPE}-1.17.1.tar.bz2 + $ENV{HOME}/Downloads/onnxruntime-win-x64-static_lib-${CMAKE_BUILD_TYPE}-1.17.3.tar.bz2 + ${CMAKE_SOURCE_DIR}/onnxruntime-win-x64-static_lib-${CMAKE_BUILD_TYPE}-1.17.3.tar.bz2 + ${CMAKE_BINARY_DIR}/onnxruntime-win-x64-static_lib-${CMAKE_BUILD_TYPE}-1.17.3.tar.bz2 + /tmp/onnxruntime-win-x64-static_lib-${CMAKE_BUILD_TYPE}-1.17.3.tar.bz2 ) foreach(f IN LISTS possible_file_locations) diff --git a/cmake/onnxruntime-win-x64-static.cmake b/cmake/onnxruntime-win-x64-static.cmake index 009390872..0ef491d35 100644 --- a/cmake/onnxruntime-win-x64-static.cmake +++ b/cmake/onnxruntime-win-x64-static.cmake @@ -19,18 +19,18 @@ if(NOT CMAKE_BUILD_TYPE STREQUAL Release) message(FATAL_ERROR "This file is for building a release version on Windows x64") endif() -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-win-x64-static_lib-1.17.1.tar.bz2") -set(onnxruntime_URL2 "https://hub.nuaa.cf/github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-win-x64-static_lib-1.17.1.tar.bz2") -set(onnxruntime_HASH "SHA256=42a0c02fda945d1d72433b2a7cdb2187d51cb4d7f3af462c6ae07b25314d5fb3") +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-win-x64-static_lib-1.17.3.tar.bz2") +set(onnxruntime_URL2 "https://hub.nuaa.cf/github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-win-x64-static_lib-1.17.3.tar.bz2") +set(onnxruntime_HASH "SHA256=1490beecc2b50e1ca0ef90330b3567e99d9e0a16e963b2e3058082a3ba8f50ae") # If you don't have access to the Internet, # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-win-x64-static_lib-1.17.1.tar.bz2 - ${CMAKE_SOURCE_DIR}/onnxruntime-win-x64-static_lib-1.17.1.tar.bz2 - ${CMAKE_BINARY_DIR}/onnxruntime-win-x64-static_lib-1.17.1.tar.bz2 - /tmp/onnxruntime-win-x64-static_lib-1.17.1.tar.bz2 + $ENV{HOME}/Downloads/onnxruntime-win-x64-static_lib-1.17.3.tar.bz2 + ${CMAKE_SOURCE_DIR}/onnxruntime-win-x64-static_lib-1.17.3.tar.bz2 + ${CMAKE_BINARY_DIR}/onnxruntime-win-x64-static_lib-1.17.3.tar.bz2 + /tmp/onnxruntime-win-x64-static_lib-1.17.3.tar.bz2 ) foreach(f IN LISTS possible_file_locations) diff --git a/cmake/onnxruntime-win-x64.cmake b/cmake/onnxruntime-win-x64.cmake index 26f96fdb0..6eae17d5a 100644 --- a/cmake/onnxruntime-win-x64.cmake +++ b/cmake/onnxruntime-win-x64.cmake @@ -15,18 +15,18 @@ if(NOT BUILD_SHARED_LIBS) message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") endif() -set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-win-x64-1.17.1.zip") -set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-win-x64-1.17.1.zip") -set(onnxruntime_HASH "SHA256=4802af9598db02153d7da39432a48823ff69b2fb4b59155461937f20782aa91c") +set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.3/onnxruntime-win-x64-1.17.3.zip") +set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.3/onnxruntime-win-x64-1.17.3.zip") +set(onnxruntime_HASH "SHA256=356a33d024f2709786bebd5d4ca06cd5392875da95daa0455aae72edc8993256") # If you don't have access to the Internet, # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-win-x64-1.17.1.zip - ${CMAKE_SOURCE_DIR}/onnxruntime-win-x64-1.17.1.zip - ${CMAKE_BINARY_DIR}/onnxruntime-win-x64-1.17.1.zip - /tmp/onnxruntime-win-x64-1.17.1.zip + $ENV{HOME}/Downloads/onnxruntime-win-x64-1.17.3.zip + ${CMAKE_SOURCE_DIR}/onnxruntime-win-x64-1.17.3.zip + ${CMAKE_BINARY_DIR}/onnxruntime-win-x64-1.17.3.zip + /tmp/onnxruntime-win-x64-1.17.3.zip ) foreach(f IN LISTS possible_file_locations) diff --git a/cmake/onnxruntime-win-x86-static-debug.cmake b/cmake/onnxruntime-win-x86-static-debug.cmake index a8d6858c6..9c980f29d 100644 --- a/cmake/onnxruntime-win-x86-static-debug.cmake +++ b/cmake/onnxruntime-win-x86-static-debug.cmake @@ -16,14 +16,14 @@ if(BUILD_SHARED_LIBS) endif() -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-win-x86-static_lib-${CMAKE_BUILD_TYPE}-1.17.1.tar.bz2") -set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-win-x86-static_lib-${CMAKE_BUILD_TYPE}-1.17.1.tar.bz2") +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-win-x86-static_lib-${CMAKE_BUILD_TYPE}-1.17.3.tar.bz2") +set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-win-x86-static_lib-${CMAKE_BUILD_TYPE}-1.17.3.tar.bz2") if(CMAKE_BUILD_TYPE STREQUAL Debug) - set(onnxruntime_HASH "SHA256=b08b223fe09a5640472eec487ff42e4df6bf726e8aba9de40f443a1fabea3334") + set(onnxruntime_HASH "SHA256=656e41fdfa64f293b634be679755fd06478f6504a6916df7394e01a439527a69") elseif(CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo) - set(onnxruntime_HASH "SHA256=215c68d4cf07fab47434059544f4b3e1885bb68149fc7ce5b78a9feb08cf6baa") + set(onnxruntime_HASH "SHA256=ca36268b847d05b309ed628e18d96fa6a2a45e9444f8d8ca2a33f863c7aacc6a") elseif(CMAKE_BUILD_TYPE STREQUAL MinSizeRel) - set(onnxruntime_HASH "SHA256=af6ff6f6a7ca6fb9f037bdd1cbd9b973921d069f7fce69833627ce04674bf579") + set(onnxruntime_HASH "SHA256=e12b897f62615a0d62800899891d6fb9b72a7e51b6286eb001130eadb96312fd") else() message(FATAL_ERROR "This file is for building a debug version on Windows x86. Given ${CMAKE_BUILD_TYPE}") endif() @@ -32,10 +32,10 @@ endif() # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-win-x86-static_lib-${CMAKE_BUILD_TYPE}-1.17.1.tar.bz2 - ${CMAKE_SOURCE_DIR}/onnxruntime-win-x86-static_lib-${CMAKE_BUILD_TYPE}-1.17.1.tar.bz2 - ${CMAKE_BINARY_DIR}/onnxruntime-win-x86-static_lib-${CMAKE_BUILD_TYPE}-1.17.1.tar.bz2 - /tmp/onnxruntime-win-x86-static_lib-${CMAKE_BUILD_TYPE}-1.17.1.tar.bz2 + $ENV{HOME}/Downloads/onnxruntime-win-x86-static_lib-${CMAKE_BUILD_TYPE}-1.17.3.tar.bz2 + ${CMAKE_SOURCE_DIR}/onnxruntime-win-x86-static_lib-${CMAKE_BUILD_TYPE}-1.17.3.tar.bz2 + ${CMAKE_BINARY_DIR}/onnxruntime-win-x86-static_lib-${CMAKE_BUILD_TYPE}-1.17.3.tar.bz2 + /tmp/onnxruntime-win-x86-static_lib-${CMAKE_BUILD_TYPE}-1.17.3.tar.bz2 ) foreach(f IN LISTS possible_file_locations) diff --git a/cmake/onnxruntime-win-x86-static.cmake b/cmake/onnxruntime-win-x86-static.cmake index 7e291a616..a4af0d435 100644 --- a/cmake/onnxruntime-win-x86-static.cmake +++ b/cmake/onnxruntime-win-x86-static.cmake @@ -19,18 +19,18 @@ if(NOT CMAKE_BUILD_TYPE STREQUAL Release) message(FATAL_ERROR "This file is for building a release version on Windows x86") endif() -set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-win-x86-static_lib-1.17.1.tar.bz2") -set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-win-x86-static_lib-1.17.1.tar.bz2") -set(onnxruntime_HASH "SHA256=52375d3fabc7b437c955a664bfeb9cb7a6391f5219c4b7d3b87ff690416d4b9e") +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-win-x86-static_lib-1.17.3.tar.bz2") +set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.3/onnxruntime-win-x86-static_lib-1.17.3.tar.bz2") +set(onnxruntime_HASH "SHA256=173d7d0bf5f7cc78b22daa420a50ff90e79ff10bd410ed514be7be3f6e46aed8") # If you don't have access to the Internet, # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-win-x86-static_lib-1.17.1.tar.bz2 - ${CMAKE_SOURCE_DIR}/onnxruntime-win-x86-static_lib-1.17.1.tar.bz2 - ${CMAKE_BINARY_DIR}/onnxruntime-win-x86-static_lib-1.17.1.tar.bz2 - /tmp/onnxruntime-win-x86-static_lib-1.17.1.tar.bz2 + $ENV{HOME}/Downloads/onnxruntime-win-x86-static_lib-1.17.3.tar.bz2 + ${CMAKE_SOURCE_DIR}/onnxruntime-win-x86-static_lib-1.17.3.tar.bz2 + ${CMAKE_BINARY_DIR}/onnxruntime-win-x86-static_lib-1.17.3.tar.bz2 + /tmp/onnxruntime-win-x86-static_lib-1.17.3.tar.bz2 ) foreach(f IN LISTS possible_file_locations) diff --git a/cmake/onnxruntime-win-x86.cmake b/cmake/onnxruntime-win-x86.cmake index 99ed71653..3cf81b731 100644 --- a/cmake/onnxruntime-win-x86.cmake +++ b/cmake/onnxruntime-win-x86.cmake @@ -15,18 +15,18 @@ if(NOT BUILD_SHARED_LIBS) message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") endif() -set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-win-x86-1.17.1.zip") -set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-win-x86-1.17.1.zip") -set(onnxruntime_HASH "SHA256=9404130825474bd36b2538ed925d6b5f2cf1fb6a443f3e125054ae3470019291") +set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.17.3/onnxruntime-win-x86-1.17.3.zip") +set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.3/onnxruntime-win-x86-1.17.3.zip") +set(onnxruntime_HASH "SHA256=0a2229006762acc32cb33c2299659b70b65fe090f98371ad03f6aae5735b48ca") # If you don't have access to the Internet, # please download onnxruntime to one of the following locations. # You can add more if you want. set(possible_file_locations - $ENV{HOME}/Downloads/onnxruntime-win-x86-1.17.1.zip - ${CMAKE_SOURCE_DIR}/onnxruntime-win-x86-1.17.1.zip - ${CMAKE_BINARY_DIR}/onnxruntime-win-x86-1.17.1.zip - /tmp/onnxruntime-win-x86-1.17.1.zip + $ENV{HOME}/Downloads/onnxruntime-win-x86-1.17.3.zip + ${CMAKE_SOURCE_DIR}/onnxruntime-win-x86-1.17.3.zip + ${CMAKE_BINARY_DIR}/onnxruntime-win-x86-1.17.3.zip + /tmp/onnxruntime-win-x86-1.17.3.zip ) foreach(f IN LISTS possible_file_locations) From 6e50b14bb210ed4fdc916ba4e25ab10a68e9ed14 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Thu, 18 Apr 2024 18:18:28 +0800 Subject: [PATCH 2/3] fix android build scripts for onnxruntime 1.17.3 --- build-android-arm64-v8a.sh | 2 +- build-android-armv7-eabi.sh | 2 +- build-android-x86-64.sh | 2 +- build-android-x86.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build-android-arm64-v8a.sh b/build-android-arm64-v8a.sh index f2726659d..1b2221017 100755 --- a/build-android-arm64-v8a.sh +++ b/build-android-arm64-v8a.sh @@ -42,7 +42,7 @@ fi echo "ANDROID_NDK: $ANDROID_NDK" sleep 1 -onnxruntime_version=1.17.1 +onnxruntime_version=1.17.3 if [ ! -f $onnxruntime_version/jni/arm64-v8a/libonnxruntime.so ]; then mkdir -p $onnxruntime_version diff --git a/build-android-armv7-eabi.sh b/build-android-armv7-eabi.sh index 32572b5ec..3a212b879 100755 --- a/build-android-armv7-eabi.sh +++ b/build-android-armv7-eabi.sh @@ -43,7 +43,7 @@ fi echo "ANDROID_NDK: $ANDROID_NDK" sleep 1 -onnxruntime_version=1.17.1 +onnxruntime_version=1.17.3 if [ ! -f $onnxruntime_version/jni/armeabi-v7a/libonnxruntime.so ]; then mkdir -p $onnxruntime_version diff --git a/build-android-x86-64.sh b/build-android-x86-64.sh index 84071ced2..acdd9f862 100755 --- a/build-android-x86-64.sh +++ b/build-android-x86-64.sh @@ -43,7 +43,7 @@ fi echo "ANDROID_NDK: $ANDROID_NDK" sleep 1 -onnxruntime_version=1.17.1 +onnxruntime_version=1.17.3 if [ ! -f $onnxruntime_version/jni/x86_64/libonnxruntime.so ]; then mkdir -p $onnxruntime_version diff --git a/build-android-x86.sh b/build-android-x86.sh index 968e81239..0e500ccb3 100755 --- a/build-android-x86.sh +++ b/build-android-x86.sh @@ -43,7 +43,7 @@ fi echo "ANDROID_NDK: $ANDROID_NDK" sleep 1 -onnxruntime_version=1.17.1 +onnxruntime_version=1.17.3 if [ ! -f $onnxruntime_version/jni/x86/libonnxruntime.so ]; then mkdir -p $onnxruntime_version From 1f05934d9095443b5310aaba66706c2da17c2f88 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Thu, 18 Apr 2024 18:23:59 +0800 Subject: [PATCH 3/3] fix ios build scripts for onnxruntime 1.17.3 --- build-ios-no-tts.sh | 2 +- build-ios.sh | 2 +- ios-swift/SherpaOnnx/SherpaOnnx.xcodeproj/project.pbxproj | 2 +- .../SherpaOnnx2Pass/SherpaOnnx2Pass.xcodeproj/project.pbxproj | 2 +- .../SherpaOnnxLangID.xcodeproj/project.pbxproj | 2 +- .../SherpaOnnxSubtitle.xcodeproj/project.pbxproj | 2 +- .../SherpaOnnxTts/SherpaOnnxTts.xcodeproj/project.pbxproj | 2 +- scripts/dotnet/generate.py | 4 ++-- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/build-ios-no-tts.sh b/build-ios-no-tts.sh index f9cd626ed..9a04b4d5d 100755 --- a/build-ios-no-tts.sh +++ b/build-ios-no-tts.sh @@ -5,7 +5,7 @@ set -e dir=build-ios-no-tts mkdir -p $dir cd $dir -onnxruntime_version=1.17.1 +onnxruntime_version=1.17.3 onnxruntime_dir=ios-onnxruntime/$onnxruntime_version if [ ! -f $onnxruntime_dir/onnxruntime.xcframework/ios-arm64/onnxruntime.a ]; then diff --git a/build-ios.sh b/build-ios.sh index ac81b4fb1..3a6f60873 100755 --- a/build-ios.sh +++ b/build-ios.sh @@ -5,7 +5,7 @@ set -e dir=build-ios mkdir -p $dir cd $dir -onnxruntime_version=1.17.1 +onnxruntime_version=1.17.3 onnxruntime_dir=ios-onnxruntime/$onnxruntime_version SHERPA_ONNX_GITHUB=github.com diff --git a/ios-swift/SherpaOnnx/SherpaOnnx.xcodeproj/project.pbxproj b/ios-swift/SherpaOnnx/SherpaOnnx.xcodeproj/project.pbxproj index 224227e8d..9a512c1d1 100644 --- a/ios-swift/SherpaOnnx/SherpaOnnx.xcodeproj/project.pbxproj +++ b/ios-swift/SherpaOnnx/SherpaOnnx.xcodeproj/project.pbxproj @@ -57,7 +57,7 @@ C984A82729AA196100D74C52 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; C984A82929AA19AC00D74C52 /* Model.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Model.swift; sourceTree = ""; }; C984A83B29AA430B00D74C52 /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - C9AC22162BB50165008B65E2 /* onnxruntime.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = onnxruntime.xcframework; path = "../../build-ios/ios-onnxruntime/1.17.1/onnxruntime.xcframework"; sourceTree = ""; }; + C9AC22162BB50165008B65E2 /* onnxruntime.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = onnxruntime.xcframework; path = "../../build-ios/ios-onnxruntime/1.17.3/onnxruntime.xcframework"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ diff --git a/ios-swiftui/SherpaOnnx2Pass/SherpaOnnx2Pass.xcodeproj/project.pbxproj b/ios-swiftui/SherpaOnnx2Pass/SherpaOnnx2Pass.xcodeproj/project.pbxproj index 84082e889..ab8ed4ae6 100644 --- a/ios-swiftui/SherpaOnnx2Pass/SherpaOnnx2Pass.xcodeproj/project.pbxproj +++ b/ios-swiftui/SherpaOnnx2Pass/SherpaOnnx2Pass.xcodeproj/project.pbxproj @@ -30,7 +30,7 @@ C9A2588D2AAF039D00E555CA /* Extension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Extension.swift; sourceTree = ""; }; C9A258922AAF057E00E555CA /* SherpaOnnx.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SherpaOnnx.swift; path = "../../../swift-api-examples/SherpaOnnx.swift"; sourceTree = ""; }; C9A258952AAF05D100E555CA /* sherpa-onnx.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = "sherpa-onnx.xcframework"; path = "../../build-ios/sherpa-onnx.xcframework"; sourceTree = ""; }; - C9A258972AAF05E400E555CA /* onnxruntime.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = onnxruntime.xcframework; path = "../../build-ios/ios-onnxruntime/1.17.1/onnxruntime.xcframework"; sourceTree = ""; }; + C9A258972AAF05E400E555CA /* onnxruntime.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = onnxruntime.xcframework; path = "../../build-ios/ios-onnxruntime/1.17.3/onnxruntime.xcframework"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ diff --git a/ios-swiftui/SherpaOnnxLangID/SherpaOnnxLangID.xcodeproj/project.pbxproj b/ios-swiftui/SherpaOnnxLangID/SherpaOnnxLangID.xcodeproj/project.pbxproj index 462741c81..2ccfe1d10 100644 --- a/ios-swiftui/SherpaOnnxLangID/SherpaOnnxLangID.xcodeproj/project.pbxproj +++ b/ios-swiftui/SherpaOnnxLangID/SherpaOnnxLangID.xcodeproj/project.pbxproj @@ -74,7 +74,7 @@ DEBB2DA22BBAAAE700864EF5 /* Model.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Model.swift; path = ../../SherpaOnnx/SherpaOnnx/Model.swift; sourceTree = ""; }; DEBB2DA42BBAAAFD00864EF5 /* ViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewModel.swift; sourceTree = ""; }; DEBB2DA72BBAAC4D00864EF5 /* sherpa-onnx.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = "sherpa-onnx.xcframework"; path = "../../build-ios/sherpa-onnx.xcframework"; sourceTree = ""; }; - DEBB2DAB2BBAAC6200864EF5 /* onnxruntime.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = onnxruntime.xcframework; path = "../../build-ios/ios-onnxruntime/1.17.1/onnxruntime.xcframework"; sourceTree = ""; }; + DEBB2DAB2BBAAC6200864EF5 /* onnxruntime.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = onnxruntime.xcframework; path = "../../build-ios/ios-onnxruntime/1.17.3/onnxruntime.xcframework"; sourceTree = ""; }; DEBB2DB12BBAAD0000864EF5 /* SherpaOnnx.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SherpaOnnx.swift; path = "../../../swift-api-examples/SherpaOnnx.swift"; sourceTree = ""; }; DEBB2DB32BBAB02E00864EF5 /* tiny-decoder.int8.onnx */ = {isa = PBXFileReference; lastKnownFileType = file; path = "tiny-decoder.int8.onnx"; sourceTree = ""; }; DEBB2DB52BBAB03400864EF5 /* tiny-encoder.int8.onnx */ = {isa = PBXFileReference; lastKnownFileType = file; path = "tiny-encoder.int8.onnx"; sourceTree = ""; }; diff --git a/ios-swiftui/SherpaOnnxSubtitle/SherpaOnnxSubtitle.xcodeproj/project.pbxproj b/ios-swiftui/SherpaOnnxSubtitle/SherpaOnnxSubtitle.xcodeproj/project.pbxproj index 6e6908ff7..b66b800a3 100644 --- a/ios-swiftui/SherpaOnnxSubtitle/SherpaOnnxSubtitle.xcodeproj/project.pbxproj +++ b/ios-swiftui/SherpaOnnxSubtitle/SherpaOnnxSubtitle.xcodeproj/project.pbxproj @@ -36,7 +36,7 @@ DE081AAE2ABFF35400E8CD63 /* UTType.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UTType.swift; sourceTree = ""; }; DE081AB02ABFFEEE00E8CD63 /* Document.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Document.swift; sourceTree = ""; }; DE081AB22ABFFF2600E8CD63 /* Errors.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Errors.swift; sourceTree = ""; }; - DE8C85A52ABF23E100F667E3 /* onnxruntime.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = onnxruntime.xcframework; path = "../../build-ios/ios-onnxruntime/1.17.1/onnxruntime.xcframework"; sourceTree = ""; }; + DE8C85A52ABF23E100F667E3 /* onnxruntime.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = onnxruntime.xcframework; path = "../../build-ios/ios-onnxruntime/1.17.3/onnxruntime.xcframework"; sourceTree = ""; }; DE8C85A92ABF23FA00F667E3 /* sherpa-onnx.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = "sherpa-onnx.xcframework"; path = "../../build-ios/sherpa-onnx.xcframework"; sourceTree = ""; }; DE8C85B12ABF257200F667E3 /* SpeechSegment.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SpeechSegment.swift; sourceTree = ""; }; DEA22DEE2AC1796C00549373 /* tiny.en-encoder.int8.onnx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "tiny.en-encoder.int8.onnx"; sourceTree = ""; }; diff --git a/ios-swiftui/SherpaOnnxTts/SherpaOnnxTts.xcodeproj/project.pbxproj b/ios-swiftui/SherpaOnnxTts/SherpaOnnxTts.xcodeproj/project.pbxproj index e9ea2c213..3f003842a 100644 --- a/ios-swiftui/SherpaOnnxTts/SherpaOnnxTts.xcodeproj/project.pbxproj +++ b/ios-swiftui/SherpaOnnxTts/SherpaOnnxTts.xcodeproj/project.pbxproj @@ -26,7 +26,7 @@ C9FE9FE42B0F33CD009F1003 /* ViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewModel.swift; sourceTree = ""; }; C9FE9FE62B0F3620009F1003 /* SherpaOnnx.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SherpaOnnx.swift; path = "../../../swift-api-examples/SherpaOnnx.swift"; sourceTree = ""; }; C9FE9FE92B0F3754009F1003 /* sherpa-onnx.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = "sherpa-onnx.xcframework"; path = "../../build-ios/sherpa-onnx.xcframework"; sourceTree = ""; }; - C9FE9FEB2B0F3785009F1003 /* onnxruntime.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = onnxruntime.xcframework; path = "../../build-ios/ios-onnxruntime/1.17.1/onnxruntime.xcframework"; sourceTree = ""; }; + C9FE9FEB2B0F3785009F1003 /* onnxruntime.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = onnxruntime.xcframework; path = "../../build-ios/ios-onnxruntime/1.17.3/onnxruntime.xcframework"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ diff --git a/scripts/dotnet/generate.py b/scripts/dotnet/generate.py index 5268211b2..082d994f1 100755 --- a/scripts/dotnet/generate.py +++ b/scripts/dotnet/generate.py @@ -36,7 +36,7 @@ def process_linux(s): "libespeak-ng.so", "libkaldi-decoder-core.so", "libkaldi-native-fbank-core.so", - "libonnxruntime.so.1.17.1", + "libonnxruntime.so.1.17.3", "libpiper_phonemize.so.1", "libsherpa-onnx-c-api.so", "libsherpa-onnx-core.so", @@ -65,7 +65,7 @@ def process_macos(s): "libespeak-ng.dylib", "libkaldi-decoder-core.dylib", "libkaldi-native-fbank-core.dylib", - "libonnxruntime.1.17.1.dylib", + "libonnxruntime.1.17.3.dylib", "libpiper_phonemize.1.dylib", "libsherpa-onnx-c-api.dylib", "libsherpa-onnx-core.dylib",