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

What's the build process for Windows? #51

Closed
athu16 opened this issue Oct 14, 2022 · 4 comments
Closed

What's the build process for Windows? #51

athu16 opened this issue Oct 14, 2022 · 4 comments
Labels
build Build related issues help wanted Extra attention is needed

Comments

@athu16
Copy link

athu16 commented Oct 14, 2022

I tried running "make" and got this error:

process_begin: CreateProcess(NULL, uname -s, ...) failed.
process_begin: CreateProcess(NULL, uname -p, ...) failed.
process_begin: CreateProcess(NULL, uname -m, ...) failed.
cc  -O3 -std=c11   -Wall -Wextra -Wno-unused-parameter -Wno-unused-function   -c ggml.c
process_begin: CreateProcess(NULL, cc -O3 -std=c11 -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -c ggml.c, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [ggml.o] Error 2

Could someone guide me through building this program on Windows? Are there pre-built binaries available? I have Visual Studio 2022 and MinGW installed.

@DaniruKun
Copy link

Honestly it works just fine under WSL2, just make sure that you have the necessary dependencies like SDL2

@ggerganov ggerganov added help wanted Extra attention is needed build Build related issues labels Oct 15, 2022
@anubhav712
Copy link

anubhav712 commented Oct 15, 2022

I tried running "make" and got this error:

process_begin: CreateProcess(NULL, uname -s, ...) failed.
process_begin: CreateProcess(NULL, uname -p, ...) failed.
process_begin: CreateProcess(NULL, uname -m, ...) failed.
cc  -O3 -std=c11   -Wall -Wextra -Wno-unused-parameter -Wno-unused-function   -c ggml.c
process_begin: CreateProcess(NULL, cc -O3 -std=c11 -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -c ggml.c, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [ggml.o] Error 2

Could someone guide me through building this program on Windows? Are there pre-built binaries available? I have Visual Studio 2022 and MinGW installed.

You need to make a small change in "MakeFIle" ggml.c is not generating .o file due to windows
change the line 58 starting to GCC
and it should do fine . able to run now
image

and run the file like this

main.exe -m models\ggml-small.bin -f output.wav -osrt

@athu16
Copy link
Author

athu16 commented Oct 15, 2022

Thanks! I got past that point, but now there's another error, much longer.
image
I tried adding -D_POSIX_C_SOURCE=199309L to the make command, but it didn't help.
Is there a pre-built binary I could use?

@anubhav712
Copy link

anubhav712 commented Oct 15, 2022

Yes , Choose the binary according to your system from official Git link https://github.com/niXman/mingw-builds-binaries/releases .

This is a thread issue ..

bug perhaps can now be closed

kultivator-consulting pushed a commit to KultivatorConsulting/whisper.cpp that referenced this issue Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build related issues help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants