Skip to content

Instantly share code, notes, and snippets.

@jDmacD
Last active March 2, 2022 23:16
Show Gist options
  • Save jDmacD/9e38542901b9672728f088abd353a0a1 to your computer and use it in GitHub Desktop.
Save jDmacD/9e38542901b9672728f088abd353a0a1 to your computer and use it in GitHub Desktop.
qbittorrent from scratch for pi
#!/bin/bash
# https://github.com/qbittorrent/qBittorrent/wiki/Setting-up-qBittorrent-on-Ubuntu-server-as-daemon-with-Web-interface-(15.04-and-newer)
# https://github.com/qbittorrent/qBittorrent/wiki/Compiling-qBittorrent-on-Debian-and-Ubuntu#Required_dependencies
cd ~/
sudo apt-get install libboost-dev libboost-system-dev build-essential -y
sudo apt-get install libqt4-dev -y
sudo apt-get install qtbase5-dev qttools5-dev-tools -y
sudo apt-get install geoip-database -y
sudo apt-get install libboost-system-dev libboost-chrono-dev libboost-random-dev libssl-dev libgeoip-dev pkg-config -y
wget https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_0_6/libtorrent-rasterbar-1.0.6.tar.gz
tar -zxvf libtorrent-rasterbar-1.0.6.tar.gz
cd libtorrent-rasterbar-1.0.6
./configure --disable-debug --prefix=/usr --with-libgeoip=system --with-boost-libdir=/usr/lib/arm-linux-gnueabihf && make clean && make
sudo make uninstall
sudo make install-strip
cd ..
git clone https://github.com/qbittorrent/qBittorrent --branch v3_3_x --single-branch
cd qBittorrent
./configure --prefix=/usr --disable-gui --with-boost-libdir=/usr/lib/arm-linux-gnueabihf
make
sudo make install
cd ..
rm libtorrent-rasterbar-1.0.6.tar.gz
rm -R libtorrent-rasterbar-1.0.6
sudo rm -R qBittorrent
@addicted-ai
Copy link

can you post steps for cross compiling???
compiling libtorrent-rasterbar takes hours in raspberry.I tried 1.0.6,1.0.8,1.1.0.But it always failed.(i was trying with python-bind or similar option to make it usable both for qbittorrent & deluge).Even after spending 2 days in compiling libtorrent ,it didn't work.

@pricejt
Copy link

pricejt commented Jan 27, 2018

When i try to install the qbittorrent --branch v4_0_x i am getting an error
checking for QT5 qmake >= 5.5.1... /usr/lib/arm-linux-gnueabihf/qt5/bin/qmake
checking for qt5Svg... no
configure: error: Package requirements (Qt5Svg >= 5.5.1) were not met:

No package 'Qt5Svg' found

Do you know how i could resolve this?

@rursache
Copy link

rursache commented Mar 2, 2022

Updated instructions to build qbittorrent v4 on raspberry pi can be found here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment