Requirements
Windows 10 or later is required. Xenia requires 64-bit Windows.
Required Software
-
Visual Studio 2022
- Community, Professional, or Enterprise edition
- Install the “Desktop development with C++” workload
-
Windows 11 SDK
- Version 10.0.22000.0 or newer
- Installed via Visual Studio Installer
-
Python 3.9+ (64-bit)
- Important: Ensure Python is added to PATH during installation
- Verify it’s 64-bit by running:
python -c "import sys; print(sys.maxsize > 2**32)"
-
CMake 3.10+
- Can be installed via Visual Studio (C++ CMake tools for Windows)
- Or download from cmake.org
- Git for Windows
Build Instructions
Run Initial Setup
This will initialize submodules and generate Visual Studio project files:The setup command performs:
- Git submodule initialization and update
- Runs premake to generate
build/xenia.sln - Generates
build/version.hwith git version info
Build Configurations
Xenia supports three build configurations:Debug
Full debugging symbols, no optimizations. Best for development.
Checked
Optimized build with debug checks enabled.
Release
Fully optimized build for production use.
Visual Studio Debugging
Configure Debug Settings
- Right-click the xenia-app project in Solution Explorer
- Select Properties
- Navigate to Configuration Properties → Debugging
- Set the following:
| Property | Value |
|---|---|
| Command | $(SolutionDir)$(TargetPath) |
| Working Directory | $(SolutionDir)..\.. |
| Command Arguments | --log_file=stdout game.xex (or other flags) |
Useful Debug Flags
Common Build Commands
Updating Your Build
When pulling latest changes from the repository:Use the pull command
- Switches to the canary_experimental branch
- Pulls latest changes with rebase
- Updates git submodules
- Runs premake to update project files
Build Output Location
Built binaries are located in:<Configuration> is:
Debug/- Debug buildsChecked/- Checked buildsRelease/- Release builds
Troubleshooting
Visual Studio not found
Visual Studio not found
Ensure Visual Studio 2022 (version 17.x) is installed. The build script uses
vswhere.exe to locate Visual Studio.If you have multiple versions installed, the latest version will be used.Windows SDK version mismatch
Windows SDK version mismatch
Install Windows 11 SDK version 10.0.22000.0 or newer via Visual Studio Installer:
- Open Visual Studio Installer
- Click “Modify” on your VS 2022 installation
- Go to “Individual components”
- Search for “Windows 11 SDK”
- Select version 10.0.22000.0 or newer
Python 32-bit vs 64-bit error
Python 32-bit vs 64-bit error
Xenia requires 64-bit Python. Verify with:If it shows 32-bit, uninstall and reinstall Python 64-bit.
MSBuild errors
MSBuild errors
If you encounter MSBuild errors, try:
- Run
xb premaketo regenerate project files - Clean the build:
xb clean - Rebuild:
xb build --force
Git submodule failures
Git submodule failures
If submodules fail to update:Or delete the
third_party directory and run xb setup again.Next Steps
xb Build Script
Learn about all available xb commands
Code Formatting
Format your code with clang-format
