Replies: 26 comments 43 replies
-
sadly neither Debian has qt6.5 even on unstable repo |
Beta Was this translation helpful? Give feedback.
-
hi @flaggz thanks, best regards. |
Beta Was this translation helpful? Give feedback.
-
tried, but same result: FAILED: src/base/CMakeFiles/qbt_base.dir/net/downloadmanager.cpp.o |
Beta Was this translation helpful? Give feedback.
-
You could see how it is compiled on GitHub CI. |
Beta Was this translation helpful? Give feedback.
-
please, where is github CI? but there is a way to compile in ubuntu last code? |
Beta Was this translation helpful? Give feedback.
-
Configuration for Ubuntu CI: https://github.com/qbittorrent/qBittorrent/blob/master/.github/workflows/ci_ubuntu.yaml |
Beta Was this translation helpful? Give feedback.
-
I myself use the official Qt binaries on Linux Mint. |
Beta Was this translation helpful? Give feedback.
-
that is not very useful
|
Beta Was this translation helpful? Give feedback.
-
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... |
Beta Was this translation helpful? Give feedback.
-
please how use that Configuration for Ubuntu CI? and what version is the original qt of mint? thanks |
Beta Was this translation helpful? Give feedback.
-
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
|
Beta Was this translation helpful? Give feedback.
-
@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? |
Beta Was this translation helpful? Give feedback.
-
It's wrong! You need |
Beta Was this translation helpful? Give feedback.
-
thanks already installed, same error |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
i have register at qt site, and installed this: thanks for all |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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:
|
Beta Was this translation helpful? Give feedback.
-
@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. |
Beta Was this translation helpful? Give feedback.
-
But Debian and Ubuntu provide only Qt 6.4.2 and boost 1.74 |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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). |
Beta Was this translation helpful? Give feedback.
-
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/ |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions