Repository navigation
Replies: 26 comments 43 replies
|
sadly neither Debian has qt6.5 even on unstable repo |
|
hi @flaggz thanks, best regards. |
tried, but same result: FAILED: src/base/CMakeFiles/qbt_base.dir/net/downloadmanager.cpp.o |
|
You could see how it is compiled on GitHub CI. |
please, where is github CI? but there is a way to compile in ubuntu last code? |
|
Configuration for Ubuntu CI: https://github.com/qbittorrent/qBittorrent/blob/master/.github/workflows/ci_ubuntu.yaml |
|
I myself use the official Qt binaries on Linux Mint. |
that is not very useful |
IIRC, BTW, judging by your errors, the problem is related to OpenSSL. It is possible that the Qt you are using is built without the support of OpenSSL, or you simply did not install OpenSSL development packages... |
please how use that Configuration for Ubuntu CI? and what version is the original qt of mint? thanks |
official qt installer requires registering in the website and can't be used on headless PCs edit: finally managed to compile qbittorrent with qt6.5.2 using aqtinstall
|
|
@glassez installing now libcurl4-openssl-dev i have: [19/313] Building CXX object src/base/CMakeFiles/qbt_base.dir/net/downloadmanager.cpp.o can you help me? |
It's wrong! You need |
thanks already installed, same error |
IIRC, @flaggz did it. Maybe he can tell you more? P.S. Qt 6.6 isn't released yet, is it? Anyway it wasn't even tested for compatibility with qBittorrent. |
|
i have register at qt site, and installed this: thanks for all |
|
downloaded another file qt 6.5.2 , qt-everywhere-src-6.5.2 but i have this error when launch cmake --build . : FAILED: qtbase/src/assets/icons/.rcc/qrc_example_icons.cpp /app/qt-everywhere-src-6.5.2/qtbase/src/assets/icons/.rcc/qrc_example_icons.cpp libQt6Core.so.6: version `Qt_6.5' not found what means? i compile qt 6.5.2 and search for qt 6.5???? someone can help me please? |
Why do you need to compile qBittorrent yourself? It doesn't look like you're competent enough for that... Sorry, I could give some hints, but I don't keep the full build script in my head. |
|
i'm also build libtorrent and qbittorrent, but now i have problem to have qt6.5. This is my script: sudo killall -9 qbittorrent LIBTORRENTcd /app QBITTORRENTcd /app Please help me with build qt6.5! thanks |
|
Why not build qtbase, qttools, qtsvg and qttranslations individually and install theme to same path in your $HOME directory like this: qtbase: qttools: qtsvg: qttranslations: and configure qbittorrent: |
@dacorsa my apologies but I have to agree with @glassez here, especially since you've had problems previously in #13274 Our codebase can build with Qt 6.6 - is still in beta!!!! With that being said....this is "not an issue" with qBittorrent & I'm goin to move it to "Discussions" so that you may continue receiving help. |
|
But Debian and Ubuntu provide only Qt 6.4.2 and boost 1.74 |
|
Now I can compile qbittorrent but I have this message in the console: on cmake compilation I see this output so it should work. Any thoughts? |
|
At this point i think i can write a little guide to help everyone want compile qBittorrent v5.0.0 Alpha1: Download del file "qt-unified-linux-x64-4.6.0-online.run" from this site: chmod 755 qt-unified-linux-x64-4.6.0-online.run Now:
Now reboot, after install these dependencies for qBittorrent: sudo apt install autoconf automake autopoint autotools-dev debhelper debugedit dh-autoreconf dh-strip-nondeterminism dwz gettext intltool-debian libboost-dev libboost-system-dev libboost-system1.81-dev libboost-system1.81.0 libboost1.81-dev libclang1-15 libdebhelper-perl libegl-dev libfile-stripnondeterminism-perl libgl-dev libglu1-mesa-dev libglx-dev libopengl-dev libpthread-stubs0-dev libssl-dev libsub-override-perl libtool libvulkan-dev libx11-dev libxau-dev libxcb1-dev libxdmcp-dev libxext-dev m4 po-debconf x11proto-dev xorg-sgml-doctools xtrans-dev |
|
sorry for bringing up an already abandoned thread, but want to say that mentioned PPA is not suitable for building qBittorrent as so as Qt in that repo is built without SSL support, but qBittorrent uses some SSL-related classes (what are mentioned in build errors). based on that PPA I made my own build and now nightly builds for Debian 12+ are available again. see #12616 for links and any details (no need to read whole thread, just few last messages). |
|
finally found a solution by mixing and matching various solutions here it is when building qbittorrent use -DCMAKE_PREFIX_PATH=/usr/local/Qt-6.5.2/ |



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
qBittorrent & operating system versions
hi guys, i'm using latest code from github of qbittorrent and latest ubuntu lunar,
i have seen that qbittorrent needs at least qt6.5 but ubuntu not have in its repo, i have installed this ppa:
https://launchpad.net/~rncbc/+archive/ubuntu/qt6.6-static-lunar
and installed this packages:
apt install qtbase6.6-static qtsvg6.6-static qttools6.6-static qttranslations6.6-static
adding this:
export CMAKE_PREFIX_PATH="/opt/qt6.6-static/"
now i have in /opt/qt6.6-static/ all this:
drwxr-xr-x 2 root root 4096 ago 12 12:04 bin/
drwxr-xr-x 4 root root 4096 ago 12 12:04 doc/
drwxr-xr-x 33 root root 4096 ago 12 12:04 include/
drwxr-xr-x 4 root root 4096 ago 12 12:04 lib/
drwxr-xr-x 2 root root 4096 ago 12 12:04 libexec/
drwxr-xr-x 2 root root 4096 ago 12 12:04 metatypes/
drwxr-xr-x 64 root root 4096 ago 12 12:04 mkspecs/
drwxr-xr-x 2 root root 4096 ago 12 12:04 modules/
drwxr-xr-x 2 root root 4096 ago 12 12:04 phrasebooks/
drwxr-xr-x 12 root root 4096 ago 12 12:04 plugins/
drwxr-xr-x 2 root root 20480 ago 12 12:04 translations/
now compiling i have this error, can you help me , please?:
FAILED: src/base/CMakeFiles/qbt_base.dir/bittorrent/tracker.cpp.o
/usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_NO_DEPRECATED -DOPENSSL_NO_SSL2 -DQBT_USES_DBUS -DQBT_USES_LIBTORRENT2 -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DISABLE_DEPRECATED_UP_TO=0x060500 -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_SQL_LIB -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -DQT_XML_LIB -DTORRENT_LINKING_SHARED -DTORRENT_SSL_PEERS -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -I/app/qBittorrent/build/src/base/qbt_base_autogen/include -I/app/qBittorrent/src -isystem /opt/qt6.6-static/include/QtCore -isystem /opt/qt6.6-static/include -isystem /opt/qt6.6-static/mkspecs/linux-g++ -isystem /opt/qt6.6-static/include/QtNetwork -isystem /opt/qt6.6-static/include/QtSql -isystem /opt/qt6.6-static/include/QtXml -isystem /opt/qt6.6-static/include/QtDBus -O3 -DNDEBUG -std=c++20 -fexceptions -fPIC -ffunction-sections -fdata-sections -Wall -Wextra -Wcast-qual -Wcast-align -Winvalid-pch -Woverloaded-virtual -Wold-style-cast -Wnon-virtual-dtor -pedantic -pedantic-errors -Wstrict-null-sentinel -MD -MT src/base/CMakeFiles/qbt_base.dir/bittorrent/tracker.cpp.o -MF src/base/CMakeFiles/qbt_base.dir/bittorrent/tracker.cpp.o.d -o src/base/CMakeFiles/qbt_base.dir/bittorrent/tracker.cpp.o -c /app/qBittorrent/src/base/bittorrent/tracker.cpp
In file included from /app/qBittorrent/src/base/bittorrent/tracker.cpp:41:
/app/qBittorrent/src/base/http/server.h:66:17: error: field βm_keyβ has incomplete type βQSslKeyβ
66 | QSslKey m_key;
| ^~~~~
In file included from /opt/qt6.6-static/include/QtNetwork/QSslCertificate:1,
from /app/qBittorrent/src/base/http/server.h:34:
/opt/qt6.6-static/include/QtNetwork/qsslcertificate.h:26:7: note: forward declaration of βclass QSslKeyβ
26 | class QSslKey;
| ^~~~~~~
[26/366] Building CXX object src/base/CMakeFiles/qbt_base.dir/http/server.cpp.o
FAILED: src/base/CMakeFiles/qbt_base.dir/http/server.cpp.o
/usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_NO_DEPRECATED -DOPENSSL_NO_SSL2 -DQBT_USES_DBUS -DQBT_USES_LIBTORRENT2 -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DISABLE_DEPRECATED_UP_TO=0x060500 -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_SQL_LIB -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -DQT_XML_LIB -DTORRENT_LINKING_SHARED -DTORRENT_SSL_PEERS -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -I/app/qBittorrent/build/src/base/qbt_base_autogen/include -I/app/qBittorrent/src -isystem /opt/qt6.6-static/include/QtCore -isystem /opt/qt6.6-static/include -isystem /opt/qt6.6-static/mkspecs/linux-g++ -isystem /opt/qt6.6-static/include/QtNetwork -isystem /opt/qt6.6-static/include/QtSql -isystem /opt/qt6.6-static/include/QtXml -isystem /opt/qt6.6-static/include/QtDBus -O3 -DNDEBUG -std=c++20 -fexceptions -fPIC -ffunction-sections -fdata-sections -Wall -Wextra -Wcast-qual -Wcast-align -Winvalid-pch -Woverloaded-virtual -Wold-style-cast -Wnon-virtual-dtor -pedantic -pedantic-errors -Wstrict-null-sentinel -MD -MT src/base/CMakeFiles/qbt_base.dir/http/server.cpp.o -MF src/base/CMakeFiles/qbt_base.dir/http/server.cpp.o.d -o src/base/CMakeFiles/qbt_base.dir/http/server.cpp.o -c /app/qBittorrent/src/base/http/server.cpp
In file included from /app/qBittorrent/src/base/http/server.cpp:31:
/app/qBittorrent/src/base/http/server.h:66:17: error: field βm_keyβ has incomplete type βQSslKeyβ
66 | QSslKey m_key;
| ^~~~~
In file included from /opt/qt6.6-static/include/QtNetwork/QSslCertificate:1,
from /app/qBittorrent/src/base/http/server.h:34:
/opt/qt6.6-static/include/QtNetwork/qsslcertificate.h:26:7: note: forward declaration of βclass QSslKeyβ
26 | class QSslKey;
| ^~~~~~~
/app/qBittorrent/src/base/http/server.cpp:56:11: error: βQSslCipherβ was not declared in this scope
56 | QList safeCipherList()
| ^~~~~~~~~~
/app/qBittorrent/src/base/http/server.cpp:56:21: error: template argument 1 is invalid
56 | QList safeCipherList()
| ^
/app/qBittorrent/src/base/http/server.cpp: In function βint {anonymous}::safeCipherList()β:
/app/qBittorrent/src/base/http/server.cpp:69:21: error: βQSslCipherβ was not declared in this scope
69 | const QList allCiphers {QSslConfiguration::supportedCiphers()};
| ^~~~~~~~~~
/app/qBittorrent/src/base/http/server.cpp:69:31: error: template argument 1 is invalid
69 | const QList allCiphers {QSslConfiguration::supportedCiphers()};
| ^
/app/qBittorrent/src/base/http/server.cpp:69:64: error: incomplete type βQSslConfigurationβ used in nested name specifier
69 | const QList allCiphers {QSslConfiguration::supportedCiphers()};
| ^~~~~~~~~~~~~~~~
/app/qBittorrent/src/base/http/server.cpp:71:33: error: request for member βcbeginβ in βallCiphersβ, which is of non-class type βconst intβ
71 | std::copy_if(allCiphers.cbegin(), allCiphers.cend(), std::back_inserter(safeCiphers),
| ^~~~~~
/app/qBittorrent/src/base/http/server.cpp:71:54: error: request for member βcendβ in βallCiphersβ, which is of non-class type βconst intβ
71 | std::copy_if(allCiphers.cbegin(), allCiphers.cend(), std::back_inserter(safeCiphers),
| ^~~~
In file included from /usr/include/c++/13/bits/ranges_base.h:37,
from /usr/include/c++/13/bits/ranges_util.h:34,
from /usr/include/c++/13/tuple:44,
from /opt/qt6.6-static/include/QtCore/qtypeinfo.h:13,
from /opt/qt6.6-static/include/QtCore/qglobal.h:47,
from /opt/qt6.6-static/include/QtCore/qalgorithms.h:11,
from /opt/qt6.6-static/include/QtCore/qhash.h:8,
from /opt/qt6.6-static/include/QtCore/qset.h:7,
from /opt/qt6.6-static/include/QtCore/QSet:1,
from /app/qBittorrent/src/base/http/server.h:33:
/usr/include/c++/13/bits/stl_iterator.h: In instantiation of βclass std::back_insert_iteratorβ:
/app/qBittorrent/src/base/http/server.cpp:71:80: required from here
/usr/include/c++/13/bits/stl_iterator.h:737:7: error: βintβ is not a class, struct, or union type
737 | operator=(const typename _Container::value_type& __value)
| ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:745:7: error: βintβ is not a class, struct, or union type
745 | operator=(typename _Container::value_type&& __value)
| ^~~~~~~~
/app/qBittorrent/src/base/http/server.cpp:72:90: error: βQSslCipherβ does not name a type
72 | [&badCiphers, &badRSAShorthandSuites, &badAESShorthandSuites](const QSslCipher &cipher)
| ^~~~~~~~~~
/app/qBittorrent/src/base/http/server.cpp: In lambda function:
/app/qBittorrent/src/base/http/server.cpp:90:11: error: expected β{β before β;β token
90 | });
| ^
/app/qBittorrent/src/base/http/server.cpp: In function βint {anonymous}::safeCipherList()β:
/app/qBittorrent/src/base/http/server.cpp:90:11: error: expected β)β before β;β token
90 | });
| ^
| )
/app/qBittorrent/src/base/http/server.cpp:71:21: note: to match this β(β
71 | std::copy_if(allCiphers.cbegin(), allCiphers.cend(), std::back_inserter(safeCiphers),
| ^
/app/qBittorrent/src/base/http/server.cpp: In constructor βHttp::Server::Server(Http::IRequestHandler*, QObject*)β:
/app/qBittorrent/src/base/http/server.cpp:103:23: error: variable βQSslConfiguration sslConfβ has initializer but incomplete type
103 | QSslConfiguration sslConf {QSslConfiguration::defaultConfiguration()};
| ^~~~~~~
/app/qBittorrent/src/base/http/server.cpp:103:51: error: incomplete type βQSslConfigurationβ used in nested name specifier
103 | QSslConfiguration sslConf {QSslConfiguration::defaultConfiguration()};
| ^~~~~~~~~~~~~~~~~~~~
/app/qBittorrent/src/base/http/server.cpp:106:24: error: incomplete type βQSslConfigurationβ used in nested name specifier
106 | QSslConfiguration::setDefaultConfiguration(sslConf);
| ^~~~~~~~~~~~~~~~~~~~~~~
/app/qBittorrent/src/base/http/server.cpp: In member function βvirtual void Http::Server::incomingConnection(qintptr)β:
/app/qBittorrent/src/base/http/server.cpp:119:28: error: expected type-specifier before βQSslSocketβ
119 | serverSocket = new QSslSocket(this);
| ^~~~~~~~~~
/app/qBittorrent/src/base/http/server.cpp:121:43: error: invalid use of incomplete type βclass QTcpSocketβ
121 | serverSocket = new QTcpSocket(this);
| ^
In file included from /opt/qt6.6-static/include/QtNetwork/QTcpServer:1,
from /app/qBittorrent/src/base/http/server.h:36:
/opt/qt6.6-static/include/QtNetwork/qtcpserver.h:19:7: note: forward declaration of βclass QTcpSocketβ
19 | class QTcpSocket;
| ^~~~~~~~~~
/app/qBittorrent/src/base/http/server.cpp:123:22: error: invalid use of incomplete type βclass QTcpSocketβ
123 | if (!serverSocket->setSocketDescriptor(socketDescriptor))
| ^~
/opt/qt6.6-static/include/QtNetwork/qtcpserver.h:19:7: note: forward declaration of βclass QTcpSocketβ
19 | class QTcpSocket;
| ^~~~~~~~~~
/app/qBittorrent/src/base/http/server.cpp:125:9: warning: possible problem detected in invocation of βoperator deleteβ [-Wdelete-incomplete]
125 | delete serverSocket;
| ^~~~~~~~~~~~~~~~~~~
/app/qBittorrent/src/base/http/server.cpp:117:17: warning: βserverSocketβ has incomplete type
117 | QTcpSocket *serverSocket = nullptr;
| ^~~~~~~~~~~~
/opt/qt6.6-static/include/QtNetwork/qtcpserver.h:19:7: note: forward declaration of βclass QTcpSocketβ
19 | class QTcpSocket;
| ^~~~~~~~~~
/app/qBittorrent/src/base/http/server.cpp:125:9: note: neither the destructor nor the class-specific βoperator deleteβ will be called, even if they are declared when the class is defined
125 | delete serverSocket;
| ^~~~~~~~~~~~~~~~~~~
/app/qBittorrent/src/base/http/server.cpp:131:21: error: βQSslSocketβ does not name a type; did you mean βQTcpSocketβ?
131 | static_cast<QSslSocket >(serverSocket)->setProtocol(QSsl::SecureProtocols);
| ^~~~~~~~~~
| QTcpSocket
/app/qBittorrent/src/base/http/server.cpp:131:32: error: expected β>β before ββ token
131 | static_cast<QSslSocket >(serverSocket)->setProtocol(QSsl::SecureProtocols);
| ^
/app/qBittorrent/src/base/http/server.cpp:131:32: error: expected β(β before ββ token
131 | static_cast<QSslSocket *>(serverSocket)->setProtocol(QSsl::SecureProtocols);
| ^
| (
/app/qBittorrent/src/base/http/server.cpp:131:33: error: expected primary-expression before β>β token
131 | static_cast<QSslSocket *>(serverSocket)->setProtocol(QSsl::SecureProtocols);
| ^
/app/qBittorrent/src/base/http/server.cpp:131:48: error: invalid use of incomplete type βclass QTcpSocketβ
131 | static_cast<QSslSocket *>(serverSocket)->setProtocol(QSsl::SecureProtocols);
| ^~
/opt/qt6.6-static/include/QtNetwork/qtcpserver.h:19:7: note: forward declaration of βclass QTcpSocketβ
19 | class QTcpSocket;
| ^~~~~~~~~~
/app/qBittorrent/src/base/http/server.cpp:131:84: error: expected β)β before β;β token
131 | static_cast<QSslSocket *>(serverSocket)->setProtocol(QSsl::SecureProtocols);
| ^
| )
/app/qBittorrent/src/base/http/server.cpp:132:21: error: βQSslSocketβ does not name a type; did you mean βQTcpSocketβ?
132 | static_cast<QSslSocket >(serverSocket)->setPrivateKey(m_key);
| ^~~~~~~~~~
| QTcpSocket
/app/qBittorrent/src/base/http/server.cpp:132:32: error: expected β>β before ββ token
132 | static_cast<QSslSocket >(serverSocket)->setPrivateKey(m_key);
| ^
/app/qBittorrent/src/base/http/server.cpp:132:32: error: expected β(β before ββ token
132 | static_cast<QSslSocket *>(serverSocket)->setPrivateKey(m_key);
| ^
| (
/app/qBittorrent/src/base/http/server.cpp:132:33: error: expected primary-expression before β>β token
132 | static_cast<QSslSocket *>(serverSocket)->setPrivateKey(m_key);
| ^
/app/qBittorrent/src/base/http/server.cpp:132:48: error: invalid use of incomplete type βclass QTcpSocketβ
132 | static_cast<QSslSocket >(serverSocket)->setPrivateKey(m_key);
| ^~
/opt/qt6.6-static/include/QtNetwork/qtcpserver.h:19:7: note: forward declaration of βclass QTcpSocketβ
19 | class QTcpSocket;
| ^~~~~~~~~~
/app/qBittorrent/src/base/http/server.cpp:132:70: error: expected β)β before β;β token
132 | static_cast<QSslSocket >(serverSocket)->setPrivateKey(m_key);
| ^
| )
/app/qBittorrent/src/base/http/server.cpp:133:21: error: βQSslSocketβ does not name a type; did you mean βQTcpSocketβ?
133 | static_cast<QSslSocket >(serverSocket)->setLocalCertificateChain(m_certificates);
| ^~~~~~~~~~
| QTcpSocket
/app/qBittorrent/src/base/http/server.cpp:133:32: error: expected β>β before ββ token
133 | static_cast<QSslSocket >(serverSocket)->setLocalCertificateChain(m_certificates);
| ^
/app/qBittorrent/src/base/http/server.cpp:133:32: error: expected β(β before ββ token
133 | static_cast<QSslSocket >(serverSocket)->setLocalCertificateChain(m_certificates);
| ^
| (
/app/qBittorrent/src/base/http/server.cpp:133:33: error: expected primary-expression before β>β token
133 | static_cast<QSslSocket >(serverSocket)->setLocalCertificateChain(m_certificates);
| ^
/app/qBittorrent/src/base/http/server.cpp:133:48: error: invalid use of incomplete type βclass QTcpSocketβ
133 | static_cast<QSslSocket >(serverSocket)->setLocalCertificateChain(m_certificates);
| ^~
/opt/qt6.6-static/include/QtNetwork/qtcpserver.h:19:7: note: forward declaration of βclass QTcpSocketβ
19 | class QTcpSocket;
| ^~~~~~~~~~
/app/qBittorrent/src/base/http/server.cpp:133:90: error: expected β)β before β;β token
133 | static_cast<QSslSocket >(serverSocket)->setLocalCertificateChain(m_certificates);
| ^
| )
/app/qBittorrent/src/base/http/server.cpp:134:21: error: βQSslSocketβ does not name a type; did you mean βQTcpSocketβ?
134 | static_cast<QSslSocket >(serverSocket)->setPeerVerifyMode(QSslSocket::VerifyNone);
| ^~~~~~~~~~
| QTcpSocket
/app/qBittorrent/src/base/http/server.cpp:134:32: error: expected β>β before ββ token
134 | static_cast<QSslSocket >(serverSocket)->setPeerVerifyMode(QSslSocket::VerifyNone);
| ^
/app/qBittorrent/src/base/http/server.cpp:134:32: error: expected β(β before ββ token
134 | static_cast<QSslSocket >(serverSocket)->setPeerVerifyMode(QSslSocket::VerifyNone);
| ^
| (
/app/qBittorrent/src/base/http/server.cpp:134:33: error: expected primary-expression before β>β token
134 | static_cast<QSslSocket >(serverSocket)->setPeerVerifyMode(QSslSocket::VerifyNone);
| ^
/app/qBittorrent/src/base/http/server.cpp:134:48: error: invalid use of incomplete type βclass QTcpSocketβ
134 | static_cast<QSslSocket >(serverSocket)->setPeerVerifyMode(QSslSocket::VerifyNone);
| ^~
/opt/qt6.6-static/include/QtNetwork/qtcpserver.h:19:7: note: forward declaration of βclass QTcpSocketβ
19 | class QTcpSocket;
| ^~~~~~~~~~
/app/qBittorrent/src/base/http/server.cpp:134:68: error: βQSslSocketβ has not been declared
134 | static_cast<QSslSocket >(serverSocket)->setPeerVerifyMode(QSslSocket::VerifyNone);
| ^~~~~~~~~~
/app/qBittorrent/src/base/http/server.cpp:134:91: error: expected β)β before β;β token
134 | static_cast<QSslSocket >(serverSocket)->setPeerVerifyMode(QSslSocket::VerifyNone);
| ^
| )
/app/qBittorrent/src/base/http/server.cpp:135:21: error: βQSslSocketβ does not name a type; did you mean βQTcpSocketβ?
135 | static_cast<QSslSocket >(serverSocket)->startServerEncryption();
| ^~~~~~~~~~
| QTcpSocket
/app/qBittorrent/src/base/http/server.cpp:135:32: error: expected β>β before ββ token
135 | static_cast<QSslSocket >(serverSocket)->startServerEncryption();
| ^
/app/qBittorrent/src/base/http/server.cpp:135:32: error: expected β(β before ββ token
135 | static_cast<QSslSocket >(serverSocket)->startServerEncryption();
| ^
| (
/app/qBittorrent/src/base/http/server.cpp:135:33: error: expected primary-expression before β>β token
135 | static_cast<QSslSocket >(serverSocket)->startServerEncryption();
| ^
/app/qBittorrent/src/base/http/server.cpp:135:48: error: invalid use of incomplete type βclass QTcpSocketβ
135 | static_cast<QSslSocket >(serverSocket)->startServerEncryption();
| ^~
/opt/qt6.6-static/include/QtNetwork/qtcpserver.h:19:7: note: forward declaration of βclass QTcpSocketβ
19 | class QTcpSocket;
| ^~~~~~~~~~
/app/qBittorrent/src/base/http/server.cpp:135:73: error: expected β)β before β;β token
135 | static_cast<QSslSocket >(serverSocket)->startServerEncryption();
| ^
| )
/app/qBittorrent/src/base/http/server.cpp:140:12: error: no matching function for call to βHttp::Server::connect(QTcpSocket&, void (QAbstractSocket::)(), Http::Server, Http::Server::incomingConnection(qintptr)::<lambda()>)β
140 | connect(serverSocket, &QAbstractSocket::disconnected, this, c, this { removeConnection(c); });
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/qt6.6-static/include/QtCore/qvariant.h:25,
from /opt/qt6.6-static/include/QtCore/qlocale.h:7,
from /opt/qt6.6-static/include/QtCore/qcalendar.h:10,
from /opt/qt6.6-static/include/QtCore/qdatetime.h:8,
from /opt/qt6.6-static/include/QtNetwork/qsslcertificate.h:16:
/opt/qt6.6-static/include/QtCore/qobject.h:198:9: note: candidate: βstatic QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer::Object, Func1, const typename QtPrivate::ContextTypeForFunctor::ContextType, Func2&&, Qt::ConnectionType) [with Func1 = void (QAbstractSocket::)(); Func2 = Http::Server::incomingConnection(qintptr)::<lambda()>; typename QtPrivate::FunctionPointer::Object = QAbstractSocket; typename QtPrivate::ContextTypeForFunctor::ContextType = QObject]β
198 | connect(const typename QtPrivate::FunctionPointer::Object sender, Func1 signal,
| ^~~~~~~
/opt/qt6.6-static/include/QtCore/qobject.h:198:75: note: no known conversion for argument 1 from βQTcpSocketβ to βconst QtPrivate::FunctionPointer<void (QAbstractSocket::)()>::Objectβ {aka βconst QAbstractSocketβ}
198 | connect(const typename QtPrivate::FunctionPointer::Object sender, Func1 signal,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/opt/qt6.6-static/include/QtCore/qobject.h:241:9: note: candidate: βtemplate<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer::Object, Func1, Func2&&)β
241 | connect(const typename QtPrivate::FunctionPointer::Object sender, Func1 signal, Func2 &&slot)
| ^~~~~~~
/opt/qt6.6-static/include/QtCore/qobject.h:241:9: note: template argument deduction/substitution failed:
/app/qBittorrent/src/base/http/server.cpp:140:12: note: candidate expects 3 arguments, 4 provided
140 | connect(serverSocket, &QAbstractSocket::disconnected, this, c, this { removeConnection(c); });
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/qt6.6-static/include/QtCore/qobject.h:177:36: note: candidate: βstatic QMetaObject::Connection QObject::connect(const QObject, const char, const QObject, const char, Qt::ConnectionType)β
177 | static QMetaObject::Connection connect(const QObject sender, const char signal,
| ^~~~~~~
/opt/qt6.6-static/include/QtCore/qobject.h:177:59: note: no known conversion for argument 1 from βQTcpSocketβ to βconst QObjectβ
177 | static QMetaObject::Connection connect(const QObject sender, const char signal,
| ~~~~~~~~~~~~~~~^~~~~~
/opt/qt6.6-static/include/QtCore/qobject.h:180:36: note: candidate: βstatic QMetaObject::Connection QObject::connect(const QObject, const QMetaMethod&, const QObject, const QMetaMethod&, Qt::ConnectionType)β
180 | static QMetaObject::Connection connect(const QObject sender, const QMetaMethod &signal,
| ^~~~~~~
/opt/qt6.6-static/include/QtCore/qobject.h:180:59: note: no known conversion for argument 1 from βQTcpSocketβ to βconst QObjectβ
180 | static QMetaObject::Connection connect(const QObject sender, const QMetaMethod &signal,
| ~~~~~~~~~~~~~~~^~~~~~
/opt/qt6.6-static/include/QtCore/qobject.h:367:32: note: candidate: βQMetaObject::Connection QObject::connect(const QObject, const char, const char, Qt::ConnectionType) constβ
367 | inline QMetaObject::Connection QObject::connect(const QObject asender, const char asignal,
| ^~~~~~~
/opt/qt6.6-static/include/QtCore/qobject.h:367:64: note: no known conversion for argument 1 from βQTcpSocketβ to βconst QObjectβ
367 | inline QMetaObject::Connection QObject::connect(const QObject *asender, const char asignal,
| ~~~~~~~~~~~~~~~^~~~~~~
/app/qBittorrent/src/base/http/server.cpp: In member function βbool Http::Server::setupHttps(const QByteArray&, const QByteArray&)β:
/app/qBittorrent/src/base/http/server.cpp:164:19: error: variable βconst QSslKey keyβ has initializer but incomplete type
164 | const QSslKey key {Utils::Net::loadSSLKey(privateKey)};
| ^~~
/app/qBittorrent/src/base/http/server.cpp:164:46: error: invalid use of incomplete type βclass QSslKeyβ
164 | const QSslKey key {Utils::Net::loadSSLKey(privateKey)};
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/opt/qt6.6-static/include/QtNetwork/qsslcertificate.h:26:7: note: forward declaration of βclass QSslKeyβ
26 | class QSslKey;
| ^~~~~~~
[34/366] Building CXX object src/base/CMakeFiles/qbt_base.dir/net/downloadmanager.cpp.o
FAILED: src/base/CMakeFiles/qbt_base.dir/net/downloadmanager.cpp.o
/usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_NO_DEPRECATED -DOPENSSL_NO_SSL2 -DQBT_USES_DBUS -DQBT_USES_LIBTORRENT2 -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DISABLE_DEPRECATED_UP_TO=0x060500 -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_SQL_LIB -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -DQT_XML_LIB -DTORRENT_LINKING_SHARED -DTORRENT_SSL_PEERS -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -I/app/qBittorrent/build/src/base/qbt_base_autogen/include -I/app/qBittorrent/src -isystem /opt/qt6.6-static/include/QtCore -isystem /opt/qt6.6-static/include -isystem /opt/qt6.6-static/mkspecs/linux-g++ -isystem /opt/qt6.6-static/include/QtNetwork -isystem /opt/qt6.6-static/include/QtSql -isystem /opt/qt6.6-static/include/QtXml -isystem /opt/qt6.6-static/include/QtDBus -O3 -DNDEBUG -std=c++20 -fexceptions -fPIC -ffunction-sections -fdata-sections -Wall -Wextra -Wcast-qual -Wcast-align -Winvalid-pch -Woverloaded-virtual -Wold-style-cast -Wnon-virtual-dtor -pedantic -pedantic-errors -Wstrict-null-sentinel -MD -MT src/base/CMakeFiles/qbt_base.dir/net/downloadmanager.cpp.o -MF src/base/CMakeFiles/qbt_base.dir/net/downloadmanager.cpp.o.d -o src/base/CMakeFiles/qbt_base.dir/net/downloadmanager.cpp.o -c /app/qBittorrent/src/base/net/downloadmanager.cpp
/app/qBittorrent/src/base/net/downloadmanager.cpp: In constructor βNet::DownloadManager::DownloadManager(QObject)β:
/app/qBittorrent/src/base/net/downloadmanager.cpp:121:55: error: βsslErrorsβ is not a member of βQNetworkAccessManagerβ
121 | connect(m_networkManager, &QNetworkAccessManager::sslErrors, this
| ^~~~~~~~~
/app/qBittorrent/src/base/net/downloadmanager.cpp: In lambda function:
/app/qBittorrent/src/base/net/downloadmanager.cpp:126:32: error: βconst class QSslErrorβ has no member named βerrorStringβ
126 | errorList += error.errorString();
| ^~~~~~~~~~~
[45/366] Building CXX object src/base/CMakeFiles/qbt_base.dir/qbt_base_autogen/mocs_compilation.cpp.o
FAILED: src/base/CMakeFiles/qbt_base.dir/qbt_base_autogen/mocs_compilation.cpp.o
/usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_NO_DEPRECATED -DOPENSSL_NO_SSL2 -DQBT_USES_DBUS -DQBT_USES_LIBTORRENT2 -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DISABLE_DEPRECATED_UP_TO=0x060500 -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_SQL_LIB -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -DQT_XML_LIB -DTORRENT_LINKING_SHARED -DTORRENT_SSL_PEERS -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -I/app/qBittorrent/build/src/base/qbt_base_autogen/include -I/app/qBittorrent/src -isystem /opt/qt6.6-static/include/QtCore -isystem /opt/qt6.6-static/include -isystem /opt/qt6.6-static/mkspecs/linux-g++ -isystem /opt/qt6.6-static/include/QtNetwork -isystem /opt/qt6.6-static/include/QtSql -isystem /opt/qt6.6-static/include/QtXml -isystem /opt/qt6.6-static/include/QtDBus -O3 -DNDEBUG -std=c++20 -fexceptions -fPIC -ffunction-sections -fdata-sections -Wall -Wextra -Wcast-qual -Wcast-align -Winvalid-pch -Woverloaded-virtual -Wold-style-cast -Wnon-virtual-dtor -pedantic -pedantic-errors -Wstrict-null-sentinel -MD -MT src/base/CMakeFiles/qbt_base.dir/qbt_base_autogen/mocs_compilation.cpp.o -MF src/base/CMakeFiles/qbt_base.dir/qbt_base_autogen/mocs_compilation.cpp.o.d -o src/base/CMakeFiles/qbt_base.dir/qbt_base_autogen/mocs_compilation.cpp.o -c /app/qBittorrent/build/src/base/qbt_base_autogen/mocs_compilation.cpp
In file included from /app/qBittorrent/build/src/base/qbt_base_autogen/N5CYPY6UQL/moc_server.cpp:9,
from /app/qBittorrent/build/src/base/qbt_base_autogen/mocs_compilation.cpp:18:
/app/qBittorrent/build/src/base/qbt_base_autogen/N5CYPY6UQL/../../../../../src/base/http/server.h:66:17: error: field βm_keyβ has incomplete type βQSslKeyβ
66 | QSslKey m_key;
| ^~~~~
In file included from /opt/qt6.6-static/include/QtNetwork/QSslCertificate:1,
from /app/qBittorrent/build/src/base/qbt_base_autogen/N5CYPY6UQL/../../../../../src/base/http/server.h:34:
/opt/qt6.6-static/include/QtNetwork/qsslcertificate.h:26:7: note: forward declaration of βclass QSslKeyβ
26 | class QSslKey;
| ^~~~~~~
[51/366] Building CXX object src/base/CMakeFiles/qbt_base.dir/bittorrent/sessionimpl.cpp.o
ninja: build stopped: subcommand failed.
-- Install configuration: "Release"
CMake Error at build/src/app/cmake_install.cmake:52 (file):
file INSTALL cannot find "/app/qBittorrent/build/qbittorrent": No such file
or directory.
Call Stack (most recent call first):
build/src/cmake_install.cmake:47 (include)
build/cmake_install.cmake:47 (include)
What is the problem?
error during compiling:
/app/qBittorrent/src/base/http/server.h:66:17: error: field βm_keyβ has incomplete type βQSslKeyβ
Steps to reproduce
No response
Additional context
No response
Log(s) & preferences file(s)
No response
All reactions