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

Cross compile from x86 to arm with MSVC and vulkan #2720

Open
thewh1teagle opened this issue Jan 10, 2025 · 0 comments
Open

Cross compile from x86 to arm with MSVC and vulkan #2720

thewh1teagle opened this issue Jan 10, 2025 · 0 comments

Comments

@thewh1teagle
Copy link
Contributor

Hi
I'm trying to build Windows arm64 of whisper.cpp on x86 Windows machine using the following commands:

cmake -B build . -A ARM64 -DGGML_VULKAN=ON
cmake --build build --target main

And it failed with the following error:

  Generating Code...
  Auto build dll exports
     Creating library D:/audio/vibe/whisper-rs/sys/whisper.cpp/build/ggml/src/ggml-cpu/Debug/ggml-cpu.lib and object D:/audio/vibe/whisper-rs/sys/whisper.cpp/build/ggml/src/ggml-cpu/Debug/ggml-cpu.exp
  ggml-cpu.vcxproj -> D:\audio\vibe\whisper-rs\sys\whisper.cpp\build\bin\Debug\ggml-cpu.dll
  Building Custom Rule D:/audio/vibe/whisper-rs/sys/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/CMakeLists.txt
  vulkan-shaders-gen.cpp
  vulkan-shaders-gen.vcxproj -> D:\audio\vibe\whisper-rs\sys\whisper.cpp\build\bin\Debug\vulkan-shaders-gen.exe
  Generate vulkan shaders
  This version of D:\audio\vibe\whisper-rs\sys\whisper.cpp\build\bin\Debug\vulkan-shaders-gen.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\audio\vibe\whisper-rs\sys\whisper.cpp\build\CMakeFiles\e6562b2261b3b19b8d67699a1fbab730\ggml-vulkan-shaders.hpp.rule;D:\audio\vibe\whisper-rs\sys\whisp
er.cpp\ggml\src\ggml-vulkan\CMakeLists.txt' exited with code 216. [D:\audio\vibe\whisper-rs\sys\whisper.cpp\build\ggml\src\ggml-vulkan\ggml-vulkan.vcxproj]

It cannot generate the headers since the generated vulkan-shaders-gen.exe is for another platform (cross platform..)
How can I fix it? can we generate shaders for arm on x86?

Related:

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

No branches or pull requests

1 participant