docs: move uSockets build instructions to usockets/README.md
This commit is contained in:
@@ -78,40 +78,7 @@ v -enable-globals -cc gcc -ldflags "-ldbghelp" -o app.exe your_app.v
|
||||
- On Windows, you **must** use `-cc gcc` because V's default compiler (tcc) does not support MinGW `.a` static library format
|
||||
- The `-ldflags "-ldbghelp"` is required on Windows for libuv linking
|
||||
|
||||
#### Windows Prerequisites
|
||||
|
||||
To use uSockets backend on Windows, you need:
|
||||
|
||||
1. **GCC (MinGW-w64)** - C compiler (required, tcc is not supported)
|
||||
```powershell
|
||||
# Install via Scoop (recommended)
|
||||
scoop install mingw
|
||||
|
||||
# Or via Chocolatey
|
||||
choco install mingw
|
||||
|
||||
# Or download w64devkit from: https://github.com/skeeto/w64devkit/releases
|
||||
```
|
||||
|
||||
2. **V Compiler** - Version 0.4.x or later
|
||||
```powershell
|
||||
# Install via Scoop
|
||||
scoop install vlang
|
||||
|
||||
# Or download from: https://vlang.io/
|
||||
```
|
||||
|
||||
3. **Verify Installation**
|
||||
```powershell
|
||||
gcc --version # Should show MinGW-w64 GCC
|
||||
v version # Should show V 0.4.x
|
||||
```
|
||||
|
||||
The uSockets library and libuv are pre-compiled and included in the `usockets/lib/{platform}/` directory:
|
||||
- `usockets/lib/windows/` - Windows x64
|
||||
- `usockets/lib/linux/` - Linux x64
|
||||
- `usockets/lib/macos-arm64/` - macOS Apple Silicon
|
||||
- `usockets/lib/macos-x64/` - macOS Intel
|
||||
The uSockets library and libuv are pre-compiled and included in the `usockets/lib/{platform}/` directory. See [usockets/README.md](usockets/README.md) for prerequisites, building from source, and detailed configuration options.
|
||||
|
||||
### Using uSockets Backend
|
||||
|
||||
|
||||
Reference in New Issue
Block a user