Added info for faster compilation and proper update guide for DietPi. Please start a new wiki entry for stuff that's not relevant to DietPi!

Millichrome 2019-03-12 20:08:33 -04:00
parent 634eb8d51e
commit e317c9d32b

@ -91,12 +91,10 @@ export CXXFLAGS=-std=c++11
--enable-encryption \ --enable-encryption \
--with-boost-libdir=/usr/lib/arm-linux-gnueabihf --with-boost-libdir=/usr/lib/arm-linux-gnueabihf
--with-libiconv --with-libiconv
make make -j$(nproc)
sudo make install sudo make install
~~~~~ ~~~~~
This will require five to six hours to compile on Raspberry Pi hardware.
#### out of memory (OOM) #### out of memory (OOM)
If OOM errors occur then add a swap file. If OOM errors occur then add a swap file.
@ -169,12 +167,10 @@ cd qBittorrent-release-4.1.5
~~~~ ~~~~
./configure --disable-gui --enable-systemd --with-boost-libdir=/usr/lib/arm-linux-gnueabihf ./configure --disable-gui --enable-systemd --with-boost-libdir=/usr/lib/arm-linux-gnueabihf
make make -j$(nproc)
sudo make install sudo make install
~~~~~ ~~~~~
This will require several hours to compile on Raspberry Pi hardware.
NOTE: Review [Ubuntu/Debian compilation guide](https://github.com/qbittorrent/qBittorrent/wiki/Compiling-qBittorrent-on-Debian-and-Ubuntu#Compiling_qBittorrent_with_the_GUI) if you want to run qBittorrent with a GUI. NOTE: Review [Ubuntu/Debian compilation guide](https://github.com/qbittorrent/qBittorrent/wiki/Compiling-qBittorrent-on-Debian-and-Ubuntu#Compiling_qBittorrent_with_the_GUI) if you want to run qBittorrent with a GUI.
The binary should be located at `/usr/local/bin/qbittorrent-nox`. If `qbittorrent-nox` was installed using `apt` then that binary will be at `/usr/bin/qbittorrent-nox`. _Do not confuse them!_ The binary should be located at `/usr/local/bin/qbittorrent-nox`. If `qbittorrent-nox` was installed using `apt` then that binary will be at `/usr/bin/qbittorrent-nox`. _Do not confuse them!_
@ -233,19 +229,19 @@ sudo systemctl enable qbittorrent
## Get a copy of the latest qBittorrent release version ## Get a copy of the latest qBittorrent release version
Repeat prior steps for downloading the source code and compiling it. On DietPi, you will need to run the following commands to update an already compiled version of qBittorrent-nox:
~~~~
systemctl stop qbittorrent
./configure --disable-gui --with-boost-libdir=/usr/lib/arm-linux-gnueabihf --prefix=/usr/local/bin/
sudo make -j$(nproc)
make install
~~~~
## check version, install, check version ## check version to verify that the binary got updated.
Then stop the service, check the version before install, install, and check the version after install.
~~~~ ~~~~
sudo systemctl stop qbittorrent sudo systemctl stop qbittorrent
/usr/local/bin/qbittorrent-nox --version
sudo make install
/usr/local/bin/qbittorrent-nox --version /usr/local/bin/qbittorrent-nox --version
~~~~ ~~~~