Skip to content

Instantly share code, notes, and snippets.

What would you like to do?

This doesn't work. I gave up and used this docker container which uses the Ubuntu PPA

Setup build environment

yum install qt5-qtbase-devel qt5-qtsvg-devel boost-devel qt5-linguist
yum install centos-release-scl-rh
yum install devtoolset-3-gcc devtoolset-3-gcc-c++
source scl_source enable devtoolset-3

Build rb_libtorrent

tar -vzxf libtorrent-rasterbar-*.tar.gz
cd libtorrent-rasterbar-*
./configure --with-boost-libdir=/usr/lib64
sudo make install

Build qbittorrent

This doesn't work

tar -vzxf release-
cd qBittorrent-*
# The "libtorrent_CFLAGS=/usr/local/lib libtorrent_LIBS=/usr/local/lib/" prefix is to enable configure to find libtorrent since there's no package
libtorrent_CFLAGS=/usr/local/lib libtorrent_LIBS=/usr/local/lib/ ./configure --prefix=/usr --with-boost-system --disable-gui CPPFLAGS=-I/usr/include/qt5

Things that I tried that didn't work

Building with the gcc that comes with CentOS 7

yum install qt5-qtbase-devel qt5-qtsvg-devel boost-devel rb_libtorrent-devel qt5-linguist
# This gets a bit further with boost but no dice
./configure --with-boost=/usr --disable-gui --enable-systemd
# This gets past boost
./configure --with-boost=no --disable-gui --enable-systemd

Rebuilding Fedora RPMs using mock

Interesting links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.