Skip to content

Instantly share code, notes, and snippets.

@danferns
Created July 31, 2024 08:43
Show Gist options
  • Select an option

  • Save danferns/5e1b8e8fdc1a12714c0927550f9780a8 to your computer and use it in GitHub Desktop.

Select an option

Save danferns/5e1b8e8fdc1a12714c0927550f9780a8 to your computer and use it in GitHub Desktop.
How to build Mixxx on Windows

Prerequisites

  1. Open x64 Native Tools Command Prompt for VS 2019
  2. cd into the Mixxx repo's root directory.

Initial Setup

Download and setup the build environment:

Warning

Do NOT skip this step, even if you have already done it before in the same folder.

tools\windows_buildenv.bat

Then setup the build folder:

mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=C:\path\to\mixxx\buildenv\mixxx-deps-2.5-x64-windows-06fe9b5\scripts\buildsystems\vcpkg.cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
# build for the first time
cmake --build .
  • -DCMAKE_BUILD_TYPE May have these values
    • Debug
    • Release
    • RelWithDebInfo
  • -DCMAKE_EXPORT_COMPILE_COMMANDS=ON generates compile_commands.json for Clang LSP server. (only needed for development)

Rebuilding

cd build
cmake --build .

Or, for a clean build:

cmake --build . --clean-first

Sources and Additional Info

Mixxx Wiki: Compiling on Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment