Skip to content

ianrastall/StockfishCompiler

Repository files navigation

Stockfish Compiler

A WPF application for compiling Stockfish chess engine with automatic CPU architecture detection.

Features

  • Automatic compiler detection (MSYS2, MinGW, Clang)
  • CPU architecture detection for optimal performance
  • Download Stockfish source (latest stable release or master branch)
  • Profile-guided optimization build
  • Real-time build output and progress
  • Dark-themed UI

Requirements

  • Windows 10/11 with .NET 8 Runtime
  • MSYS2 with MinGW-w64 or Clang installed

Installation

Install MSYS2

  1. Download and install MSYS2 from https://www.msys2.org/
  2. Open MSYS2 MSYS terminal and run:
    pacman -Syu
    pacman -S mingw-w64-x86_64-gcc make

Run StockfishCompiler

  1. Extract the release to a folder
  2. Run StockfishCompiler.exe

Usage

  1. Compiler Setup Tab

    • Click "Detect Compilers" to find installed compilers
    • Click "Detect Optimal Architecture" to auto-select best CPU architecture
  2. Build Configuration Tab

    • Adjust parallel jobs (defaults to your CPU core count)
    • Set output directory where compiled Stockfish will be saved
    • Choose which Stockfish source to download (latest stable release or the master branch)
    • Choose build options (download network, strip executable)
  3. Compilation Tab

    • Click "Start Build" to begin compilation
    • View real-time build output
    • Cancel build if needed

Logs

Application logs are saved to:

%LOCALAPPDATA%\StockfishCompiler\logs\app-YYYY-MM-DD.log

You can open the logs folder directly from File Explorer by pasting the path above into the address bar.

License

MIT License - see LICENSE file for details

Credits

About

A GUI for automating the process of compiling Stockfish

Topics

Resources

Stars

Watchers

Forks

Languages