mirror of
https://git.vladimir.cc/vladimir/wdsp.git
synced 2026-08-25 17:27:33 +00:00
Fix missing Windows.h: require full mingw-w64 package, not just compiler
gcc-mingw-w64-x86-64 on Debian/Ubuntu ships only the compiler binary, without Windows API headers — causing fatal error: Windows.h not found. The fix is to install the mingw-w64 meta-package which includes headers, CRT and runtime libraries. Added a check-tools probe that compiles #include <windows.h> and prints a clear error with the correct package name if headers are missing. Updated README with a warning about the incomplete package. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -93,17 +93,19 @@ make clean
|
||||
|
||||
```bash
|
||||
# Arch
|
||||
sudo pacman -S mingw-w64-gcc
|
||||
sudo pacman -S mingw-w64-gcc # тянет mingw-w64-headers автоматически
|
||||
|
||||
# Debian / Ubuntu
|
||||
sudo apt install gcc-mingw-w64-x86-64 binutils-mingw-w64-x86-64
|
||||
# Debian / Ubuntu — нужен мета-пакет mingw-w64, а не только компилятор
|
||||
sudo apt install mingw-w64
|
||||
|
||||
# Fedora
|
||||
sudo dnf install mingw64-gcc mingw64-binutils
|
||||
sudo dnf install mingw64-gcc # тянет mingw64-headers автоматически
|
||||
```
|
||||
|
||||
Также нужен `wget` или `curl`.
|
||||
|
||||
> **Debian/Ubuntu:** пакет `gcc-mingw-w64-x86-64` содержит только компилятор без Windows API заголовков — `Windows.h` не будет найден. Используйте `mingw-w64`.
|
||||
|
||||
### Сборка
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user