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

fix windows gnu build #110

Merged
merged 3 commits into from
Jan 9, 2024
Merged

Conversation

thewh1teagle
Copy link
Contributor

@thewh1teagle thewh1teagle commented Jan 8, 2024

I tried to use this library on windows inside msys2, following BUILDING.md and got bunch of erros.
Fixed all of them and planning to improve the instructions as well.
Checked in msys2 and it works with the examples of this repo.

#87
#65

Steps to build:

  1. Download msys2 from https://www.msys2.org/ and install
  2. Install prerequisites from ucrt64 terminal
pacman --needed -S $MINGW_PACKAGE_PREFIX-{toolchain,make,cmake,rust,clang} git
  1. Clone
git clone -b fix/msys2-build --recursive https://github.com/thewh1teagle/whisper-rs.git
cd whisper-rs
  1. Build
cargo build
  1. Try it
wget -q --show-progress \
    https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.en.bin -O ggml-base.en.bin
cd examples/full_usage
cargo run 2830-3980-0043.wav ../../ggml-base.en.bin

src/whisper_grammar.rs Outdated Show resolved Hide resolved
src/whisper_grammar.rs Outdated Show resolved Hide resolved
@tazz4843 tazz4843 merged commit 9861dfd into tazz4843:master Jan 9, 2024
13 checks passed
@tazz4843
Copy link
Owner

tazz4843 commented Jan 9, 2024

Thanks :)

@thewh1teagle thewh1teagle deleted the fix/msys2-build branch May 28, 2024 23:42
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 this pull request may close these issues.

2 participants