Compiling qbittorrent nox for CentOS from source

nova-techies edited this page Mar 6, 2018 · 12 revisions

After stumbling for about 2 hours (getting Qt5 to work) here is the how to build qbittorrent as per:

Update for Qt5

Install Dependencies (make sure you have epel repo enabled)

yum -y groupinstall "Development Tools"
yum -y install qt-devel boost-devel openssl-devel qt5-qtbase-devel qt5-linguist

Grab latest libtorrent release

  • libtorrent-1.1.6 at the time of last update check for updates and replace as needed

tar -zxf libtorrent-rasterbar-1.1.6.tar.gz
cd libtorrent-rasterbar-1.1.6
./configure --prefix=/usr
make install
ln -s /usr/lib/pkgconfig/libtorrent-rasterbar.pc /usr/lib64/pkgconfig/libtorrent-rasterbar.pc
ln -s /usr/lib/ /usr/lib64/

Grab latest qbittorrent

git clone (or git pull if already cloned)
cd qBittorrent
./configure --prefix=/usr --disable-gui CPPFLAGS=-I/usr/include/qt5
make install

Don't do this if you have a working config file ie. you are upgrading

mkdir -p ~/.config/qBittorrent
cat > ~/.config/qBittorrent/qBittorrent.conf <<- EOM

To set up qbittorrent as a deamon see:

or else just run qbittorrent-nox

Kudos to @SoreGums

ref for qmake bug on centos:

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.