Support onnxruntime 1.18.0 (#906)
This commit is contained in:
@@ -216,9 +216,6 @@ class BuildExtension(build_ext):
|
||||
shutil.rmtree(f"{install_dir}/share")
|
||||
shutil.rmtree(f"{install_dir}/lib/pkgconfig")
|
||||
|
||||
if is_linux():
|
||||
os.remove(f"{install_dir}/lib/libonnxruntime.so")
|
||||
|
||||
if is_macos():
|
||||
os.remove(f"{install_dir}/lib/libonnxruntime.dylib")
|
||||
|
||||
|
||||
@@ -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.18.0/onnxruntime-linux-aarch64-static_lib-1.18.0-glibc2_17.zip")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.18.0/onnxruntime-linux-aarch64-static_lib-1.18.0-glibc2_17.zip")
|
||||
set(onnxruntime_HASH "SHA256=82f5a17859261b16a42719afdf58ffb1a48c76f51d9463c89333ac335200fe39")
|
||||
|
||||
# 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.18.0-glibc2_17.zip
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-linux-aarch64-static_lib-1.18.0-glibc2_17.zip
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-linux-aarch64-static_lib-1.18.0-glibc2_17.zip
|
||||
/tmp/onnxruntime-linux-aarch64-static_lib-1.18.0-glibc2_17.zip
|
||||
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-static_lib-1.18.0-glibc2_17.zip
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -14,19 +14,20 @@ 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-aarch64-glibc2_17-Release-1.17.1.zip")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.17.1/onnxruntime-linux-aarch64-glibc2_17-Release-1.17.1.zip")
|
||||
set(onnxruntime_HASH "SHA256=2ed01996da79d11ea486f738010bd411096ab91e744306fbd30d09f37e6d43a0")
|
||||
set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.18.0/onnxruntime-linux-aarch64-glibc2_17-Release-1.18.0.zip")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.18.0/onnxruntime-linux-aarch64-glibc2_17-Release-1.18.0.zip")
|
||||
# set(onnxruntime_HASH "SHA256=9b288e867f09521d3a9f17b9c0979ac92bc1817dc083dc82d54aa027c0dac781")
|
||||
set(onnxruntime_HASH) # TODO(fangjun): Update it
|
||||
|
||||
# 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-glibc2_17-Release-1.17.1.zip
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-linux-aarch64-glibc2_17-Release-1.17.1.zip
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-linux-aarch64-glibc2_17-Release-1.17.1.zip
|
||||
/tmp/onnxruntime-linux-aarch64-glibc2_17-Release-1.17.1.zip
|
||||
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-glibc2_17-Release-1.17.1.zip
|
||||
$ENV{HOME}/Downloads/onnxruntime-linux-aarch64-glibc2_17-Release-1.18.0.zip
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-linux-aarch64-glibc2_17-Release-1.18.0.zip
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-linux-aarch64-glibc2_17-Release-1.18.0.zip
|
||||
/tmp/onnxruntime-linux-aarch64-glibc2_17-Release-1.18.0.zip
|
||||
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-glibc2_17-Release-1.18.0.zip
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -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.18.0/onnxruntime-linux-arm-static_lib-1.18.0.zip")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.18.0/onnxruntime-linux-arm-static_lib-1.18.0.zip")
|
||||
set(onnxruntime_HASH "SHA256=ba4590a386bc4aae3e03b00ccc1be42edd582fd7ecf5583614e1e0c2e7424652")
|
||||
|
||||
# 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.18.0.zip
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-linux-arm-static_lib-1.18.0.zip
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-linux-arm-static_lib-1.18.0.zip
|
||||
/tmp/onnxruntime-linux-arm-static_lib-1.18.0.zip
|
||||
/star-fj/fangjun/download/github/onnxruntime-linux-arm-static_lib-1.18.0.zip
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -14,19 +14,20 @@ 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.18.0/onnxruntime-linux-arm-1.18.0.zip")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.18.0/onnxruntime-linux-arm-1.18.0.zip")
|
||||
# set(onnxruntime_HASH "SHA256=f713a5e09bff5ff1438c26d26cf283d305e37af1fbd59e9190b17cd7f8d2b1c6")
|
||||
set(onnxruntime_HASH) # TODO(fangjun): Update it
|
||||
|
||||
# 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.18.0.zip
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-linux-arm-1.18.0.zip
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-linux-arm-1.18.0.zip
|
||||
/tmp/onnxruntime-linux-arm-1.18.0.zip
|
||||
/star-fj/fangjun/download/github/onnxruntime-linux-arm-1.18.0.zip
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -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.18.0/onnxruntime-linux-x64-gpu-1.18.0.tgz")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.18.0/onnxruntime-linux-x64-gpu-1.18.0.tgz")
|
||||
set(onnxruntime_HASH "SHA256=e49980108c0b9dd718c14fa2e6ba3cd90b9ff8e9bde8ebac0a2f1aacdc0603ca")
|
||||
|
||||
# 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.18.0.tgz
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-gpu-1.18.0.tgz
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-gpu-1.18.0.tgz
|
||||
/tmp/onnxruntime-linux-x64-gpu-1.18.0.tgz
|
||||
/star-fj/fangjun/download/github/onnxruntime-linux-x64-gpu-1.18.0.tgz
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -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.18.0/onnxruntime-linux-x64-static_lib-1.18.0-glibc2_17.zip")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.18.0/onnxruntime-linux-x64-static_lib-1.18.0-glibc2_17.zip")
|
||||
set(onnxruntime_HASH "SHA256=4112757cb49dd53853748813cb2b5d164c8bec465fff852be247d450b95b0737")
|
||||
|
||||
# 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.18.0-glibc2_17.zip
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-static_lib-1.18.0-glibc2_17.zip
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-static_lib-1.18.0-glibc2_17.zip
|
||||
/tmp/onnxruntime-linux-x64-static_lib-1.18.0-glibc2_17.zip
|
||||
/star-fj/fangjun/download/github/onnxruntime-linux-x64-static_lib-1.18.0-glibc2_17.zip
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -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.18.0/onnxruntime-linux-x64-glibc2_17-Release-1.18.0.zip")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.18.0/onnxruntime-linux-x64-glibc2_17-Release-1.18.0.zip")
|
||||
set(onnxruntime_HASH "SHA256=96137d33c88a036d5afe64dee5f530a1b78705d41857d8aac88a3c2b53a6a5ac")
|
||||
|
||||
# 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.18.0.zip
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-linux-x64-glibc2_17-Release-1.18.0.zip
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-linux-x64-glibc2_17-Release-1.18.0.zip
|
||||
/tmp/onnxruntime-linux-x64-glibc2_17-Release-1.18.0.zip
|
||||
/star-fj/fangjun/download/github/onnxruntime-linux-x64-glibc2_17-Release-1.18.0.zip
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -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.18.0/onnxruntime-osx-arm64-static_lib-1.18.0.zip")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.18.0/onnxruntime-osx-arm64-static_lib-1.18.0.zip")
|
||||
set(onnxruntime_HASH "SHA256=2faea156041f0658ef60423f5b0a34ba5d9127297b429c73ce98225e66f610bf")
|
||||
|
||||
# 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.18.0.zip
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-osx-arm64-static_lib-1.18.0.zip
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-osx-arm64-static_lib-1.18.0.zip
|
||||
/tmp/onnxruntime-osx-arm64-static_lib-1.18.0.zip
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -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.18.0/onnxruntime-osx-arm64-1.18.0.tgz")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.18.0/onnxruntime-osx-arm64-1.18.0.tgz")
|
||||
set(onnxruntime_HASH "SHA256=c5ff520d2913e3360670979ca4fe43717fc3aa0c0c367a75fbb6f2f15c0cb48d")
|
||||
|
||||
# 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.18.0.tgz
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-osx-arm64-1.18.0.tgz
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-osx-arm64-1.18.0.tgz
|
||||
/tmp/onnxruntime-osx-arm64-1.18.0.tgz
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -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.18.0/onnxruntime-osx-universal2-static_lib-1.18.0.zip")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.18.0/onnxruntime-osx-universal2-static_lib-1.18.0.zip")
|
||||
set(onnxruntime_HASH "SHA256=a36c250ef90b15467fc126644825b2c4b7983f1f7c718051563f990606ab28f5")
|
||||
|
||||
# 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.18.0.zip
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-osx-universal2-static_lib-1.18.0.zip
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-osx-universal2-static_lib-1.18.0.zip
|
||||
/tmp/onnxruntime-osx-universal2-static_lib-1.18.0.zip
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -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.18.0/onnxruntime-osx-universal2-1.18.0.tgz")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.18.0/onnxruntime-osx-universal2-1.18.0.tgz")
|
||||
set(onnxruntime_HASH "SHA256=4df8e1fec0190ee504a68469591e8715c04bfe9deba2bb7e8985c07360c1c0f8")
|
||||
|
||||
# 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.18.0.tgz
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-osx-universal2-1.18.0.tgz
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-osx-universal2-1.18.0.tgz
|
||||
/tmp/onnxruntime-osx-universal2-1.18.0.tgz
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -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.18.0/onnxruntime-osx-x86_64-static_lib-1.18.0.zip")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.18.0/onnxruntime-osx-x86_64-static_lib-1.18.0.zip")
|
||||
set(onnxruntime_HASH "SHA256=a7ccc5f7acce2554a43174ff7c2efc5fa71d7dc0a5a91208096120cc775a9575")
|
||||
|
||||
# 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.18.0.zip
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-osx-x86_64-static_lib-1.18.0.zip
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-osx-x86_64-static_lib-1.18.0.zip
|
||||
/tmp/onnxruntime-osx-x86_64-static_lib-1.18.0.zip
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -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.18.0/onnxruntime-osx-x86_64-1.18.0.tgz")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.18.0/onnxruntime-osx-x86_64-1.18.0.tgz")
|
||||
set(onnxruntime_HASH "SHA256=3af96893675b295e5e0eb886f470de585089f92f9950158d042fbc02b44ed101")
|
||||
|
||||
# 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.18.0.tgz
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-osx-x86_64-1.18.0.tgz
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-osx-x86_64-1.18.0.tgz
|
||||
/tmp/onnxruntime-osx-x86_64-1.18.0.tgz
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -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.18.0/onnxruntime-wasm-static_lib-simd-1.18.0.zip")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.18.0/onnxruntime-wasm-static_lib-simd-1.18.0.zip")
|
||||
set(onnxruntime_HASH "SHA256=590e8c8b292304e9c4ed34d980ce3fe028c76f2594e7f2d88cda80248757c6fb")
|
||||
|
||||
# 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.18.0.zip
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-wasm-static_lib-simd-1.18.0.zip
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-wasm-static_lib-simd-1.18.0.zip
|
||||
/tmp/onnxruntime-wasm-static_lib-simd-1.18.0.zip
|
||||
/star-fj/fangjun/download/github/onnxruntime-wasm-static_lib-simd-1.18.0.zip
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -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-arm64-1.17.1.zip")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-win-arm64-1.17.1.zip")
|
||||
set(onnxruntime_HASH "SHA256=47782cebcab0fd7a1f0a3f0676b088c1bc0f4fbf21666f6fe57570dc362fa5a8")
|
||||
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.18.0/onnxruntime-win-arm64-1.18.0.zip")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.18.0/onnxruntime-win-arm64-1.18.0.zip")
|
||||
set(onnxruntime_HASH "SHA256=cd8859437d71b43beb942e0f2515d27d20aa8f753b8e9c2efa01476eb1a57023")
|
||||
|
||||
# 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-arm64-1.17.1.zip
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-win-arm64-1.17.1.zip
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-win-arm64-1.17.1.zip
|
||||
/tmp/onnxruntime-win-arm64-1.17.1.zip
|
||||
$ENV{HOME}/Downloads/onnxruntime-win-arm64-1.18.0.zip
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-win-arm64-1.18.0.zip
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-win-arm64-1.18.0.zip
|
||||
/tmp/onnxruntime-win-arm64-1.18.0.zip
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -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.18.0/onnxruntime-win-x64-gpu-1.18.0.zip")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.18.0/onnxruntime-win-x64-gpu-1.18.0.zip")
|
||||
set(onnxruntime_HASH "SHA256=ec3b668fdc818b20dbabf083b488f979dce4a61c8b922af9e79e81277ac0e322")
|
||||
|
||||
# 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.18.0.zip
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-win-x64-gpu-1.18.0.zip
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-win-x64-gpu-1.18.0.zip
|
||||
/tmp/onnxruntime-win-x64-gpu-1.18.0.zip
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -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.18.0/onnxruntime-win-x64-static_lib-${CMAKE_BUILD_TYPE}-1.18.0.tar.bz2")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.18.0/onnxruntime-win-x64-static_lib-${CMAKE_BUILD_TYPE}-1.18.0.tar.bz2")
|
||||
if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||
set(onnxruntime_HASH "SHA256=ecc68d914541c3b6ebc36148af63fe2a6af0f4f955b35199d612698d23169fa5")
|
||||
set(onnxruntime_HASH "SHA256=1fbb751fcf5360466aeb4fdf0d919e891d3c7fcaf9cdda26bc82c5ff9d07b15c")
|
||||
elseif(CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo)
|
||||
set(onnxruntime_HASH "SHA256=7cbe58273e55d033568f84fb16d220cea4e25ec29eb7db405c4ac7b6e41f2dfa")
|
||||
set(onnxruntime_HASH "SHA256=fb59483e6e384ad6e48fe68f04716a9adef9a0106bcf2be74821a49c785be39e")
|
||||
elseif(CMAKE_BUILD_TYPE STREQUAL MinSizeRel)
|
||||
set(onnxruntime_HASH "SHA256=9eb3adf0f6ac3b0e9f118e0d9e686f50fc651394e0b0cc569275af6e3ffed0e0")
|
||||
set(onnxruntime_HASH "SHA256=4f2c818b1a31006d783aae929a2ad649af94797eea4dad61ab5044731daab2c9")
|
||||
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.18.0.tar.bz2
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-win-x64-static_lib-${CMAKE_BUILD_TYPE}-1.18.0.tar.bz2
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-win-x64-static_lib-${CMAKE_BUILD_TYPE}-1.18.0.tar.bz2
|
||||
/tmp/onnxruntime-win-x64-static_lib-${CMAKE_BUILD_TYPE}-1.18.0.tar.bz2
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -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.18.0/onnxruntime-win-x64-static_lib-1.18.0.tar.bz2")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/github.com/csukuangfj/onnxruntime-libs/releases/download/v1.18.0/onnxruntime-win-x64-static_lib-1.18.0.tar.bz2")
|
||||
set(onnxruntime_HASH "SHA256=dcbe48216fe0e5356ddd14e2f48fa1567bbb22792fe156c6252afb044178b2de")
|
||||
|
||||
# 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.18.0.tar.bz2
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-win-x64-static_lib-1.18.0.tar.bz2
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-win-x64-static_lib-1.18.0.tar.bz2
|
||||
/tmp/onnxruntime-win-x64-static_lib-1.18.0.tar.bz2
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -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.18.0/onnxruntime-win-x64-1.18.0.zip")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.18.0/onnxruntime-win-x64-1.18.0.zip")
|
||||
set(onnxruntime_HASH "SHA256=a91af21ca8f9bdfa5a1aac3fdd0591384b4e2866d41612925f1758d5522829e7")
|
||||
|
||||
# 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.18.0.zip
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-win-x64-1.18.0.zip
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-win-x64-1.18.0.zip
|
||||
/tmp/onnxruntime-win-x64-1.18.0.zip
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -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.18.0/onnxruntime-win-x86-static_lib-${CMAKE_BUILD_TYPE}-1.18.0.tar.bz2")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.18.0/onnxruntime-win-x86-static_lib-${CMAKE_BUILD_TYPE}-1.18.0.tar.bz2")
|
||||
if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||
set(onnxruntime_HASH "SHA256=b08b223fe09a5640472eec487ff42e4df6bf726e8aba9de40f443a1fabea3334")
|
||||
set(onnxruntime_HASH "SHA256=0ccb0820a14e54e5cdbb5125647c8c6f72c8bb1ed2324945b1db2a9f35030103")
|
||||
elseif(CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo)
|
||||
set(onnxruntime_HASH "SHA256=215c68d4cf07fab47434059544f4b3e1885bb68149fc7ce5b78a9feb08cf6baa")
|
||||
set(onnxruntime_HASH "SHA256=9740689365f611b48d25bb0a7521848a2ea4a5365c37e85766c6f7925e0ba887")
|
||||
elseif(CMAKE_BUILD_TYPE STREQUAL MinSizeRel)
|
||||
set(onnxruntime_HASH "SHA256=af6ff6f6a7ca6fb9f037bdd1cbd9b973921d069f7fce69833627ce04674bf579")
|
||||
set(onnxruntime_HASH "SHA256=4b35849c452a717e9e4b88ea267beba92f4806cc29e7773dda07fa7a59897e12")
|
||||
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.18.0.tar.bz2
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-win-x86-static_lib-${CMAKE_BUILD_TYPE}-1.18.0.tar.bz2
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-win-x86-static_lib-${CMAKE_BUILD_TYPE}-1.18.0.tar.bz2
|
||||
/tmp/onnxruntime-win-x86-static_lib-${CMAKE_BUILD_TYPE}-1.18.0.tar.bz2
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -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.18.0/onnxruntime-win-x86-static_lib-1.18.0.tar.bz2")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/csukuangfj/onnxruntime-libs/releases/download/v1.18.0/onnxruntime-win-x86-static_lib-1.18.0.tar.bz2")
|
||||
set(onnxruntime_HASH "SHA256=895c9e284a0365732467fe19b018e3949c0755148fc386cf6d8f8e28f1a7ed80")
|
||||
|
||||
# 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.18.0.tar.bz2
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-win-x86-static_lib-1.18.0.tar.bz2
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-win-x86-static_lib-1.18.0.tar.bz2
|
||||
/tmp/onnxruntime-win-x86-static_lib-1.18.0.tar.bz2
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
@@ -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.18.0/onnxruntime-win-x86-1.18.0.zip")
|
||||
set(onnxruntime_URL2 "https://hub.nuaa.cf/microsoft/onnxruntime/releases/download/v1.18.0/onnxruntime-win-x86-1.18.0.zip")
|
||||
set(onnxruntime_HASH "SHA256=b71a6ea9f7fee248ce79dadab45cf522a44a74270c85f8e4ff1ca6ab6bcbae42")
|
||||
|
||||
# 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.18.0.zip
|
||||
${CMAKE_SOURCE_DIR}/onnxruntime-win-x86-1.18.0.zip
|
||||
${CMAKE_BINARY_DIR}/onnxruntime-win-x86-1.18.0.zip
|
||||
/tmp/onnxruntime-win-x86-1.18.0.zip
|
||||
)
|
||||
|
||||
foreach(f IN LISTS possible_file_locations)
|
||||
|
||||
Reference in New Issue
Block a user