Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error with qBittorent #11192

Closed
Cecilben opened this issue Sep 4, 2019 · 3 comments
Closed

Compilation error with qBittorent #11192

Cecilben opened this issue Sep 4, 2019 · 3 comments
Labels
Build system Issue with the build configuration or scripts (but not the code itself)

Comments

@Cecilben
Copy link

Cecilben commented Sep 4, 2019

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

@hvonw
Copy link

hvonw commented Sep 4, 2019

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

@Cecilben
Copy link
Author

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

@hvonw
Copy link

hvonw commented Sep 10, 2019

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.

@thalieht thalieht added the Build system Issue with the build configuration or scripts (but not the code itself) label Sep 11, 2019
@qbittorrent qbittorrent locked and limited conversation to collaborators Feb 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Build system Issue with the build configuration or scripts (but not the code itself)
Projects
None yet
Development

No branches or pull requests

3 participants