mirror of
https://github.com/jlengrand/whatsapp-mcp.git
synced 2026-03-10 08:51:23 +00:00
docs: add Windows compatibility instructions to README
This commit is contained in:
21
README.md
21
README.md
@@ -81,6 +81,27 @@ Here's an example of what you can do when it's connected to Claude.
|
|||||||
|
|
||||||
Or restart Cursor.
|
Or restart Cursor.
|
||||||
|
|
||||||
|
### Windows Compatibility
|
||||||
|
|
||||||
|
If you're running this project on Windows, be aware that `go-sqlite3` requires **CGO to be enabled** in order to compile and work properly. By default, **CGO is disabled on Windows**, so you need to explicitly enable it and have a C compiler installed.
|
||||||
|
|
||||||
|
#### Steps to get it working:
|
||||||
|
|
||||||
|
1. **Install a C compiler**
|
||||||
|
We recommend using [MSYS2](https://www.msys2.org/) to install a C compiler for Windows. After installing MSYS2, make sure to add the `ucrt64\bin` folder to your `PATH`.
|
||||||
|
→ A step-by-step guide is available [here](https://code.visualstudio.com/docs/cpp/config-mingw).
|
||||||
|
|
||||||
|
2. **Enable CGO and run the app**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd whatsapp-bridge
|
||||||
|
go env -w CGO_ENABLED=1
|
||||||
|
go run main.go
|
||||||
|
```
|
||||||
|
|
||||||
|
Without this setup, you'll likely run into errors like:
|
||||||
|
> `Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work.`
|
||||||
|
|
||||||
## Architecture Overview
|
## Architecture Overview
|
||||||
|
|
||||||
This application consists of two main components:
|
This application consists of two main components:
|
||||||
|
|||||||
Reference in New Issue
Block a user