Commit Graph

3 Commits

Author SHA1 Message Date
ddf34db2a0 feat: Add GLAD OpenGL loader and NVIDIA GPU forcing
Changes:
- Add GLAD dependency via vcpkg for proper OpenGL function loading
- Force NVIDIA GPU usage with game-style exports (NvOptimusEnablement)
- Create working console version (SecondVoice_Console.exe)
- Add dual executable build (UI + Console versions)
- Update to OpenGL 4.6 Core Profile with GLSL 460
- Add GPU detection and logging
- Fix GLFW header conflicts with GLFW_INCLUDE_NONE

Note: OpenGL shaders still failing to compile despite GLAD integration.
Console version is fully functional for audio capture and translation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-21 15:18:54 +08:00
07b792b2bd fix: Add MinGW build support and compatibility fixes
- Add MinGW compatibility shim for cpp-httplib GetAddrInfoExCancel
- Fix portaudio linking (portaudio_static -> portaudio)
- Disable -Werror for MinGW builds due to httplib incompatibilities
- Add console subsystem flag for MinGW builds
- Add debug logging utilities (Logger.h)
- Add MessageBox debugging for Windows troubleshooting
- Update build scripts with better error handling

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-20 11:43:13 +08:00
94ad6b4a22 feat: Add MinGW support - Build without Visual Studio!
Lightweight Windows build option using MinGW-w64 instead of Visual Studio:

Size Comparison:
- Visual Studio: 10-20 GB install
- MinGW: ~500 MB install (20x smaller!)

New Files:
- setup_mingw.bat: One-click installer for all tools
  - Chocolatey (package manager)
  - MinGW-w64 (GCC compiler)
  - CMake, Ninja, Git
  - vcpkg integration

- build_mingw.bat: Build script for MinGW
  - Auto-detection of GCC
  - Debug/Release modes
  - Clean build support
  - User-friendly error messages

- WINDOWS_MINGW.md: Complete MinGW guide
  - Installation instructions
  - Troubleshooting
  - Performance comparison MSVC vs GCC
  - Distribution guide

CMake Updates:
- Added mingw-debug and mingw-release presets
- GCC compiler flags: -O3 -Wall -Wextra
- Static linking for portable .exe

Documentation:
- Updated WINDOWS_QUICK_START.md with MinGW option
- Comparison table: MinGW vs Visual Studio
- Recommendation: MinGW for most users

Benefits:
- 20x smaller download (500MB vs 10-20GB)
- 5-10 min install vs 30-60 min
- Same performance as MSVC
- Portable standalone .exe
- Perfect for users without Visual Studio

Usage:
1. Run setup_mingw.bat (one time)
2. Restart terminal
3. Run build_mingw.bat --release
4. Done!

Output: build/mingw-release/SecondVoice.exe

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-20 03:42:41 +08:00