Skip to content

Instantly share code, notes, and snippets.

@jtmoon79
Last active January 25, 2022 03:39
Show Gist options
  • Save jtmoon79/ae3352b5e8dc6b25364aeb682e02840e to your computer and use it in GitHub Desktop.
Save jtmoon79/ae3352b5e8dc6b25364aeb682e02840e to your computer and use it in GitHub Desktop.

Build qbittorrent-nox on Raspbian or DietPi

This is a mish-mash of instructions from:

Versions used

Using Debian 9 Stretch.

Recent versions of qbittorrent requires qmake version >= 5.9.0. Debian 9 has qmake version 5.7.1. I used older version of qbittorrent 4.1.9.1 and libtorrent 1.2.2.

Build and Install steps

Run commands as root.

Install required packages

apt install gcc \
            g++  \
            build-essential \
            pkg-config \
            automake \
            libtool \
            libc6 \
            libc6-dev \
            libboost-dev \
            libboost-system-dev \
            libboost-chrono-dev \
            libboost-random-dev \
            libssl-dev \
            qtbase5-dev \
            qt5-default \
            qttools5-dev-tools \
            libqt5svg5-dev \
            zlib1g-dev \
            gawk

Install libiconv

wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.16.tar.gz
gunzip libiconv-1.16.tar.gz
tar -xvf libiconv-1.16.tar
./configure --prefix=/usr/local/libiconv
cd .. 

Install libtorrent

wget https://github.com/arvidn/libtorrent/archive/libtorrent_1_2_2.tar.gz
tar -xvf libtorrent_1_2_2.tar.gz
cd libtorrent-libtorrent_1_2_2/
# ./autotool.sh
./configure --disable-debug --enable-encryption --with-boost-libdir=/usr/lib/arm-linux-gnueabihf CXXFLAGS="-std=c++14" --with-libiconv --with-libiconv-prefix=/usr/local/libiconv
make -j1
make install
make uninstall
make install-strip
cd ..

Install qbittorrent-nox

wget https://github.com/qbittorrent/qBittorrent/archive/release-4.1.9.1.zip
unzip release-4.1.9.1.zip
cd qBittorrent-release-4.1.9.1/
./configure --prefix=/usr/local --disable-gui --enable-systemd --with-boost-libdir=/usr/lib/arm-linux-gnueabihf
make -j1
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment