From 682135dad4ee05ffe66f6b81daec7b3baff496b2 Mon Sep 17 00:00:00 2001 From: Saverio Miroddi Date: Mon, 27 Nov 2017 00:00:03 +0100 Subject: [PATCH] Set the number of build threads to the threads available, and add note about its tweaking --- Compiling-qBittorrent-on-Debian-and-Ubuntu.mediawiki | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Compiling-qBittorrent-on-Debian-and-Ubuntu.mediawiki b/Compiling-qBittorrent-on-Debian-and-Ubuntu.mediawiki index 43288b3..a84054d 100644 --- a/Compiling-qBittorrent-on-Debian-and-Ubuntu.mediawiki +++ b/Compiling-qBittorrent-on-Debian-and-Ubuntu.mediawiki @@ -37,9 +37,11 @@ If you get a configure: error: Boost.System library not found, chec If yes, add --with-boost-libdir=/usr/lib/i386-linux-gnu Now you're ready to compile: - make clean && make -j2 + make clean && make -j$(nproc) sudo make install +See note in the next section regarding the build jobs. + For more information on building libtorrent, see [http://www.libtorrent.org/building.html libtorrent downloading and building]. == Compiling qBittorrent (with the GUI) == @@ -47,10 +49,11 @@ First, obtain the qBittorrent source code.
Either download and extract a .tar archive from [https://sourceforge.net/projects/qbittorrent/files/qbittorrent/ Sourceforge] or clone this git repo: git clone https://github.com/qbittorrent/qBittorrent
Enter the folder in a new terminal window and run: ./configure - make -j2 + make -j$(nproc) * Note 1: If you're using libtorrent-rasterbar from the 0.16.x series, you also need to pass the --with-libtorrent-rasterbar0.16 option to configure. qBittorrent v3.3.x has dropped the support of libtorrent 0.16.x. * Note 2: If you want to compile with qt4 instead of qt5, you also need to pass the --with-qt4 option to configure. +* Note 3: This build uses a conservative number of jobs (equal to the threads available); increasing it may make the build faster, but an eye must be kept on the memory usage. And finally to install qBittorrent: sudo make install @@ -63,11 +66,12 @@ First, obtain the qBittorrent source code.
Either download and extract a .tar archive from [https://sourceforge.net/projects/qbittorrent/files/qbittorrent/ Sourceforge] or clone this git repo: git clone https://github.com/qbittorrent/qBittorrent
Enter the folder in a new terminal window and run: ./configure --disable-gui - make -j2 + make -j$(nproc) * Note 1: If you're using libtorrent-rasterbar from the 0.16.x series, you also need to pass the --with-libtorrent-rasterbar0.16 option to configure. qBittorrent v3.3.x has dropped the support of libtorrent 0.16.x. * Note 2: If you want to compile with qt4 instead of qt5, you also need to pass the --with-qt4 option to configure. * Note 3: If you want to disable ALL authentication in the WebUI, change some lines as explained [https://github.com/qbittorrent/qBittorrent/wiki/Disable-authentification-of-webGUI/ here]. +* Note 4: This build uses a conservative number of jobs (equal to the threads available); increasing it may make the build faster, but an eye must be kept on the memory usage. And finally to install qBittorrent: sudo make install