Skip to content

Instantly share code, notes, and snippets.

@YukinoAi
Forked from jDmacD/qbBuild.sh
Last active September 11, 2020 19:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YukinoAi/1f58db68c7ef3235addbf001de44fba8 to your computer and use it in GitHub Desktop.
Save YukinoAi/1f58db68c7ef3235addbf001de44fba8 to your computer and use it in GitHub Desktop.
qbittorrent from scratch for raspberry 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
# https://github.com/qbittorrent/qBittorrent/wiki/Compiling-qBittorrent-on-Raspbian-for-LeMaker-Banana-Pro
sudo su -
cd /home/pi/
apt-get update
apt-get install -y aria2 libboost-dev libboost-system-dev build-essential libqt4-dev qtbase5-dev qttools5-dev-tools geoip-database libboost-system-dev libboost-chrono-dev libboost-random-dev libssl-dev libgeoip-dev pkg-config
#If libtorrent 1.0.11 errors out when compiling, try 1.0.10
#https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_0_10/libtorrent-rasterbar-1.0.10.tar.gz
aria2c https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_0_11/libtorrent-rasterbar-1.0.11.tar.gz
tar -zxvf libtorrent-rasterbar-1.0.11.tar.gz
cd libtorrent-rasterbar-1.0.11
./configure --disable-debug --prefix=/usr --enable-python-binding --with-qt4 --with-libgeoip=system --with-boost-libdir=/usr/lib/arm-linux-gnueabihf && make clean && make
make uninstall
make install-strip
cd ..
git clone https://github.com/qbittorrent/qBittorrent --branch v3_3_x --single-branch
cd qBittorrent
#Bug details: https://github.com/qbittorrent/qBittorrent/issues/2364
leafpad src/gui/mainwindow.cpp
#search for... void MainWindow::trackerAuthenticationRequired(BitTorrent::TorrentHandle *const torrent)
#comment out // or delete every line within the method so it is empty
./configure --prefix=/usr -with-qt4 --with-boost-libdir=/usr/lib/arm-linux-gnueabihf
#configure with the --disable-gui to use qbittorrent-nox instead
#./configure --prefix=/usr --disable-gui -with-qt4 --with-boost-libdir=/usr/lib/arm-linux-gnueabihf
make
make install
#cd ..
#rm libtorrent-rasterbar-1.0.11.tar.gz
#rm -R libtorrent-rasterbar-1.0.11
#rm -R qBittorrent
#More bugs:
#In the profile file, ~/.config/qBittorrent/qBittorrent.conf, the option "General\CloseToTray=false" will bork the GUI if set to true.
#If the GUI stops working, set it back to false manually.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment