Skip to content

Instantly share code, notes, and snippets.

View Kolcha's full-sized avatar
🙁
very sad

Nick Korotysh Kolcha

🙁
very sad
View GitHub Profile
@Kolcha
Kolcha / build_qbt_deb_linux.md
Last active October 12, 2024 22:52
how to build qBittorrent on Debian-based Linux (written in October 2023)

Building qBittorrent in Debian-based Linux

Not so long time ago qBittorrent (master branch) has started to require Qt 6.5, but unfortunately, it is available only in few Linux distros nowadays. Most Debian- or Ubuntu-based system don't have suitable Qt version in their repositories, so to get the latest qBittorrent sources to build, you have to build Qt. In general, building Qt in Linux environment is not a complex task, but what is complex in this process is installing the right dependencies. Qt has a lot of external dependencies (especially for widgets part), and most of them are optional, so you have to know what you need from Qt and what dependency to install to get that feature. And this may be hard, and why many users who tried to build Qt faced various issues (not during Qt build process, only afterward, when tried to use self-compiled Qt).

This guide is focused mostly on Qt build process (more correctly e

@Kolcha
Kolcha / build_qbt_dmg.sh
Last active October 20, 2024 00:04
script to build qBittorrent master branch with Qt6 on macOS, no Homebrew required! NO LONGER MAINTAINED!!! see comments to find forks.
#!/bin/zsh
# standalone script to build qBittorent for macOS (including Apple Silicon based Macs)
#
# only Xcode must be installed (Xcode 12 is required to produce arm64 binaries)
# all required dependencies and tools are automatically downloaded and used only from script's working directory
# (can be specified), nothing is installed into the system
# working directory is removed on completion if it was not specified
#
# by default script produces binaries for the architecture it was launched on, but cross-compilation is also supported
# in both directions, i.e. x86_64 -> arm64 and arm64 -> x86_64