Home

Awesome

:hammer_and_wrench: Strawberry - Build with Visual Studio 2022

This guide uses Visual Studio 2022 to build Strawberry Music Player as well as required dependencies.

These instructions are provided as-is, they are primarily intended for developers working on Strawberry on Windows.

We do not offer support to users for building Strawberry on Windows.

Build tools (Git, CMake, Meson, Perl, Python, etc) versions are not regulary updated, so make sure you bump the versions in versions.bat before you run install.bat.

Requirements

Windows setup

Manual installation on Windows

Download and install manually:

Clone repositories and download tools/dependencies

Open a Command Prompt and type:

mkdir C:\data\projects\strawberry
cd C:\data\projects\strawberry
git clone https://github.com/strawberrymusicplayer/strawberry.git
git clone https://github.com/strawberrymusicplayer/strawberry-msvc.git
cd strawberry-msvc
.\download.bat

Installation

Install manually from C:\data\projects\strawberry\msvc_\downloads:

Configure PATH environment variable

Delete pkg-config files to prevent conflicts with Strawberry's own pkg-config:

Windows Settings | System | About | Advanced system settings | Tab Advanced | Environment Variables:

Meson installation

Building with Meson 1.6.0 installation results in build issues meson: error: unrecognized arguments:.

A temporary solution is to remove Meson via Windows Settings | Apps or remove programs. Then install Meson via Python PIP system wide. Start | x64 Native Tools Command Prompt for VS 2022 and type:

pip install meson

Optional: Prebuilt binary dependencies

Prebuilt MSVC binaries can be optionally used to speed-up the build process. When this step is skipped, all libraries and dependencies are build from source.

To use prebuilds, download the following tar.xz files from Github strawberry-msvc-dependencies/releases:

Build Strawberry from source including dependencies

cd C:\data\projects\strawberry\strawberry-msvc

For debug build:

.\build.bat

For release build:

.\build.bat release

Strawberry and Windows installer executables are generated in:

Setting up Strawberry for development in Visual Studio 2022

Optional Qt Visual Studio Tools can be installed via the toolbar Extensions | Manage Extensions and search for Qt Visual Studio Tools. Then click Install.

Debug build:

Release build:

Set breakpoint and press F5 to start debugging and use F10 to step into and F11 to step over.