Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Fangjun Kuang
2023-11-01 16:23:31 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2023-11-01 16:23:31 +0800
Commit
cca744e34edd5999e884a3e107117dc020fcf441
cca744e3
1 parent
27db015c
Update to onnxruntime v1.16.1 (#406)
隐藏空白字符变更
内嵌
并排对比
正在显示
26 个修改的文件
包含
143 行增加
和
141 行删除
CMakeLists.txt
build-android-arm64-v8a.sh
build-android-armv7-eabi.sh
build-android-x86-64.sh
build-android-x86.sh
build-ios.sh
c-api-examples/Makefile
cmake/onnxruntime-linux-aarch64-static.cmake
cmake/onnxruntime-linux-aarch64.cmake
cmake/onnxruntime-linux-arm-static.cmake
cmake/onnxruntime-linux-arm.cmake
cmake/onnxruntime-linux-x86_64-gpu.cmake
cmake/onnxruntime-linux-x86_64-static.cmake
cmake/onnxruntime-linux-x86_64.cmake
cmake/onnxruntime-osx-arm64-static.cmake
cmake/onnxruntime-osx-arm64.cmake
cmake/onnxruntime-osx-universal-static.cmake
cmake/onnxruntime-osx-universal.cmake
cmake/onnxruntime-osx-x86_64-static.cmake
cmake/onnxruntime-osx-x86_64.cmake
cmake/onnxruntime-win-x64-gpu.cmake
cmake/onnxruntime-win-x64-static.cmake
cmake/onnxruntime-win-x64.cmake
cmake/onnxruntime-win-x86-static.cmake
cmake/onnxruntime-win-x86.cmake
scripts/dotnet/generate.py
CMakeLists.txt
查看文件 @
cca744e
...
...
@@ -184,7 +184,7 @@ message(STATUS "CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}")
if
(
NOT BUILD_SHARED_LIBS
)
if
(
APPLE
)
set
(
SHERPA_ONNX_PKG_CONFIG_EXTRA_LIBS
"-lc++"
)
set
(
SHERPA_ONNX_PKG_CONFIG_EXTRA_LIBS
"-lc++
-framework Foundation
"
)
endif
()
if
(
UNIX AND NOT APPLE
)
...
...
build-android-arm64-v8a.sh
查看文件 @
cca744e
...
...
@@ -42,7 +42,7 @@ fi
echo
"ANDROID_NDK:
$ANDROID_NDK
"
sleep 1
onnxruntime_version
=
v1.16.
0
onnxruntime_version
=
v1.16.
1
if
[
! -f ./android-onnxruntime-libs/
$onnxruntime_version
/jni/arm64-v8a/libonnxruntime.so
]
;
then
if
[
! -d android-onnxruntime-libs
]
;
then
...
...
build-android-armv7-eabi.sh
查看文件 @
cca744e
...
...
@@ -43,7 +43,7 @@ fi
echo
"ANDROID_NDK:
$ANDROID_NDK
"
sleep 1
onnxruntime_version
=
v1.16.
0
onnxruntime_version
=
v1.16.
1
if
[
! -f ./android-onnxruntime-libs/
$onnxruntime_version
/jni/armeabi-v7a/libonnxruntime.so
]
;
then
if
[
! -d android-onnxruntime-libs
]
;
then
...
...
build-android-x86-64.sh
查看文件 @
cca744e
...
...
@@ -43,7 +43,7 @@ fi
echo
"ANDROID_NDK:
$ANDROID_NDK
"
sleep 1
onnxruntime_version
=
v1.16.
0
onnxruntime_version
=
v1.16.
1
if
[
! -f ./android-onnxruntime-libs/
$onnxruntime_version
/jni/x86_64/libonnxruntime.so
]
;
then
if
[
! -d android-onnxruntime-libs
]
;
then
...
...
build-android-x86.sh
查看文件 @
cca744e
...
...
@@ -43,7 +43,7 @@ fi
echo
"ANDROID_NDK:
$ANDROID_NDK
"
sleep 1
onnxruntime_version
=
v1.16.
0
onnxruntime_version
=
v1.16.
1
if
[
! -f ./android-onnxruntime-libs/
$onnxruntime_version
/jni/x86/libonnxruntime.so
]
;
then
if
[
! -d android-onnxruntime-libs
]
;
then
...
...
build-ios.sh
查看文件 @
cca744e
...
...
@@ -5,7 +5,7 @@ set -e
dir
=
build-ios
mkdir -p
$dir
cd
$dir
onnxruntime_version
=
1.16.
0
onnxruntime_version
=
1.16.
1
if
[
! -f ios-onnxruntime/
$onnxruntime_version
/onnxruntime.xcframework/ios-arm64/onnxruntime.a
]
;
then
if
[
! -d ios-onnxruntime
]
;
then
...
...
c-api-examples/Makefile
查看文件 @
cca744e
...
...
@@ -5,6 +5,8 @@ CFLAGS := -I ../ -I ../build/_deps/cargs-src/include/
LDFLAGS
:=
-L ../build/lib
LDFLAGS
+=
-L ../build/_deps/onnxruntime-src/lib
LDFLAGS
+=
-lsherpa-onnx-c-api -lsherpa-onnx-core -lonnxruntime -lkaldi-native-fbank-core -lkaldi-decoder-core -lsherpa-onnx-kaldifst-core -lsherpa-onnx-fst -lcargs
LDFLAGS
+=
-framework Foundation
LDFLAGS
+=
-lc++
LDFLAGS
+=
-Wl,-rpath,
${
CUR_DIR
}
/../build/lib
LDFLAGS
+=
-Wl,-rpath,
${
CUR_DIR
}
/../build/_deps/onnxruntime-src/lib
...
...
cmake/onnxruntime-linux-aarch64-static.cmake
查看文件 @
cca744e
...
...
@@ -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.16.0/onnxruntime-linux-aarch64-static_lib-1.16.0.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-aarch64-static_lib-1.16.0.zip"
)
set
(
onnxruntime_HASH
"SHA256=ddcb4e67bcdff53eb72265a12420c71f73acc8610054e06259e9b98770136bd5"
)
set
(
onnxruntime_URL
"https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-linux-aarch64-static_lib-1.16.1.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-aarch64-static_lib-1.16.1.zip"
)
set
(
onnxruntime_HASH
"SHA256=9b25c41fc2158b345744984d154ca975c8a772c0eb90a0ccfbe2be147b438ae3"
)
# 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.16.0.zip
${
PROJECT_SOURCE_DIR
}
/onnxruntime-linux-aarch64-static_lib-1.16.0.zip
${
PROJECT_BINARY_DIR
}
/onnxruntime-linux-aarch64-static_lib-1.16.0.zip
/tmp/onnxruntime-linux-aarch64-static_lib-1.16.0.zip
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-static_lib-1.16.0.zip
$ENV{HOME}/Downloads/onnxruntime-linux-aarch64-static_lib-1.16.1.zip
${
PROJECT_SOURCE_DIR
}
/onnxruntime-linux-aarch64-static_lib-1.16.1.zip
${
PROJECT_BINARY_DIR
}
/onnxruntime-linux-aarch64-static_lib-1.16.1.zip
/tmp/onnxruntime-linux-aarch64-static_lib-1.16.1.zip
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-static_lib-1.16.1.zip
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
cmake/onnxruntime-linux-aarch64.cmake
查看文件 @
cca744e
...
...
@@ -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.16.0/onnxruntime-linux-aarch64-1.16.0.tgz"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-linux-aarch64-1.16.0.tgz"
)
set
(
onnxruntime_HASH
"SHA256=8b15781d974803203c09df7d52c84d8c9f1ac7d949a97f515e4d2f5dc978d8af"
)
set
(
onnxruntime_URL
"https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-linux-aarch64-1.16.1.tgz"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-aarch64-1.16.1.tgz"
)
set
(
onnxruntime_HASH
"SHA256=f10851b62eb44f9e811134737e7c6edd15733d2c1549cb6ce403808e9c047385"
)
# 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-1.16.0.tgz
${
PROJECT_SOURCE_DIR
}
/onnxruntime-linux-aarch64-1.16.0.tgz
${
PROJECT_BINARY_DIR
}
/onnxruntime-linux-aarch64-1.16.0.tgz
/tmp/onnxruntime-linux-aarch64-1.16.0.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-1.16.0.tgz
$ENV{HOME}/Downloads/onnxruntime-linux-aarch64-1.16.1.tgz
${
PROJECT_SOURCE_DIR
}
/onnxruntime-linux-aarch64-1.16.1.tgz
${
PROJECT_BINARY_DIR
}
/onnxruntime-linux-aarch64-1.16.1.tgz
/tmp/onnxruntime-linux-aarch64-1.16.1.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-aarch64-1.16.1.tgz
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
cmake/onnxruntime-linux-arm-static.cmake
查看文件 @
cca744e
...
...
@@ -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.16.0/onnxruntime-linux-arm-static_lib-1.16.0.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-arm-static_lib-1.16.0.zip"
)
set
(
onnxruntime_HASH
"SHA256=d2bf3d69a479ac786bf2f019e720218a74634b73cfda758ba50d0b1adef1c76a"
)
set
(
onnxruntime_URL
"https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-linux-arm-static_lib-1.16.1.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-arm-static_lib-1.16.1.zip"
)
set
(
onnxruntime_HASH
"SHA256=7f01a4b025a2ae3bececd2ea1bbef6bdc0b5df43395f6a799123b74fa6180356"
)
# 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.16.0.zip
${
PROJECT_SOURCE_DIR
}
/onnxruntime-linux-arm-static_lib-1.16.0.zip
${
PROJECT_BINARY_DIR
}
/onnxruntime-linux-arm-static_lib-1.16.0.zip
/tmp/onnxruntime-linux-arm-static_lib-1.16.0.zip
/star-fj/fangjun/download/github/onnxruntime-linux-arm-static_lib-1.16.0.zip
$ENV{HOME}/Downloads/onnxruntime-linux-arm-static_lib-1.16.1.zip
${
PROJECT_SOURCE_DIR
}
/onnxruntime-linux-arm-static_lib-1.16.1.zip
${
PROJECT_BINARY_DIR
}
/onnxruntime-linux-arm-static_lib-1.16.1.zip
/tmp/onnxruntime-linux-arm-static_lib-1.16.1.zip
/star-fj/fangjun/download/github/onnxruntime-linux-arm-static_lib-1.16.1.zip
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
cmake/onnxruntime-linux-arm.cmake
查看文件 @
cca744e
...
...
@@ -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.16.0/onnxruntime-linux-arm-1.16.0.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-arm-1.16.0.zip"
)
set
(
onnxruntime_HASH
"SHA256=0a63ea99fbba3ee399d6626c36752844ae93ae19bab30e4bf00d45cc8a13da02"
)
set
(
onnxruntime_URL
"https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-linux-arm-1.16.1.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-arm-1.16.1.zip"
)
set
(
onnxruntime_HASH
"SHA256=a668be37aa2eb5370e682f7599266c767b5327c1468203c372d8ceca4be1b585"
)
# 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.16.0.zip
${
PROJECT_SOURCE_DIR
}
/onnxruntime-linux-arm-1.16.0.zip
${
PROJECT_BINARY_DIR
}
/onnxruntime-linux-arm-1.16.0.zip
/tmp/onnxruntime-linux-arm-1.16.0.zip
/star-fj/fangjun/download/github/onnxruntime-linux-arm-1.16.0.zip
$ENV{HOME}/Downloads/onnxruntime-linux-arm-1.16.1.zip
${
PROJECT_SOURCE_DIR
}
/onnxruntime-linux-arm-1.16.1.zip
${
PROJECT_BINARY_DIR
}
/onnxruntime-linux-arm-1.16.1.zip
/tmp/onnxruntime-linux-arm-1.16.1.zip
/star-fj/fangjun/download/github/onnxruntime-linux-arm-1.16.1.zip
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
cmake/onnxruntime-linux-x86_64-gpu.cmake
查看文件 @
cca744e
...
...
@@ -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/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-linux-x64-gpu-1.16.0.tgz"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-linux-x64-gpu-1.16.0.tgz"
)
set
(
onnxruntime_HASH
"SHA256=f9cbf3d711f46d7e03ea43746ee9d1c7d8e82c171a4655f6591dd4d1ba1b9ec7"
)
set
(
onnxruntime_URL
"https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-linux-x64-gpu-1.16.1.tgz"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-gpu-1.16.1.tgz"
)
set
(
onnxruntime_HASH
"SHA256=474d5d74b588d54aa3e167f38acc9b1b8d20c292d0db92299bdc33a81eb4492d"
)
# 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.16.0.tgz
${
PROJECT_SOURCE_DIR
}
/onnxruntime-linux-x64-gpu-1.16.0.tgz
${
PROJECT_BINARY_DIR
}
/onnxruntime-linux-x64-gpu-1.16.0.tgz
/tmp/onnxruntime-linux-x64-gpu-1.16.0.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-x64-gpu-1.16.0.tgz
$ENV{HOME}/Downloads/onnxruntime-linux-x64-gpu-1.16.1.tgz
${
PROJECT_SOURCE_DIR
}
/onnxruntime-linux-x64-gpu-1.16.1.tgz
${
PROJECT_BINARY_DIR
}
/onnxruntime-linux-x64-gpu-1.16.1.tgz
/tmp/onnxruntime-linux-x64-gpu-1.16.1.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-x64-gpu-1.16.1.tgz
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
cmake/onnxruntime-linux-x86_64-static.cmake
查看文件 @
cca744e
...
...
@@ -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.16.0/onnxruntime-linux-x64-static_lib-1.16.0.tgz"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-linux-x64-static_lib-1.16.0.tgz"
)
set
(
onnxruntime_HASH
"SHA256=a36e989c9a07f12bf16f63acb2217b02a0cf4ac75aa7bc27de76ae08706a5c1f"
)
set
(
onnxruntime_URL
"https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-linux-x64-static_lib-1.16.1.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-static_lib-1.16.1.zip"
)
set
(
onnxruntime_HASH
"SHA256=0aa52fbff16ee9b165f42b7ea2ad61600d415d19681c9a9c6daca686c512cc64"
)
# 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.16.0.tgz
${
PROJECT_SOURCE_DIR
}
/onnxruntime-linux-x64-static_lib-1.16.0.tgz
${
PROJECT_BINARY_DIR
}
/onnxruntime-linux-x64-static_lib-1.16.0.tgz
/tmp/onnxruntime-linux-x64-static_lib-1.16.0.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-x64-static_lib-1.16.0.tgz
$ENV{HOME}/Downloads/onnxruntime-linux-x64-static_lib-1.16.1.zip
${
PROJECT_SOURCE_DIR
}
/onnxruntime-linux-x64-static_lib-1.16.1.zip
${
PROJECT_BINARY_DIR
}
/onnxruntime-linux-x64-static_lib-1.16.1.zip
/tmp/onnxruntime-linux-x64-static_lib-1.16.1.zip
/star-fj/fangjun/download/github/onnxruntime-linux-x64-static_lib-1.16.1.zip
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
cmake/onnxruntime-linux-x86_64.cmake
查看文件 @
cca744e
...
...
@@ -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.16.0/onnxruntime-linux-x64-1.16.0.tgz"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-linux-x64-1.16.0.tgz"
)
set
(
onnxruntime_HASH
"SHA256=02bcd1e4fef295dacc3b232774efeaa0a83527f439f29147c3badade4df1f6dc"
)
set
(
onnxruntime_URL
"https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-linux-x64-1.16.1.tgz"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-x64-1.16.1.tgz"
)
set
(
onnxruntime_HASH
"SHA256=53a0f03f71587ed602e99e82773132fc634b74c2d227316fbfd4bf67181e72ed"
)
# 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-1.16.0.tgz
${
PROJECT_SOURCE_DIR
}
/onnxruntime-linux-x64-1.16.0.tgz
${
PROJECT_BINARY_DIR
}
/onnxruntime-linux-x64-1.16.0.tgz
/tmp/onnxruntime-linux-x64-1.16.0.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-x64-1.16.0.tgz
$ENV{HOME}/Downloads/onnxruntime-linux-x64-1.16.1.tgz
${
PROJECT_SOURCE_DIR
}
/onnxruntime-linux-x64-1.16.1.tgz
${
PROJECT_BINARY_DIR
}
/onnxruntime-linux-x64-1.16.1.tgz
/tmp/onnxruntime-linux-x64-1.16.1.tgz
/star-fj/fangjun/download/github/onnxruntime-linux-x64-1.16.1.tgz
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
cmake/onnxruntime-osx-arm64-static.cmake
查看文件 @
cca744e
...
...
@@ -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.16.0/onnxruntime-osx-arm64-static_lib-1.16.0.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-arm64-static_lib-1.16.0.zip"
)
set
(
onnxruntime_HASH
"SHA256=5f99c9a51d91e751ac20fcbb73dfa31a379438381c5357fd3f37bda816934e3e"
)
set
(
onnxruntime_URL
"https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-osx-arm64-static_lib-1.16.1.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-arm64-static_lib-1.16.1.zip"
)
set
(
onnxruntime_HASH
"SHA256=2f7e9661bb01cf676f676c8d02e24a1e8e244e6f1e2a983e9a6f5f582b7e4a02"
)
# 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.16.0.zip
${
PROJECT_SOURCE_DIR
}
/onnxruntime-osx-arm64-static_lib-1.16.0.zip
${
PROJECT_BINARY_DIR
}
/onnxruntime-osx-arm64-static_lib-1.16.0.zip
/tmp/onnxruntime-osx-arm64-static_lib-1.16.0.zip
$ENV{HOME}/Downloads/onnxruntime-osx-arm64-static_lib-1.16.1.zip
${
PROJECT_SOURCE_DIR
}
/onnxruntime-osx-arm64-static_lib-1.16.1.zip
${
PROJECT_BINARY_DIR
}
/onnxruntime-osx-arm64-static_lib-1.16.1.zip
/tmp/onnxruntime-osx-arm64-static_lib-1.16.1.zip
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
cmake/onnxruntime-osx-arm64.cmake
查看文件 @
cca744e
...
...
@@ -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/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-osx-arm64-1.16.0.tgz"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-osx-arm64-1.16.0.tgz"
)
set
(
onnxruntime_HASH
"SHA256=fec3b70ca4f642a5c6d5c3a6f3a4eddd4c1b9281893fe2c7ae03a3086e20c316"
)
set
(
onnxruntime_URL
"https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-osx-arm64-1.16.1.tgz"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-arm64-1.16.1.tgz"
)
set
(
onnxruntime_HASH
"SHA256=56ca6b8de3a220ea606c2067ba65d11dfa6e4f722e01ac7dc75f7152b81445e0"
)
# 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.16.0.tgz
${
PROJECT_SOURCE_DIR
}
/onnxruntime-osx-arm64-1.16.0.tgz
${
PROJECT_BINARY_DIR
}
/onnxruntime-osx-arm64-1.16.0.tgz
/tmp/onnxruntime-osx-arm64-1.16.0.tgz
$ENV{HOME}/Downloads/onnxruntime-osx-arm64-1.16.1.tgz
${
PROJECT_SOURCE_DIR
}
/onnxruntime-osx-arm64-1.16.1.tgz
${
PROJECT_BINARY_DIR
}
/onnxruntime-osx-arm64-1.16.1.tgz
/tmp/onnxruntime-osx-arm64-1.16.1.tgz
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
cmake/onnxruntime-osx-universal-static.cmake
查看文件 @
cca744e
...
...
@@ -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.16.0/onnxruntime-osx-universal2-static_lib-1.16.0.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-universal2-static_lib-1.16.0.zip"
)
set
(
onnxruntime_HASH
"SHA256=6df205fb519d311ff57131d35ed43374f4fe483eb665baa38bfbc00034595b35"
)
set
(
onnxruntime_URL
"https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-osx-universal2-static_lib-1.16.1.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-universal2-static_lib-1.16.1.zip"
)
set
(
onnxruntime_HASH
"SHA256=ec47c70f47a76da237c10607e5129b99230c101c132ea1ec13b90d6e36f84a89"
)
# 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.16.0.zip
${
PROJECT_SOURCE_DIR
}
/onnxruntime-osx-universal2-static_lib-1.16.0.zip
${
PROJECT_BINARY_DIR
}
/onnxruntime-osx-universal2-static_lib-1.16.0.zip
/tmp/onnxruntime-osx-universal2-static_lib-1.16.0.zip
$ENV{HOME}/Downloads/onnxruntime-osx-universal2-static_lib-1.16.1.zip
${
PROJECT_SOURCE_DIR
}
/onnxruntime-osx-universal2-static_lib-1.16.1.zip
${
PROJECT_BINARY_DIR
}
/onnxruntime-osx-universal2-static_lib-1.16.1.zip
/tmp/onnxruntime-osx-universal2-static_lib-1.16.1.zip
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
cmake/onnxruntime-osx-universal.cmake
查看文件 @
cca744e
...
...
@@ -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/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-osx-universal2-1.16.0.tgz"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-osx-universal2-1.16.0.tgz"
)
set
(
onnxruntime_HASH
"SHA256=e5b69ece634cf1cd5cf4b45ab478417199a5e8ab5775f6f12560e09dc5ef7749"
)
set
(
onnxruntime_URL
"https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-osx-universal2-1.16.1.tgz"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-universal2-1.16.1.tgz"
)
set
(
onnxruntime_HASH
"SHA256=e8568a4a3f602c25ea7c3bbd2f085340dff5bb68fa7c859fd763d944105e3d76"
)
# 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.16.0.tgz
${
PROJECT_SOURCE_DIR
}
/onnxruntime-osx-universal2-1.16.0.tgz
${
PROJECT_BINARY_DIR
}
/onnxruntime-osx-universal2-1.16.0.tgz
/tmp/onnxruntime-osx-universal2-1.16.0.tgz
$ENV{HOME}/Downloads/onnxruntime-osx-universal2-1.16.1.tgz
${
PROJECT_SOURCE_DIR
}
/onnxruntime-osx-universal2-1.16.1.tgz
${
PROJECT_BINARY_DIR
}
/onnxruntime-osx-universal2-1.16.1.tgz
/tmp/onnxruntime-osx-universal2-1.16.1.tgz
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
cmake/onnxruntime-osx-x86_64-static.cmake
查看文件 @
cca744e
...
...
@@ -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.16.0/onnxruntime-osx-x86_64-static_lib-1.16.0.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-x86_64-static_lib-1.16.0.zip"
)
set
(
onnxruntime_HASH
"SHA256=1686a1b6778483371d29106d8c7300a8960e3db084ab84ac4f870b7685cf5259"
)
set
(
onnxruntime_URL
"https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-osx-x86_64-static_lib-1.16.1.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-x86_64-static_lib-1.16.1.zip"
)
set
(
onnxruntime_HASH
"SHA256=da7e223d975ddfc9599187d016e2fc47e6f072f2a9817c5a48d8d7f021b49fbb"
)
# 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.16.0.zip
${
PROJECT_SOURCE_DIR
}
/onnxruntime-osx-x86_64-static_lib-1.16.0.zip
${
PROJECT_BINARY_DIR
}
/onnxruntime-osx-x86_64-static_lib-1.16.0.zip
/tmp/onnxruntime-osx-x86_64-static_lib-1.16.0.zip
$ENV{HOME}/Downloads/onnxruntime-osx-x86_64-static_lib-1.16.1.zip
${
PROJECT_SOURCE_DIR
}
/onnxruntime-osx-x86_64-static_lib-1.16.1.zip
${
PROJECT_BINARY_DIR
}
/onnxruntime-osx-x86_64-static_lib-1.16.1.zip
/tmp/onnxruntime-osx-x86_64-static_lib-1.16.1.zip
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
cmake/onnxruntime-osx-x86_64.cmake
查看文件 @
cca744e
...
...
@@ -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/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-osx-x86_64-1.16.0.tgz"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-osx-x86_64-1.16.0.tgz"
)
set
(
onnxruntime_HASH
"SHA256=3d639a269af4e97a455f23cff363a709ef3a5f3e086162e65e3395c339122285"
)
set
(
onnxruntime_URL
"https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-osx-x86_64-1.16.1.tgz"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-osx-x86_64-1.16.1.tgz"
)
set
(
onnxruntime_HASH
"SHA256=0b8ae24401a8f75e1c4f75257d4eaeb1b6d44055e027df4aa4a84e67e0f9b9e3"
)
# 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.16.0.tgz
${
PROJECT_SOURCE_DIR
}
/onnxruntime-osx-x86_64-1.16.0.tgz
${
PROJECT_BINARY_DIR
}
/onnxruntime-osx-x86_64-1.16.0.tgz
/tmp/onnxruntime-osx-x86_64-1.16.0.tgz
$ENV{HOME}/Downloads/onnxruntime-osx-x86_64-1.16.1.tgz
${
PROJECT_SOURCE_DIR
}
/onnxruntime-osx-x86_64-1.16.1.tgz
${
PROJECT_BINARY_DIR
}
/onnxruntime-osx-x86_64-1.16.1.tgz
/tmp/onnxruntime-osx-x86_64-1.16.1.tgz
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
cmake/onnxruntime-win-x64-gpu.cmake
查看文件 @
cca744e
...
...
@@ -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.16.0/onnxruntime-win-x64-gpu-1.16.0.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-win-x64-gpu-1.16.0.zip"
)
set
(
onnxruntime_HASH
"SHA256=2a824d2a98fe7328980fcd27016fe797137f7050b047eecf3a3f6b82a24f63c1"
)
set
(
onnxruntime_URL
"https://github.com/microsoft/onnxruntime/releases/download/v1.16.1/onnxruntime-win-x64-gpu-1.16.1.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x64-gpu-1.16.1.zip"
)
set
(
onnxruntime_HASH
"SHA256=b841f8e8d9a0556bfc5228ff1488395fa041fafe8d16a62e25a254d000d51888"
)
# 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.16.0.zip
${
PROJECT_SOURCE_DIR
}
/onnxruntime-win-x64-gpu-1.16.0.zip
${
PROJECT_BINARY_DIR
}
/onnxruntime-win-x64-gpu-1.16.0.zip
/tmp/onnxruntime-win-x64-gpu-1.16.0.zip
$ENV{HOME}/Downloads/onnxruntime-win-x64-gpu-1.16.1.zip
${
PROJECT_SOURCE_DIR
}
/onnxruntime-win-x64-gpu-1.16.1.zip
${
PROJECT_BINARY_DIR
}
/onnxruntime-win-x64-gpu-1.16.1.zip
/tmp/onnxruntime-win-x64-gpu-1.16.1.zip
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
cmake/onnxruntime-win-x64-static.cmake
查看文件 @
cca744e
...
...
@@ -15,18 +15,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.16.0/onnxruntime-win-x64-static_lib-1.16.0.tar.bz2"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x64-static_lib-1.16.0.tar.bz2"
)
set
(
onnxruntime_HASH
"SHA256=7b28a694178d075e6836d618613e2a0fd0046ccd9fd66bbf6a46d22e96db33b8"
)
set
(
onnxruntime_URL
"https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-win-x64-static_lib-1.16.1.tar.bz2"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x64-static_lib-1.16.1.tar.bz2"
)
set
(
onnxruntime_HASH
"SHA256=9d7ba69823a6948887d0dee3e80c8c8ce84aae3e4e151f1e96eb34ca8ba9915f"
)
# 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.16.0.tar.bz2
${
PROJECT_SOURCE_DIR
}
/onnxruntime-win-x64-static_lib-1.16.0.tar.bz2
${
PROJECT_BINARY_DIR
}
/onnxruntime-win-x64-static_lib-1.16.0.tar.bz2
/tmp/onnxruntime-win-x64-static_lib-1.16.0.tar.bz2
$ENV{HOME}/Downloads/onnxruntime-win-x64-static_lib-1.16.1.tar.bz2
${
PROJECT_SOURCE_DIR
}
/onnxruntime-win-x64-static_lib-1.16.1.tar.bz2
${
PROJECT_BINARY_DIR
}
/onnxruntime-win-x64-static_lib-1.16.1.tar.bz2
/tmp/onnxruntime-win-x64-static_lib-1.16.1.tar.bz2
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
cmake/onnxruntime-win-x64.cmake
查看文件 @
cca744e
...
...
@@ -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.16.0/onnxruntime-win-x64-1.16.0.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-win-x64-1.16.0.zip"
)
set
(
onnxruntime_HASH
"SHA256=ce6777ecde7d4a6c9d4eab9774089fe04be1bad979323ae502e667b95222e08f"
)
set
(
onnxruntime_URL
"https://github.com/microsoft/onnxruntime/releases/download/v1.16.1/onnxruntime-win-x64-1.16.1.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x64-1.16.1.zip"
)
set
(
onnxruntime_HASH
"SHA256=05a972384c73c05bce51ffd3e15b1e78325ea9fa652573113159b5cac547ecce"
)
# 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.16.0.zip
${
PROJECT_SOURCE_DIR
}
/onnxruntime-win-x64-1.16.0.zip
${
PROJECT_BINARY_DIR
}
/onnxruntime-win-x64-1.16.0.zip
/tmp/onnxruntime-win-x64-1.16.0.zip
$ENV{HOME}/Downloads/onnxruntime-win-x64-1.16.1.zip
${
PROJECT_SOURCE_DIR
}
/onnxruntime-win-x64-1.16.1.zip
${
PROJECT_BINARY_DIR
}
/onnxruntime-win-x64-1.16.1.zip
/tmp/onnxruntime-win-x64-1.16.1.zip
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
cmake/onnxruntime-win-x86-static.cmake
查看文件 @
cca744e
...
...
@@ -15,18 +15,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.16.0/onnxruntime-win-x86-static_lib-1.16.0.tar.bz2"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x86-static_lib-1.16.0.tar.bz2"
)
set
(
onnxruntime_HASH
"SHA256=fe78775b222244bbcb512631719a94336391b645edb23c314201a6991ddecb58"
)
set
(
onnxruntime_URL
"https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.1/onnxruntime-win-x86-static_lib-1.16.1.tar.bz2"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x86-static_lib-1.16.1.tar.bz2"
)
set
(
onnxruntime_HASH
"SHA256=590d702f6705452567789ef862384e8ab99b039da10e7ecdc11a07d778c80ff9"
)
# 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.16.0.tar.bz2
${
PROJECT_SOURCE_DIR
}
/onnxruntime-win-x86-static_lib-1.16.0.tar.bz2
${
PROJECT_BINARY_DIR
}
/onnxruntime-win-x86-static_lib-1.16.0.tar.bz2
/tmp/onnxruntime-win-x86-static_lib-1.16.0.tar.bz2
$ENV{HOME}/Downloads/onnxruntime-win-x86-static_lib-1.16.1.tar.bz2
${
PROJECT_SOURCE_DIR
}
/onnxruntime-win-x86-static_lib-1.16.1.tar.bz2
${
PROJECT_BINARY_DIR
}
/onnxruntime-win-x86-static_lib-1.16.1.tar.bz2
/tmp/onnxruntime-win-x86-static_lib-1.16.1.tar.bz2
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
cmake/onnxruntime-win-x86.cmake
查看文件 @
cca744e
...
...
@@ -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.16.0/onnxruntime-win-x86-1.16.0.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-win-x86-1.16.0.zip"
)
set
(
onnxruntime_HASH
"SHA256=a1da9e0739336c826c04ab7cb63a3e7bf6ab0dda5fb8bbba17bba4cf8c7d4e20"
)
set
(
onnxruntime_URL
"https://github.com/microsoft/onnxruntime/releases/download/v1.16.1/onnxruntime-win-x86-1.16.1.zip"
)
set
(
onnxruntime_URL2
"https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-win-x86-1.16.1.zip"
)
set
(
onnxruntime_HASH
"SHA256=60b476cde62d424fc9bf87ec3bf275cf40af76bdb25022581f3ecaf4af5992a1"
)
# 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.16.0.zip
${
PROJECT_SOURCE_DIR
}
/onnxruntime-win-x86-1.16.0.zip
${
PROJECT_BINARY_DIR
}
/onnxruntime-win-x86-1.16.0.zip
/tmp/onnxruntime-win-x86-1.16.0.zip
$ENV{HOME}/Downloads/onnxruntime-win-x86-1.16.1.zip
${
PROJECT_SOURCE_DIR
}
/onnxruntime-win-x86-1.16.1.zip
${
PROJECT_BINARY_DIR
}
/onnxruntime-win-x86-1.16.1.zip
/tmp/onnxruntime-win-x86-1.16.1.zip
)
foreach
(
f IN LISTS possible_file_locations
)
...
...
scripts/dotnet/generate.py
查看文件 @
cca744e
...
...
@@ -34,7 +34,7 @@ def get_dict():
def
process_linux
(
s
):
libs
=
[
"libkaldi-native-fbank-core.so"
,
"libonnxruntime.so.1.16.
0
"
,
"libonnxruntime.so.1.16.
1
"
,
"libsherpa-onnx-c-api.so"
,
"libsherpa-onnx-core.so"
,
]
...
...
@@ -56,7 +56,7 @@ def process_linux(s):
def
process_macos
(
s
):
libs
=
[
"libkaldi-native-fbank-core.dylib"
,
"libonnxruntime.1.16.
0
.dylib"
,
"libonnxruntime.1.16.
1
.dylib"
,
"libsherpa-onnx-c-api.dylib"
,
"libsherpa-onnx-core.dylib"
,
]
...
...
请
注册
或
登录
后发表评论