Tuesday, August 22, 2017

compile qbittorrent without installing to system directory

1- first compile libtorrent
$ git clone https://github.com/arvidn/libtorrent.git
$ cd libtorrent

$ ./configure --prefix=/home/user1/libtorrent
$ make
$ make install


2- then compile qbittorent
- download
https://www.qbittorrent.org/download.php


- extract and start compile
$ libtorrent_LIBS=/home/user1/libtorrentlib/libtorrent-rasterbar.so.9 libtorrent_CFLAGS=/home/user1/libtorrent/include/ ./configure --prefix=`pwd`/output

***if error message***
sh: 1: lrelease-qt5: not found
- install qttools5-dev-tools
***************

- edit conf.pri add
EXTERNAL_INCLUDES = "/home/user1/libtorrent/include/include"


and check EXTERNAL_LIBS whether it has
-lz /home/user1/libtorrent/lib/libtorrent-rasterbar.so.9

-- then compile
$ make
$ make install

3- to run
$ cd qbittorent/output/bin
$ LD_LIBRARY_PATH=/home/user1/libtorrent/lib/ ./qbittorrent

No comments:

Post a Comment