qBittorrent 4.6.4 compilation error #15625

Closed
opened 2026-02-22 02:19:43 -05:00 by deekerman · 2 comments
Owner

Originally created by @onyx101 on GitHub (Mar 27, 2024).

qBittorrent & operating system versions

qBittorrent: 4.6.4
OS: Linux raspberrypi 6.6.20+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64 GNU/Linux
Qt: Using Qt version 5.15.8 in /usr/lib/aarch64-linux-gnu
libtorrent-rasterbar: 2.0.10

What is the problem?

When compiling qBittorrent 4.6.4 I get the following compilation error

compiling app/application.cpp
In file included from ./base/tagset.h:35,
                 from ./base/bittorrent/addtorrentparams.h:38,
                 from app/application.h:44,
                 from app/application.cpp:30:
./base/utils/compare.h:35:10: fatal error: QtCore/private/qtcore-config_p.h: No such file or directory
   35 | #include <QtCore/private/qtcore-config_p.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:3237: application.o] Error 1

Steps to reproduce

  1. Download source of version 4.6.4
  2. Unzip source
  3. ./configure --disable-gui --disable-qt-dbus --with-boost-libdir=/usr/lib/aarch64-linux-gnu/ CXXFLAGS="-std=c++17"
  4. make

Additional context

I am compiling versions of qBittorrent since a long time, all previous versions compile fine, including 4.6.3

Log(s) & preferences file(s)

For reference here is the output of "configure"

Start building qbittorrent 4.6.4
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking for a sed that does not truncate output... /usr/bin/sed
checking build system type... aarch64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... none
checking dependency style of g++... none
checking whether to enable specific tweaks for current host "linux-gnu"... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.23... yes
checking whether to enable the Debug build... no
checking whether to enable the stacktrace feature... yes
checking whether to enable the GUI... no
checking whether to install the systemd service file... no
checking whether to enable the WebUI... yes
checking for Qt5 qmake >= 5.15.2... /usr/lib/aarch64-linux-gnu/qt5/bin/qmake
checking whether QtDBus should be enabled... no
checking for boostlib >= 1.71 (107100)... yes
configure: Boost CXXFLAGS: "-I/usr/include"
configure: Boost LDFLAGS: "-L/usr/lib/aarch64-linux-gnu/"
checking for libtorrent-rasterbar >= 2.0.9... yes
checking for openssl >= 1.1.1... yes
checking for zlib >= 1.2.11... yes
checking if compiler defaults to C++17 or later mode... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating conf.pri
config.status: executing depfiles commands
configure: Running qmake to generate the makefile...
Reading /home/pi/software/qBittorrent-release-4.6.4/src/src.pro
Project MESSAGE: Project is built in RELEASE mode.
Project MESSAGE: Disabling debug output.
Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point.
Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned!

configure: Good, the configure finished.
Originally created by @onyx101 on GitHub (Mar 27, 2024). ### qBittorrent & operating system versions qBittorrent: 4.6.4 OS: Linux raspberrypi 6.6.20+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64 GNU/Linux Qt: Using Qt version 5.15.8 in /usr/lib/aarch64-linux-gnu libtorrent-rasterbar: 2.0.10 ### What is the problem? When compiling qBittorrent 4.6.4 I get the following compilation error ``` compiling app/application.cpp In file included from ./base/tagset.h:35, from ./base/bittorrent/addtorrentparams.h:38, from app/application.h:44, from app/application.cpp:30: ./base/utils/compare.h:35:10: fatal error: QtCore/private/qtcore-config_p.h: No such file or directory 35 | #include <QtCore/private/qtcore-config_p.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[1]: *** [Makefile:3237: application.o] Error 1 ``` ### Steps to reproduce 1. Download source of version 4.6.4 2. Unzip source 3. `./configure --disable-gui --disable-qt-dbus --with-boost-libdir=/usr/lib/aarch64-linux-gnu/ CXXFLAGS="-std=c++17"` 4. make ### Additional context I am compiling versions of qBittorrent since a long time, all previous versions compile fine, including 4.6.3 ### Log(s) & preferences file(s) For reference here is the output of "configure" ``` Start building qbittorrent 4.6.4 checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking for g++... g++ checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking for a sed that does not truncate output... /usr/bin/sed checking build system type... aarch64-unknown-linux-gnu checking host system type... aarch64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports the include directive... yes (GNU style) checking whether make supports nested variables... yes checking dependency style of gcc... none checking dependency style of g++... none checking whether to enable specific tweaks for current host "linux-gnu"... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.23... yes checking whether to enable the Debug build... no checking whether to enable the stacktrace feature... yes checking whether to enable the GUI... no checking whether to install the systemd service file... no checking whether to enable the WebUI... yes checking for Qt5 qmake >= 5.15.2... /usr/lib/aarch64-linux-gnu/qt5/bin/qmake checking whether QtDBus should be enabled... no checking for boostlib >= 1.71 (107100)... yes configure: Boost CXXFLAGS: "-I/usr/include" configure: Boost LDFLAGS: "-L/usr/lib/aarch64-linux-gnu/" checking for libtorrent-rasterbar >= 2.0.9... yes checking for openssl >= 1.1.1... yes checking for zlib >= 1.2.11... yes checking if compiler defaults to C++17 or later mode... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating conf.pri config.status: executing depfiles commands configure: Running qmake to generate the makefile... Reading /home/pi/software/qBittorrent-release-4.6.4/src/src.pro Project MESSAGE: Project is built in RELEASE mode. Project MESSAGE: Disabling debug output. Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version. Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point. Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned! configure: Good, the configure finished. ```
deekerman 2026-02-22 02:19:43 -05:00
Author
Owner

@HanabishiRecca commented on GitHub (Mar 27, 2024):

I think you need https://github.com/qbittorrent/qBittorrent/issues/20619#issuecomment-2023803803

@HanabishiRecca commented on GitHub (Mar 27, 2024): I think you need https://github.com/qbittorrent/qBittorrent/issues/20619#issuecomment-2023803803
Author
Owner

@onyx101 commented on GitHub (Mar 28, 2024):

That did the trick. I was not aware qtbase5-private-dev is now necessary.
Much appreciated.

@onyx101 commented on GitHub (Mar 28, 2024): That did the trick. I was not aware `qtbase5-private-dev` is now necessary. Much appreciated.
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#15625
No description provided.