whisper.cpp/examples/deprecation-warning
Daniel Bevenius 80dad86b2c
examples : add WHISPER_SDL2 check to deprecation executables (#2911)
This commit adds a check for `WHISPER_SDL2` to the deprecation warning
examples. This is to prevent the examples from being built when
WHISPER_SDL2 is not enabled.

The motivation for this is that currently these deprecation executables
are generate and when run they refer the user to examples with other
names, for example `whisper-command` but unless they have built with
`WHISPER_SDL2` those executable will not be present:
```console
$ ls build/bin/
bench  command  main  quantize  stream  whisper-bench  whisper-cli
whisper-server

$ ./build/bin/command

WARNING: The binary 'command' is deprecated.
 Please use 'whisper-command' instead.
 See https://github.com/ggerganov/whisper.cpp/tree/master/examples/deprecation-warning/README.md for more information.
```
2025-03-20 18:36:02 +01:00
..
CMakeLists.txt examples : add WHISPER_SDL2 check to deprecation executables (#2911) 2025-03-20 18:36:02 +01:00
deprecation-warning.cpp examples : handle "main.exe" deprecation 2024-12-30 13:00:18 +02:00
README.md whisper : rename binaries + fix install (#2648) 2024-12-21 09:43:49 +02:00

Migration notice for binary filenames

Important

[2024 Dec 20] Binaries have been renamed w/ a whisper- prefix. main is now whisper-cli, server is whisper-server, etc (https://github.com/ggerganov/whisper.cpp/pull/2648)

This migration was important, but it is a breaking change that may not always be immediately obvious to users.

Please update all scripts and workflows to use the new binary names.

Old Filename New Filename
main whisper-cli
bench whisper-bench
stream whisper-stream
command whisper-command
server whisper-server
talk-llama whisper-talk-llama