Compiling qbittorrent nox for CentOS from source

Nicholas Orr edited this page Mar 1, 2016 · 10 revisions
Clone this wiki locally

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.0.7 at the time of writing check for updates and replace as needed

tar -zxf libtorrent-rasterbar-1.0.7.tar.gz
cd libtorrent-rasterbar-1.0.7
./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
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: