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

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

wget https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_1_6/libtorrent-rasterbar-1.1.6.tar.gz
tar -zxf libtorrent-rasterbar-1.1.6.tar.gz
cd libtorrent-rasterbar-1.1.6
./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.9 /usr/lib64/libtorrent-rasterbar.so.9

Grab latest qbittorrent

cd 
git clone https://github.com/qbittorrent/qBittorrent.git (or git pull if already cloned)
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

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.