Qbittorrent: Compilation error with qBittorent

Created on 4 Sep 2019  路  3Comments  路  Source: qbittorrent/qBittorrent

Please provide the following information

qBittorrent version and Operating System

(type here)
4_1_x

If on linux, libtorrent-rasterbar and Qt version

(type here)
libtorrent-rasterbar8 - 1.0.7
Qt5

What is the problem

(type here)
When compiling qBittorrent from the source - getting errors in base/bittorrent/session.cpp
lt:: has not been declared.

What is the expected behavior

Compile without any error

Steps to reproduce

(type here)
Followed steps mentioned in the url - https://github.com/qbittorrent/qBittorrent/wiki/Compiling-qBittorrent-on-Debian-and-Ubuntu

Required dependencies as mentions in the wiki link.
Libtorrent:
sudo apt-get install libtorrent-rasterbar-dev
Qbittorent :
git clone https://github.com/qbittorrent/qBittorrent
cd qBittorrent
git checkout v4_1_x
./configure
make -j$(nproc)

Extra info(if any)

(type here)
./configure run without any errors

Build system

Most helpful comment

Instead of "sudo apt-get install libtorrent-rasterbar-dev" install newer versions of libtorrent. (1.1.1+)

https://github.com/arvidn/libtorrent/releases
libtorrent-1.1.13*
libtorrent 1.2.1

All 3 comments

Instead of "sudo apt-get install libtorrent-rasterbar-dev" install newer versions of libtorrent. (1.1.1+)

https://github.com/arvidn/libtorrent/releases
libtorrent-1.1.13*
libtorrent 1.2.1

I am able to compile without errors with the latest version. But getting an error with qBittorent linking.

After building and installing libtorrent-rasterbar onto your system do not forget to "ldconfig".

Also as you know qBittorrent supports cmake. It will be easier to building with cmake.

Else you need to pass ./configure --with-something -without-something --enable-something --disable-something and CFLAGS="incl. directory" LDFLAGS="libs directory"
After that if you want a static build LDFLAGS still needed with make command.

Was this page helpful?
0 / 5 - 0 ratings