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

Building qbittorrent-nox with cmake is broken #10898

Open
bacon-cheeseburger opened this issue Jul 7, 2019 · 3 comments

Comments

Projects
None yet
3 participants
@bacon-cheeseburger
Copy link

commented Jul 7, 2019

Please provide the following information

qBittorrent version and Operating System

Current GIT (91742d4), Debian Linux

If on linux, libtorrent and Qt version

libtorrent-rasterbar 1.2.1-git+bcb26fd63, qt5 5.11.3

What is the problem

Building qbittorrent-nox with cmake is broken.

What is the expected behavior

Building qbittorrent-nox with cmake should work.

Steps to reproduce

Git clone qBittorrent, try building -nox version with cmake.

Extra info(if any)

(type here)

@glassez

This comment has been minimized.

Copy link
Member

commented Jul 10, 2019

Error message?
Or should we guess what exactly is going on with you?

@bacon-cheeseburger

This comment has been minimized.

Copy link
Author

commented Jul 11, 2019

According to https://github.com/qbittorrent/qBittorrent/wiki/Compiling-with-CMake you should be able to do cmake -DGUI=FALSE. While output doesn't show GUI as enabled:

Configuration results:

-- The following features have been enabled:

  • COUNTRIES_RESOLUTION, Enable resolving peers IP addresses to countries
  • STACKTRACE, Enable stacktraces
  • WEBUI, Enables built-in HTTP server for headless use

You also get:

CMake Warning:
Manually-specified variables were not used by the project:

GUI

Building at this point does in fact build the GUI version qbittorrent rather than qbittorrent-nox:

Scanning dependencies of target qbt_gui
[ 44%] Building CXX object src/gui/CMakeFiles/qbt_gui.dir/addnewtorrentdialog.cpp.o
[ 45%] Building CXX object src/gui/CMakeFiles/qbt_gui.dir/autoexpandabledialog.cpp.o
..
[ 59%] Linking CXX static library libqbt_gui.a
[ 59%] Built target qbt_gui
..
[100%] Linking CXX executable qbittorrent
[100%] Built target qBittorrent

Compiling -nox with configure --disable-gui and then make works fine and does exactly what's expected ("Disable the GUI for headless running. Disables QtDBus and the GeoIP Database."). That would be the expected behavior once -DGUI is added as a valid option. Sorry for the lack of explanation in my original submission.

@glassez

This comment has been minimized.

Copy link
Member

commented Jul 11, 2019

Sorry, CMake isn't officially supported by the project.
As I can see in our Travis-CI configuration -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets=ON" is used for non-GUI builds.

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.