Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Support onnxruntime 1.17.3 #788

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build-android-arm64-v8a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-android-armv7-eabi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-android-x86-64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-android-x86.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-ios-no-tts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-aarch64-static.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-arm-static.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-arm.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-x86_64-gpu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-x86_64-static.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
16 changes: 8 additions & 8 deletions cmake/onnxruntime-linux-x86_64.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
14 changes: 7 additions & 7 deletions cmake/onnxruntime-osx-arm64-static.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
14 changes: 7 additions & 7 deletions cmake/onnxruntime-osx-arm64.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
14 changes: 7 additions & 7 deletions cmake/onnxruntime-osx-universal-static.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
14 changes: 7 additions & 7 deletions cmake/onnxruntime-osx-universal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
14 changes: 7 additions & 7 deletions cmake/onnxruntime-osx-x86_64-static.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading
Loading