This is a mish-mash of instructions from:
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.
Run commands as root
.
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
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 ..
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 ..
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