Skip to content

Commit

Permalink
README : Update README in stream to clarify where to compile from (Is…
Browse files Browse the repository at this point in the history
…sue #1400)

* Clarify doc about where to compile from

* Update examples/stream/README.md

* Update examples/stream/README.md

* Update README.md

---------

Co-authored-by: AI @ Home <>
Co-authored-by: bobqianic <129547291+bobqianic@users.noreply.github.com>
  • Loading branch information
ai-at-home and bobqianic authored Oct 29, 2023
1 parent 54c978c commit dfe4bc6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/stream/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ brew install sdl2
make stream
```

Ensure you are at the root of the repo when running `make stream`. Not within the `examples/stream` dir
as the libraries needed like `common-sdl.h` are located within `examples`. Attempting to compile within
`examples/steam` means your compiler cannot find them and it gives an error it cannot find the file.

```bash
whisper.cpp/examples/stream$ make stream
g++ stream.cpp -o stream
stream.cpp:6:10: fatal error: common/sdl.h: No such file or directory
6 | #include "common/sdl.h"
| ^~~~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: stream] Error 1
```

## Web version

This tool can also run in the browser: [examples/stream.wasm](/examples/stream.wasm)

0 comments on commit dfe4bc6

Please sign in to comment.