Skip to content

Instantly share code, notes, and snippets.

@gene1wood
Last active December 1, 2019 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gene1wood/19389dd959013c4dcd8aa203a07a9b08 to your computer and use it in GitHub Desktop.
Save gene1wood/19389dd959013c4dcd8aa203a07a9b08 to your computer and use it in GitHub Desktop.

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

Setup build environment

qbittorrent/qBittorrent#10065

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

https://gist.github.com/cloverstd/a83bef9c2571685212aab1da79c79bd2

wget https://github.com/arvidn/libtorrent/releases/download/libtorrent_1_1_12/libtorrent-rasterbar-1.1.12.tar.gz
tar -vzxf libtorrent-rasterbar-*.tar.gz
cd libtorrent-rasterbar-*
./configure --with-boost-libdir=/usr/lib64
make
sudo make install

Build qbittorrent

This doesn't work

wget https://github.com/qbittorrent/qBittorrent/archive/release-4.1.9.1.tar.gz
tar -vzxf release-4.1.9.1.tar.gz
cd qBittorrent-*
# The "libtorrent_CFLAGS=/usr/local/lib libtorrent_LIBS=/usr/local/lib/libtorrent-rasterbar.so.9.0.0" prefix is to enable configure to find libtorrent since there's no package
libtorrent_CFLAGS=/usr/local/lib libtorrent_LIBS=/usr/local/lib/libtorrent-rasterbar.so.9.0.0 ./configure --prefix=/usr --with-boost-system --disable-gui CPPFLAGS=-I/usr/include/qt5
make

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

https://blog.packagecloud.io/eng/2015/05/11/building-rpm-packages-with-mock/

Interesting links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment