Committed by
GitHub
Add alternative URLs for downloading deps (#80)
正在显示
7 个修改的文件
包含
31 行增加
和
7 行删除
| @@ -2,6 +2,7 @@ function(download_asio) | @@ -2,6 +2,7 @@ function(download_asio) | ||
| 2 | include(FetchContent) | 2 | include(FetchContent) |
| 3 | 3 | ||
| 4 | set(asio_URL "https://github.com/chriskohlhoff/asio/archive/refs/tags/asio-1-24-0.tar.gz") | 4 | set(asio_URL "https://github.com/chriskohlhoff/asio/archive/refs/tags/asio-1-24-0.tar.gz") |
| 5 | + set(asio_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/asio-asio-1-24-0.tar.gz") | ||
| 5 | set(asio_HASH "SHA256=cbcaaba0f66722787b1a7c33afe1befb3a012b5af3ad7da7ff0f6b8c9b7a8a5b") | 6 | set(asio_HASH "SHA256=cbcaaba0f66722787b1a7c33afe1befb3a012b5af3ad7da7ff0f6b8c9b7a8a5b") |
| 6 | 7 | ||
| 7 | # If you don't have access to the Internet, | 8 | # If you don't have access to the Internet, |
| @@ -22,7 +23,9 @@ function(download_asio) | @@ -22,7 +23,9 @@ function(download_asio) | ||
| 22 | endforeach() | 23 | endforeach() |
| 23 | 24 | ||
| 24 | FetchContent_Declare(asio | 25 | FetchContent_Declare(asio |
| 25 | - URL ${asio_URL} | 26 | + URL |
| 27 | + ${asio_URL} | ||
| 28 | + ${asio_URL2} | ||
| 26 | URL_HASH ${asio_HASH} | 29 | URL_HASH ${asio_HASH} |
| 27 | ) | 30 | ) |
| 28 | 31 |
| @@ -2,6 +2,7 @@ function(download_googltest) | @@ -2,6 +2,7 @@ function(download_googltest) | ||
| 2 | include(FetchContent) | 2 | include(FetchContent) |
| 3 | 3 | ||
| 4 | set(googletest_URL "https://github.com/google/googletest/archive/refs/tags/v1.13.0.tar.gz") | 4 | set(googletest_URL "https://github.com/google/googletest/archive/refs/tags/v1.13.0.tar.gz") |
| 5 | + set(googletest_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/googletest-1.13.0.tar.gz") | ||
| 5 | set(googletest_HASH "SHA256=ad7fdba11ea011c1d925b3289cf4af2c66a352e18d4c7264392fead75e919363") | 6 | set(googletest_HASH "SHA256=ad7fdba11ea011c1d925b3289cf4af2c66a352e18d4c7264392fead75e919363") |
| 6 | 7 | ||
| 7 | # If you don't have access to the Internet, | 8 | # If you don't have access to the Internet, |
| @@ -27,7 +28,9 @@ function(download_googltest) | @@ -27,7 +28,9 @@ function(download_googltest) | ||
| 27 | set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) | 28 | set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) |
| 28 | 29 | ||
| 29 | FetchContent_Declare(googletest | 30 | FetchContent_Declare(googletest |
| 30 | - URL ${googletest_URL} | 31 | + URL |
| 32 | + ${googletest_URL} | ||
| 33 | + ${googletest_URL2} | ||
| 31 | URL_HASH ${googletest_HASH} | 34 | URL_HASH ${googletest_HASH} |
| 32 | ) | 35 | ) |
| 33 | 36 |
| @@ -2,6 +2,7 @@ function(download_kaldi_native_fbank) | @@ -2,6 +2,7 @@ function(download_kaldi_native_fbank) | ||
| 2 | include(FetchContent) | 2 | include(FetchContent) |
| 3 | 3 | ||
| 4 | set(kaldi_native_fbank_URL "https://github.com/csukuangfj/kaldi-native-fbank/archive/refs/tags/v1.13.tar.gz") | 4 | set(kaldi_native_fbank_URL "https://github.com/csukuangfj/kaldi-native-fbank/archive/refs/tags/v1.13.tar.gz") |
| 5 | + set(kaldi_native_fbank_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/kaldi-native-fbank-1.13.tar.gz") | ||
| 5 | set(kaldi_native_fbank_HASH "SHA256=1f4d228f9fe3e3e9f92a74a7eecd2489071a03982e4ba6d7c70fc5fa7444df57") | 6 | set(kaldi_native_fbank_HASH "SHA256=1f4d228f9fe3e3e9f92a74a7eecd2489071a03982e4ba6d7c70fc5fa7444df57") |
| 6 | 7 | ||
| 7 | set(KALDI_NATIVE_FBANK_BUILD_TESTS OFF CACHE BOOL "" FORCE) | 8 | set(KALDI_NATIVE_FBANK_BUILD_TESTS OFF CACHE BOOL "" FORCE) |
| @@ -26,7 +27,9 @@ function(download_kaldi_native_fbank) | @@ -26,7 +27,9 @@ function(download_kaldi_native_fbank) | ||
| 26 | endforeach() | 27 | endforeach() |
| 27 | 28 | ||
| 28 | FetchContent_Declare(kaldi_native_fbank | 29 | FetchContent_Declare(kaldi_native_fbank |
| 29 | - URL ${kaldi_native_fbank_URL} | 30 | + URL |
| 31 | + ${kaldi_native_fbank_URL} | ||
| 32 | + ${kaldi_native_fbank_URL2} | ||
| 30 | URL_HASH ${kaldi_native_fbank_HASH} | 33 | URL_HASH ${kaldi_native_fbank_HASH} |
| 31 | ) | 34 | ) |
| 32 | 35 |
| @@ -11,6 +11,7 @@ function(download_onnxruntime) | @@ -11,6 +11,7 @@ function(download_onnxruntime) | ||
| 11 | /star-fj/fangjun/download/github/onnxruntime-linux-aarch64-1.14.0.tgz | 11 | /star-fj/fangjun/download/github/onnxruntime-linux-aarch64-1.14.0.tgz |
| 12 | ) | 12 | ) |
| 13 | set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.14.0/onnxruntime-linux-aarch64-1.14.0.tgz") | 13 | set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.14.0/onnxruntime-linux-aarch64-1.14.0.tgz") |
| 14 | + set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-linux-aarch64-1.14.0.tgz") | ||
| 14 | set(onnxruntime_HASH "SHA256=9384d2e6e29fed693a4630303902392eead0c41bee5705ccac6d6d34a3d5db86") | 15 | set(onnxruntime_HASH "SHA256=9384d2e6e29fed693a4630303902392eead0c41bee5705ccac6d6d34a3d5db86") |
| 15 | elseif(CMAKE_SYSTEM_NAME STREQUAL Linux AND CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64) | 16 | elseif(CMAKE_SYSTEM_NAME STREQUAL Linux AND CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64) |
| 16 | # If you don't have access to the Internet, | 17 | # If you don't have access to the Internet, |
| @@ -24,6 +25,7 @@ function(download_onnxruntime) | @@ -24,6 +25,7 @@ function(download_onnxruntime) | ||
| 24 | ) | 25 | ) |
| 25 | 26 | ||
| 26 | set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.14.0/onnxruntime-linux-x64-1.14.0.tgz") | 27 | set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.14.0/onnxruntime-linux-x64-1.14.0.tgz") |
| 28 | + set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-linux-x64-1.14.0.tgz") | ||
| 27 | set(onnxruntime_HASH "SHA256=92bf534e5fa5820c8dffe9de2850f84ed2a1c063e47c659ce09e8c7938aa2090") | 29 | set(onnxruntime_HASH "SHA256=92bf534e5fa5820c8dffe9de2850f84ed2a1c063e47c659ce09e8c7938aa2090") |
| 28 | # After downloading, it contains: | 30 | # After downloading, it contains: |
| 29 | # ./lib/libonnxruntime.so.1.14.0 | 31 | # ./lib/libonnxruntime.so.1.14.0 |
| @@ -41,6 +43,7 @@ function(download_onnxruntime) | @@ -41,6 +43,7 @@ function(download_onnxruntime) | ||
| 41 | /tmp/onnxruntime-osx-universal2-1.14.0.tgz | 43 | /tmp/onnxruntime-osx-universal2-1.14.0.tgz |
| 42 | ) | 44 | ) |
| 43 | set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.14.0/onnxruntime-osx-universal2-1.14.0.tgz") | 45 | set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.14.0/onnxruntime-osx-universal2-1.14.0.tgz") |
| 46 | + set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-osx-universal2-1.14.0.tgz") | ||
| 44 | set(onnxruntime_HASH "SHA256=348563df91f17a2ac010519f37c3b46fd5b79140974e5c5a90a57e032bb25925") | 47 | set(onnxruntime_HASH "SHA256=348563df91f17a2ac010519f37c3b46fd5b79140974e5c5a90a57e032bb25925") |
| 45 | # After downloading, it contains: | 48 | # After downloading, it contains: |
| 46 | # ./lib/libonnxruntime.1.14.0.dylib | 49 | # ./lib/libonnxruntime.1.14.0.dylib |
| @@ -58,6 +61,7 @@ function(download_onnxruntime) | @@ -58,6 +61,7 @@ function(download_onnxruntime) | ||
| 58 | /tmp/onnxruntime-win-x64-1.14.0.zip | 61 | /tmp/onnxruntime-win-x64-1.14.0.zip |
| 59 | ) | 62 | ) |
| 60 | set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.14.0/onnxruntime-win-x64-1.14.0.zip") | 63 | set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.14.0/onnxruntime-win-x64-1.14.0.zip") |
| 64 | + set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-win-x64-1.14.0.zip") | ||
| 61 | set(onnxruntime_HASH "SHA256=300eafef456748cde2743ee08845bd40ff1bab723697ff934eba6d4ce3519620") | 65 | set(onnxruntime_HASH "SHA256=300eafef456748cde2743ee08845bd40ff1bab723697ff934eba6d4ce3519620") |
| 62 | # After downloading, it contains: | 66 | # After downloading, it contains: |
| 63 | # ./lib/onnxruntime.{dll,lib,pdb} | 67 | # ./lib/onnxruntime.{dll,lib,pdb} |
| @@ -79,7 +83,9 @@ function(download_onnxruntime) | @@ -79,7 +83,9 @@ function(download_onnxruntime) | ||
| 79 | endforeach() | 83 | endforeach() |
| 80 | 84 | ||
| 81 | FetchContent_Declare(onnxruntime | 85 | FetchContent_Declare(onnxruntime |
| 82 | - URL ${onnxruntime_URL} | 86 | + URL |
| 87 | + ${onnxruntime_URL} | ||
| 88 | + ${onnxruntime_URL2} | ||
| 83 | URL_HASH ${onnxruntime_HASH} | 89 | URL_HASH ${onnxruntime_HASH} |
| 84 | ) | 90 | ) |
| 85 | 91 |
| @@ -2,6 +2,7 @@ function(download_portaudio) | @@ -2,6 +2,7 @@ function(download_portaudio) | ||
| 2 | include(FetchContent) | 2 | include(FetchContent) |
| 3 | 3 | ||
| 4 | set(portaudio_URL "http://files.portaudio.com/archives/pa_stable_v190700_20210406.tgz") | 4 | set(portaudio_URL "http://files.portaudio.com/archives/pa_stable_v190700_20210406.tgz") |
| 5 | + set(portaudio_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/pa_stable_v190700_20210406.tgz") | ||
| 5 | set(portaudio_HASH "SHA256=47efbf42c77c19a05d22e627d42873e991ec0c1357219c0d74ce6a2948cb2def") | 6 | set(portaudio_HASH "SHA256=47efbf42c77c19a05d22e627d42873e991ec0c1357219c0d74ce6a2948cb2def") |
| 6 | 7 | ||
| 7 | # If you don't have access to the Internet, please download it to your | 8 | # If you don't have access to the Internet, please download it to your |
| @@ -31,7 +32,9 @@ function(download_portaudio) | @@ -31,7 +32,9 @@ function(download_portaudio) | ||
| 31 | endif() | 32 | endif() |
| 32 | 33 | ||
| 33 | FetchContent_Declare(portaudio | 34 | FetchContent_Declare(portaudio |
| 34 | - URL ${portaudio_URL} | 35 | + URL |
| 36 | + ${portaudio_URL} | ||
| 37 | + ${portaudio_URL2} | ||
| 35 | URL_HASH ${portaudio_HASH} | 38 | URL_HASH ${portaudio_HASH} |
| 36 | ) | 39 | ) |
| 37 | 40 |
| @@ -2,6 +2,7 @@ function(download_pybind11) | @@ -2,6 +2,7 @@ function(download_pybind11) | ||
| 2 | include(FetchContent) | 2 | include(FetchContent) |
| 3 | 3 | ||
| 4 | set(pybind11_URL "https://github.com/pybind/pybind11/archive/refs/tags/v2.10.2.tar.gz") | 4 | set(pybind11_URL "https://github.com/pybind/pybind11/archive/refs/tags/v2.10.2.tar.gz") |
| 5 | + set(pybind11_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/pybind11-2.10.2.tar.gz") | ||
| 5 | set(pybind11_HASH "SHA256=93bd1e625e43e03028a3ea7389bba5d3f9f2596abc074b068e70f4ef9b1314ae") | 6 | set(pybind11_HASH "SHA256=93bd1e625e43e03028a3ea7389bba5d3f9f2596abc074b068e70f4ef9b1314ae") |
| 6 | 7 | ||
| 7 | # If you don't have access to the Internet, | 8 | # If you don't have access to the Internet, |
| @@ -22,7 +23,9 @@ function(download_pybind11) | @@ -22,7 +23,9 @@ function(download_pybind11) | ||
| 22 | endforeach() | 23 | endforeach() |
| 23 | 24 | ||
| 24 | FetchContent_Declare(pybind11 | 25 | FetchContent_Declare(pybind11 |
| 25 | - URL ${pybind11_URL} | 26 | + URL |
| 27 | + ${pybind11_URL} | ||
| 28 | + ${pybind11_URL2} | ||
| 26 | URL_HASH ${pybind11_HASH} | 29 | URL_HASH ${pybind11_HASH} |
| 27 | ) | 30 | ) |
| 28 | 31 |
| @@ -3,6 +3,7 @@ function(download_websocketpp) | @@ -3,6 +3,7 @@ function(download_websocketpp) | ||
| 3 | 3 | ||
| 4 | # The latest commit on the develop branch os as 2022-10-22 | 4 | # The latest commit on the develop branch os as 2022-10-22 |
| 5 | set(websocketpp_URL "https://github.com/zaphoyd/websocketpp/archive/b9aeec6eaf3d5610503439b4fae3581d9aff08e8.zip") | 5 | set(websocketpp_URL "https://github.com/zaphoyd/websocketpp/archive/b9aeec6eaf3d5610503439b4fae3581d9aff08e8.zip") |
| 6 | + set(websocketpp_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/websocketpp-b9aeec6eaf3d5610503439b4fae3581d9aff08e8.zip") | ||
| 6 | set(websocketpp_HASH "SHA256=1385135ede8191a7fbef9ec8099e3c5a673d48df0c143958216cd1690567f583") | 7 | set(websocketpp_HASH "SHA256=1385135ede8191a7fbef9ec8099e3c5a673d48df0c143958216cd1690567f583") |
| 7 | 8 | ||
| 8 | # If you don't have access to the Internet, | 9 | # If you don't have access to the Internet, |
| @@ -23,7 +24,9 @@ function(download_websocketpp) | @@ -23,7 +24,9 @@ function(download_websocketpp) | ||
| 23 | endforeach() | 24 | endforeach() |
| 24 | 25 | ||
| 25 | FetchContent_Declare(websocketpp | 26 | FetchContent_Declare(websocketpp |
| 26 | - URL ${websocketpp_URL} | 27 | + URL |
| 28 | + ${websocketpp_URL} | ||
| 29 | + ${websocketpp_URL2} | ||
| 27 | URL_HASH ${websocketpp_HASH} | 30 | URL_HASH ${websocketpp_HASH} |
| 28 | ) | 31 | ) |
| 29 | 32 |
-
请 注册 或 登录 后发表评论