Prerequisites
Required Software
- Visual Studio 2022 (17.2.3 or later) or Build Tools for Visual Studio
- Git for Windows
- Windows SDK (latest version)
Dolphin targets the latest MSVC shipped with Visual Studio or Build Tools. Other compilers might work but are not tested or recommended.
Compiler Requirements
- MSVC: Version 19.32 or later (Visual Studio 2022 17.2.3+)
- C++ Standard: C++23 support required
Step-by-Step Build Instructions
start Source/dolphin-emu.slnAdvanced Build Options
Command-Line Builds
You can build from the command line using MSBuild:/m flag enables parallel compilation for faster builds.
Clean Builds
To perform a clean build (remove all previous build artifacts):Building Specific Projects
To build only specific components:- Right-click the project in Solution Explorer
- Select Build
- Dolphin: Main Qt GUI application
- DolphinNoGUI: Command-line variant
- DolphinTool: CLI utility for disc image management
Architecture Support
x64 (x86-64)
- Most common architecture
- Full feature support
- Best performance and compatibility
ARM64
- For Windows on ARM devices
- Surface Pro X, ARM-based laptops
- OpenGL backend not available on Windows ARM64
Compiler Flags and Options
Dolphin’s Windows build uses the following MSVC options:Optimization Flags
/Gy- Enable function-level linking/Oi- Generate intrinsic functions/GS-- Disable buffer security checks (Release only)/Zc:inline- Remove unreferenced inline functions/data/OPT:REF /OPT:ICF- Eliminate dead code and data (linker)
Standards Compliance
/std:c++23- C++23 standard/Zc:__cplusplus,enumTypes,externConstexpr,preprocessor,templateScope,throwingNew- Strict conformance/volatile:iso- ISO C++ volatile semantics/fp:precise- Precise floating-point model
Code Quality
/W4- Warning level 4 (highest)/WX- Treat warnings as errors/GR-- Disable RTTI/EHsc- Exception handling model
Troubleshooting
Missing Windows SDK
Error: Cannot find Windows SDK Solution: Install the latest Windows SDK through Visual Studio Installer:- Open Visual Studio Installer
- Click Modify on your Visual Studio installation
- Under Individual Components, select the latest Windows SDK
- Click Modify to install
Submodules Not Initialized
Error: Missing header files or libraries from Externals Solution: Initialize submodules:Build Errors After Git Pull
Solution: Perform a clean build:- Close Visual Studio
- Delete the
Binary/directory - Run
git submodule update --init --recursive - Reopen the solution and build
Out of Memory During Build
Solution: Reduce parallel compilation:- In Visual Studio: Tools > Options > Projects and Solutions > Build and Run
- Set Maximum number of parallel project builds to a lower value (e.g., 2-4)
Linker Errors
Error: LNK errors about missing symbols Solution:- Ensure submodules are initialized
- Try a clean build
- Verify you’re using a supported MSVC version (19.32+)
Next Steps
After building:- The executable is in
Binary/x64/orBinary/ARM64/ - Copy the
Data/Sysfolder toBinary/x64/Sysif it’s not already present - Run
Dolphin.exeto start the emulator
For development builds, Visual Studio will automatically copy necessary files to the output directory.