nodejs-whisper icon indicating copy to clipboard operation
nodejs-whisper copied to clipboard

Windows Fail to build on whisper download

Open Melonbwead opened this issue 1 year ago • 1 comments

I've already got cmake and gcc installed on my window environment, struggle with this vague error during make step:

[Nodejs-whisper] Do you want to use CUDA for compilation? (y/n)
(ENTER for n):
[Nodejs-whisper] Not using CUDA for compilation.
cmake -B build
Makefile:7: recipe for target 'build' failed
process_begin: CreateProcess(NULL, cmake -B build, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: *** [build] Error 2

I have no idea what file it's suppose to be looking for there 🤷

Melonbwead avatar Jan 29 '25 17:01 Melonbwead

Looks like you are using mingw32-make,but as README said, should use MinGW-w64 May I ask how did you install cmake and gcc? For me, I [Install MSYS2 from https://www.msys2.org And then I use MSYS2 CLANG64

pacman -S msys/make

to install make.

also I install cmake from https://cmake.org/

After I reload your computer And it wroks.

my window environment: window 11 24H2

Maybe you just forget reload your computer?

starNGC2237 avatar Feb 24 '25 17:02 starNGC2237

hey @Melonbwead this Windows build failure has been fixed in the latest version. the issue was that we were using make/mingw32-make which doesn't work reliably on Windows, we've now migrated to CMake.

Just update to npm install nodejs-whisper@latest and try again.

ChetanXpro avatar May 25 '25 07:05 ChetanXpro

I gave up using windows in the end 😅 , Can't help test this any more 🙏

Melonbwead avatar May 27 '25 15:05 Melonbwead