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.

bash ~/qbittorrent-nox-static.sh -h

ENV settings

The script has some env settings that can trigger certain behaviour.

You can export these before you run the script to set them. There is not specific benefit to using these over the flags and switches.

Build variableDefault if unsetOptionsexample usage
libtorrent_version2.01.2 2.0export libtorrent_version=2.0
qbt_qt_version6.35.12 5.15 6.3 6.3.1export qbt_qt_version=6.3
qbt_build_toolqmakecmakeexport qbt_build_tool=cmake
qbt_cross_nameempty = unset (default to OS gcc)x86_64 aarch64 armv7 armhfexport qbt_cross_name=aarch64
qbt_patches_urluserdocs/qbittorrent-nox-staticusername/repoexport qbt_patches_url=userdocs/qbittorrent-nox-static
qbt_workflow_filesempty = unset (defaults to no)yes noexport qbt_workflow_files=yes
qbt_libtorrent_master_jamfileempty = unset (defaults to no)yes noexport qbt_libtorrent_master_jamfile=yes
qbt_optimise_stripempty = unset (defaults to no)yes noexport qbt_optimise_strip=yes
qbt_build_debugempty = unset (defaults to no)yes noexport qbt_build_debug=yes

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.

bash ~/qbittorrent-nox-static.sh all

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

You can build modules individually, subject to this warning.

bash ~/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

```bash
bash ~/qbittorrent-nox-static.sh all -b "/opt"