Create BUILDING.md
Add instructions for using whisper-rs on Windows
This commit is contained in:
parent
34260d4aed
commit
5c674f9556
1 changed files with 29 additions and 0 deletions
29
BUILDING.md
Normal file
29
BUILDING.md
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
|
||||
# Running on Windows using MSYS2
|
||||
|
||||
The following is
|
||||
|
||||
1. install msys2/mingw by following [https://code.visualstudio.com/docs/cpp/config-mingw](`https://code.visualstudio.com/docs/cpp/config-mingw`)
|
||||
1. Install g++ and make within msys2 ucrt64
|
||||
- `pacman -S --needed base-devel mingw-w64-x86_64-toolchain`
|
||||
2. Add the msys2 ucrt64 bin folder to path `C:\msys64\ucrt64\bin`
|
||||
2. Install make by running `pacman -S make` in msys2 ucrt66
|
||||
3. Set rust to use msys2: by running `rustup toolchain install stable-x86_64-pc-windows-gnu` in Windows Powershell/Cmd
|
||||
4. Add `.cargo/config` file in the project with the following contents:
|
||||
```
|
||||
[target.x86_64-pc-windows-gnu]
|
||||
linker = "C:\\msys64\\ucrt64\\bin\\gcc.exe"
|
||||
ar = "C:\\msys64\\ucrt64\\bin\\ar.exe"
|
||||
```
|
||||
5. Run `cargo run` in Windows Powershell/Cmd
|
||||
|
||||
# Running on Windows using Microsoft Visual Studio C++
|
||||
|
||||
It has been reported that it is also possible to build whisper-rs using Visual Studio C++.
|
||||
|
||||
Make sure you have installed and in the path:
|
||||
|
||||
- Visual Studio C++
|
||||
- cmake
|
||||
|
||||
You may need to clone the git repository instead of using the Cargo package.
|
||||
Loading…
Add table
Add a link
Reference in a new issue