Compiling qBittorrent on DietPi.

Guides and tutorials for various stuff. Posted by DietPi users.
Post Reply
KamikazeePL
Posts: 14
Joined: Sat Nov 21, 2020 5:57 pm

Compiling qBittorrent on DietPi.

Post by KamikazeePL »

https://github.com/qbittorrent/qBittorr ... and-DietPi

I tested it works on Raspberry Pi 4 (4 GB) it took 30-45 minutes to compile it.
qBittorrent works without any problems.

Some additions: use GIT method

Code: Select all

sudo mkdir /mnt/temp
cd /mnt/temp

sudo apt install build-essential pkg-config automake libtool libc6-dev libboost-dev libboost-system-dev libboost-chrono-dev libboost-random-dev libssl-dev qtbase5-dev qttools5-dev-tools libqt5svg5-dev zlib1g-dev

sudo apt install git

git clone https://github.com/arvidn/libtorrent.git
cd libtorrent
# select the latest release tag
git checkout $(git tag | grep v1\.2.\. | sort -t _ -n -k 3 | tail -n 1)

./autotool.sh
./configure --disable-debug --enable-encryption --with-boost-libdir=/usr/lib/arm-linux-gnueabihf --with-libiconv CXXFLAGS="-std=c++17"
make -j$(nproc)
sudo make install

sudo echo "/usr/local/lib">/etc/ld.so.conf.d/libtorrent.conf
sudo ldconfig

sudo export LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}

git clone -b v4_3_x https://github.com/qbittorrent/qBittorrent
cd qBittorrent

./configure --disable-gui --enable-systemd --with-boost-libdir=/usr/lib/arm-linux-gnueabihf CXXFLAGS="-std=c++17"
make -j$(nproc)
sudo make install
Above code was copied from https://github.com/qbittorrent/qBittorr ... and-DietPi

After 30 minutes (in my case) try run /usr/bin/qbittorrent-nox
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Compiling qBittorrent on DietPi.

Post by Joulinar »

many thanks for sharing
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2987
Joined: Sat Nov 18, 2017 6:21 pm

Re: Compiling qBittorrent on DietPi.

Post by MichaIng »

Awesome that a guide specifically mentioning DietPi has been re-added to qBittorrent wiki after refactoring :).
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Compiling qBittorrent on DietPi.

Post by Joulinar »

but still referring to Debian 9.0 8)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2987
Joined: Sat Nov 18, 2017 6:21 pm

Re: Compiling qBittorrent on DietPi.

Post by MichaIng »

Jep, the release of qBittorrent v4 while Stretch shipped v3 was the initial reason for the guide. But indeed it could be updated for Buster.
Post Reply