whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

whisper-stream.exe isn't working (win10)

Open ap653998 opened this issue 9 months ago • 1 comments
trafficstars

Hello,

I'm stuck, so I need some help a little bit. I've compiled on windows 10, using TDM64 (gcc compiler).

Btw, I took me a while to force CMake to ifnore Visual Studio generator.

Updated CMakeLists.txt

set(CMAKE_GENERATOR "Unix Makefiles")   // this seems to be ignored anyhow
set(CMAKE_CXX_COMPILER "C:/TDM-GCC-64/bin/g++.exe")
set(CMAKE_C_COMPILER "C:/TDM-GCC-64/bin/gcc.exe")

then

cmake -B build -DWHISPER_SDL2=ON -G "Unix Makefiles" --fresh
cmake --build build --config Release

all good so far

[ 66%] Building CXX object examples/talk-llama/CMakeFiles/whisper-talk-llama.dir/llama-impl.cpp.obj
[ 68%] Building CXX object examples/talk-llama/CMakeFiles/whisper-talk-llama.dir/llama-kv-cache.cpp.obj
[ 69%] Building CXX object examples/talk-llama/CMakeFiles/whisper-talk-llama.dir/llama-mmap.cpp.obj
[ 70%] Building CXX object examples/talk-llama/CMakeFiles/whisper-talk-llama.dir/llama-model-loader.cpp.obj
[ 72%] Building CXX object examples/talk-llama/CMakeFiles/whisper-talk-llama.dir/llama-model.cpp.obj
[ 73%] Building CXX object examples/talk-llama/CMakeFiles/whisper-talk-llama.dir/llama-quant.cpp.obj
[ 74%] Building CXX object examples/talk-llama/CMakeFiles/whisper-talk-llama.dir/llama-sampling.cpp.obj
[ 76%] Building CXX object examples/talk-llama/CMakeFiles/whisper-talk-llama.dir/llama-vocab.cpp.obj
[ 77%] Building CXX object examples/talk-llama/CMakeFiles/whisper-talk-llama.dir/unicode.cpp.obj
[ 78%] Building CXX object examples/talk-llama/CMakeFiles/whisper-talk-llama.dir/unicode-data.cpp.obj
[ 80%] Linking CXX executable ../../bin/whisper-talk-llama.exe
[ 80%] Built target whisper-talk-llama
[ 81%] Building CXX object examples/lsp/CMakeFiles/lsp.dir/lsp.cpp.obj
[ 82%] Linking CXX executable ../../bin/lsp.exe
[ 82%] Built target lsp
[ 84%] Building CXX object examples/deprecation-warning/CMakeFiles/main.dir/deprecation-warning.cpp.obj
[ 85%] Linking CXX executable ../../bin/main.exe
[ 85%] Built target main
[ 86%] Building CXX object examples/deprecation-warning/CMakeFiles/bench.dir/deprecation-warning.cpp.obj
[ 88%] Linking CXX executable ../../bin/bench.exe
[ 88%] Built target bench
[ 89%] Building CXX object examples/deprecation-warning/CMakeFiles/stream.dir/deprecation-warning.cpp.obj
[ 90%] Linking CXX executable ../../bin/stream.exe
[ 90%] Built target stream
[ 92%] Building CXX object examples/deprecation-warning/CMakeFiles/command.dir/deprecation-warning.cpp.obj
[ 93%] Linking CXX executable ../../bin/command.exe
[ 93%] Built target command
[ 94%] Building CXX object examples/wchess/libwchess/CMakeFiles/wchess-core.dir/WChess.cpp.obj
[ 96%] Building CXX object examples/wchess/libwchess/CMakeFiles/wchess-core.dir/Chessboard.cpp.obj
[ 97%] Linking CXX static library libwchess-core.a
[ 97%] Built target wchess-core
[ 98%] Building CXX object examples/wchess/wchess.cmd/CMakeFiles/wchess.dir/wchess.cmd.cpp.obj
[100%] Linking CXX executable ../../../bin/wchess.exe
[100%] Built target wchess

but still, binary whisper-stream.exe does absolutely nothing (no error messages, nothing), doesn't matter what arguments I provide. whisper-cli appears to work

.\whisper-cli.exe
error: no input files specified

usage: W:\projects\AI\whisper.cpp\build\bin\whisper-cli.exe [options] file0.wav file1.wav ...

options:
  -h,        --help              [default] show this help message and exit
  -t N,      --threads N         [4      ] number of threads to use during computation
  -p N,      --processors N      [1      ] number of processors to use during computation
  -ot N,     --offset-t N        [0      ] time offset in milliseconds
  -on N,     --offset-n N        [0      ] segment index offset
  -d  N,     --duration N        [0      ] duration of au
...

thanks for hints!

ap653998 avatar Feb 10 '25 07:02 ap653998

You need to copy SDL2.dll to W:\projects\AI\whisper.cpp\build\bin\, or add it to PATH.

foldl avatar Feb 19 '25 06:02 foldl