Custom version based on the v5_1_x branch of qBittorrent.
Before applying patches, make sure the qbittorrent submodule is initialized.
You can then run the appropriate script depending on your operating system:
patch.batpatch.sh- vcpkg
- CMake
- qBittorrent dependencies via vcpkg (see official instructions)
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
.\bootstrap-vcpkg.bat
vcpkg install boost libtorrent qt6
# Note: Qt installation might take several hours
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=vcpkg\installed\x64-windows
cmake --build build --config ReleaseIf everything completes successfully, the final executable will be located under /build/Release.
To make the application portable across different Windows systems, you need to bundle the required Qt platform files.
-
Locate
windeployqt.exe
It’s usually under:vcpkg\installed\x64-windows\tools\Qt6\bin -
Run the deployment tool with your executable as a parameter:
"vcpkg\installed\x64-windows\tools\Qt6\bin\windeployqt.exe" qbittorrent.exe
This will generate the necessary folders and .dll files required for the application to run on any Windows machine.