Building on Fedora

Install required dependencies

dnf install \
    g++ \
    cmake \
    boost-devel \
    zlib-devel \
    qt6-qt5compat-devel \
    qt6-qtbase-devel \
    qt6-qtwebengine-devel \
    qt6-qtpdf-devel \
    libvorbis-devel \
    libsndfile-devel

Compile

cmake .
make

Building on Windows

Install Qt6 using the official online installer. Install the Qt5Compat, Pdf and WebEngine modules.

Install Visual Studio 2022 (without VCPKG).

Install VCPKG from the official website and use it to build all the dependencies except Qt6:

vcpkg install fmt libogg libvorbis libsndfile gtest zlib boost

Use the “x64 Native Tools Command Prompt for VS 2022” shortcut to start the terminal, then create a build directory and configure lsd2dsl using cmake (change the paths as necessary):

cmake -DCMAKE_TOOLCHAIN_FILE=C:/install/vcpkg/scripts/buildsystems/vcpkg.cmake -DQt6_ROOT=C:/Qt/6.6.1/msvc2019_64 -DENABLE_DUDEN=1 ..\lsd2dsl\

Note that setting ENABLE_DUDEN to 0 will disable Duden support, which in turn will make the installation package much smaller, as it won’t need to contain the Qt6 WebEngine.

Build the installation package

msbuild PACKAGE.vcxproj /property:Configuration=Release