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

请问有计划支持Windows On Arm平台吗? #910

Closed
zhanweiw opened this issue May 24, 2024 · 6 comments · Fixed by #911
Closed

请问有计划支持Windows On Arm平台吗? #910

zhanweiw opened this issue May 24, 2024 · 6 comments · Fixed by #911

Comments

@zhanweiw
Copy link

刚才下载了想在Windows On ARM平台上编译,遇到CMake配置时报错:

-- CMAKE_SYSTEM_NAME: Windows
-- CMAKE_SYSTEM_PROCESSOR: ARM64
-- location_onnxruntime_header_dir: location_onnxruntime_header_dir-NOTFOUND
-- location_onnxruntime_lib: location_onnxruntime_lib-NOTFOUND
-- Could not find a pre-installed onnxruntime.
-- Downloading pre-compiled onnxruntime
-- CMAKE_SYSTEM_NAME: Windows
-- CMAKE_SYSTEM_PROCESSOR: ARM64
-- CMAKE_VS_PLATFORM_NAME: ARM64
-- Use static onnxruntime libraries
-- CMAKE_SYSTEM_NAME: Windows
-- CMAKE_SYSTEM_PROCESSOR: ARM64
-- CMAKE_VS_PLATFORM_NAME: ARM64
CMake Error at cmake/onnxruntime-win-x64-static.cmake:11 (message):
  This file is for Windows x64 only.  Given: ARM64
Call Stack (most recent call first):
  cmake/onnxruntime.cmake:104 (include)
  cmake/onnxruntime.cmake:205 (download_onnxruntime)
  CMakeLists.txt:239 (include)


-- Configuring incomplete, errors occurred!
@csukuangfj
Copy link
Collaborator

稍等,我加一个,你帮忙测试下?

@zhanweiw
Copy link
Author

好的。非常感谢!

@csukuangfj
Copy link
Collaborator

请用 #911

我们本地没有 windows arm64 的环境,无法进行测试。

请帮忙测试下,多谢!

@zhanweiw
Copy link
Author

好的。我来试一下,有结果会反馈给你。谢谢!

@zhanweiw
Copy link
Author

用如下命令可以成功编译并且可以运行,我测试了sherpa-onnx-offline + sherpa-onnx-paraformer-zh-2024-03-09:

cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON .. 
cmake --build . --config Release

@csukuangfj
Copy link
Collaborator

多谢测试!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants