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

https://github.com/arvidn/libtorrent/releases check for updates and replace as needed

wget https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_0_7/libtorrent-rasterbar-1.0.7.tar.gz
tar -zxf libtorrent-rasterbar-1.0.7.tar.gz
cd libtorrent-rasterbar-1.0.7
./configure --prefix=/usr
make
make install
ln -s /usr/lib/pkgconfig/libtorrent-rasterbar.pc /usr/lib64/pkgconfig/libtorrent-rasterbar.pc
ln -s /usr/lib/libtorrent-rasterbar.so.8 /usr/lib64/libtorrent-rasterbar.so.8

Grab latest qbittorrent

cd 
git clone https://github.com/qbittorrent/qBittorrent.git
cd qBittorrent
./configure --prefix=/usr --disable-gui CPPFLAGS=-I/usr/include/qt5
make
make install
cd

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
[Preferences]
WebUI\Enabled=true
EOM

To set up qbittorrent as a deamon see: https://github.com/qbittorrent/qBittorrent/wiki/Setting-up-qBittorrent-as-a-daemon-on-CentOS-7

or else just run qbittorrent-nox

Kudos to @SoreGums

ref for qmake bug on centos: https://github.com/qbittorrent/qBittorrent/issues/4197#issuecomment-160654335