Skip to content

Build Help

Once the script has successfully configured the platform you can execute the help switch to see how it works and what options you have available to you.

./qbittorrent-nox-static.sh -h

ENV settings

The script has some env settings that can trigger certain behaviour without the need to pass flags to the script.

You can export these before you run the script to set them. The can be used for docker builds or local builds and work in the .qbt_env file.

Build variableDefault if unsetOptionsexample usage
qbt_libtorrent_version2.01.2 2.0qbt_libtorrent_version="2.0"
qbt_qt_version65.12 5.15 6.3 6.3.1qbt_qt_version="6"
qbt_build_toolcmakecmake qmakeqbt_build_tool="cmake"
qbt_cross_nameempty = unset (default to OS gcc)See Cross arch options belowqbt_cross_name="aarch64"
qbt_patches_urlusername/repousername/repoqbt_patches_url="userdocs/qbittorrent-nox-static"
qbt_skip_icuyesyes noqbt_skip_icu="yes"
qbt_boost_taglatest github stable release or tagAny valid git tagqbt_boost_tag="boost-1.86.0"
qbt_libtorrent_taglatest github stable release or tagAny valid git tagqbt_libtorrent_tag="v2.0.10"
qbt_qt_taglatest github stable release or tagAny valid git tagqbt_qt_tag="v6.8.0"
qbt_qbittorrent_taglatest github stable release or tagAny valid git tagqbt_qbittorrent_tag="release-5.0.1"
qbt_libtorrent_master_jamfilenoyes noqbt_libtorrent_master_jamfile="no"
qbt_workflow_filesnoyes noqbt_workflow_files="no"
qbt_workflow_artifactsnoyes noqbt_workflow_artifacts="no"
qbt_cache_dirempty = unsetPath: relative or fullqbt_cache_dir=""
qbt_optimise_stripyesyes noqbt_optimise_strip="yes"
qbt_build_debugnoyes noqbt_build_debug="no"
qbt_standard2014 17 20 23qbt_standard="20"
qbt_static_ishnoyes noqbt_static_ish="no"
Cross arch options

armel armhf armv7 aarch64

x86_64 x86

s390x

powerpc ppc64el

mips mipsel mips64 mips64el

riscv64

Switches and flags summarised

All switches and flags have a supporting help option that will provide dynamic content where applicable.

For example, taking the -h-bs switch as an example, it will show different results based on the preceding switches provided:

Here is the help description for this flag:
Creates dirs in this structure: ~/qbt-build/patches/APPNAME/TAG/patch
Add your patches there, for example.
~/qbt-build/patches/libtorrent/1.2.18/patch
~/qbt-build/patches/qbittorrent/4.5.0/patch

Build - default profile

Install all default modules (ICU is skipped) and build qbittorrent-nox to the default build directory qbt-build/compelted.

./qbittorrent-nox-static.sh all

Build - modules (optional and mostly for debugging and testing)

You can build modules individually, subject to this warning.

./qbittorrent-nox-static.sh module

Here are the list of supported modules:

bison (Debian based only)
gawk (Debian based only)
glibc (Debian based only)
zlib (default)
iconv (default)
icu (default)
openssl (default)
boost (default)
double_conversion (default for Qt6 on a modern OS - Bullseye / Jammy)
qtbase (default)
qttools (default)
libtorrent (default)
qbittorrent (default)

Build - paths

By default the script will built to a hard coded path defined by the scripts $install_dir variable as to avoid installing files to a server and causing conflicts.

qbt-build

You can modify this dynamically with the -b argument

./qbittorrent-nox-static.sh all -b "/opt"