update compilation instructions to account for Qt6 #15946

Closed
opened 2026-02-22 02:39:10 -05:00 by deekerman · 2 comments
Owner

Originally created by @prescriptionlifeline on GitHub (Jul 29, 2024).

qBittorrent & operating system versions

qBittorrent: 4.6.5
Operating system: Debian GNU/Linux 12 (bookworm)
Qt: 6.7.2
libtorrent-rasterbar: github.com/arvidn/libtorrent@8fa55e5a1c

What is the problem?

I'm trying to follow the directions at https://github.com/qbittorrent/qBittorrent/wiki/Compilation-Debian,-Ubuntu,-and-derivatives to compile qBittorrent and the instructions suggest installing Qt from https://www.qt.io/download-qt-installer , which I did, but it's unclear how to install Qt 5 from that. Using the default settings Qt 6.7.2 got installed.

This is an issue because of this step:

cmake -G "Ninja" -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr/local

In particular, that gives this message when it runs:

-- The following features have been disabled:

 * QT6, Build with Qt 6 instead of Qt 5 (default: OFF)

I mean, I'll still need to set the path to Qt (adding Qt5_DIR=~/Qt/6.7.2 to the cmake command would do the trick if I was running Qt5 I guess) but figuring out how to set the path is a bit premature if I can't enable Qt6 builds...

Originally created by @prescriptionlifeline on GitHub (Jul 29, 2024). ### qBittorrent & operating system versions qBittorrent: 4.6.5 Operating system: Debian GNU/Linux 12 (bookworm) Qt: 6.7.2 libtorrent-rasterbar: https://github.com/arvidn/libtorrent/commit/8fa55e5a1cb9236105b3033eb4e94ddd62097978 ### What is the problem? I'm trying to follow the directions at https://github.com/qbittorrent/qBittorrent/wiki/Compilation-Debian,-Ubuntu,-and-derivatives to compile qBittorrent and the instructions suggest installing Qt from https://www.qt.io/download-qt-installer , which I did, but it's unclear how to install Qt 5 from that. Using the default settings Qt 6.7.2 got installed. This is an issue because of this step: ``` cmake -G "Ninja" -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr/local ``` In particular, that gives this message when it runs: ``` -- The following features have been disabled: * QT6, Build with Qt 6 instead of Qt 5 (default: OFF) ``` I mean, I'll still need to set the path to Qt (adding `Qt5_DIR=~/Qt/6.7.2` to the `cmake` command would do the trick if I was running Qt5 I guess) but figuring out how to set the path is a bit premature if I can't enable Qt6 builds...
deekerman 2026-02-22 02:39:10 -05:00
Author
Owner

@HanabishiRecca commented on GitHub (Jul 29, 2024):

It's -DQT6=ON.

github.com/qbittorrent/qBittorrent@5e81347933/CMakeLists.txt (L25-L31)

With 5.0.0 release Qt6 will became the only option though, so the wiki page need to be rewritten completely.

@HanabishiRecca commented on GitHub (Jul 29, 2024): It's `-DQT6=ON`. https://github.com/qbittorrent/qBittorrent/blob/5e81347933adec219dab27a503f8dc9c4a1c522d/CMakeLists.txt#L25-L31 With 5.0.0 release Qt6 will became the only option though, so the wiki page need to be rewritten completely.
Author
Owner

@xavier2k6 commented on GitHub (Jun 12, 2025):

Closed via https://github.com/qbittorrent/wiki/pull/33

@xavier2k6 commented on GitHub (Jun 12, 2025): Closed via https://github.com/qbittorrent/wiki/pull/33
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#15946
No description provided.