Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Unsolved Problems of QT 5.6 Statically compiled

    General and Desktop
    2
    2
    1571
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • smallcsduck
      smallcsduck last edited by smallcsduck

      Problems of QT 5.6 Statically compiled

      Do openssl static library generates the error ?
      QT statically compiled how support openssl?

      onfigure -release -opensource -static -static-runtime -nomake examples -no-compile-examples -opengl desktop -no-angle -openvg -icu -ltcg -glib -openssl -audio-backend -wmf-backend -directwrite -direct2d -mp

      error:

      Qt5Network.lib(qnetworkaccessmanager.obj) : error LNK2001: 无法解析的外部符号 "public: bool __cdecl QSslConfiguration::operator==(class QSslConfiguration const &)const " (??8QSslConfiguration@@QEBA_NAEBV0@@Z)
      Qt5Network.lib(qnetworkaccessmanager.obj) : error LNK2001: 无法解析的外部符号 "public: static class QSslConfiguration __cdecl QSslConfiguration::defaultConfiguration(void)" (?defaultConfiguration@QSslConfiguration@@SA?AV1@XZ)
      Qt5Network.lib(qnetworkaccessmanager.obj) : error LNK2001: 无法解析的外部符号 "public: __cdecl QSslConfiguration::~QSslConfiguration(void)" (??1QSslConfiguration@@QEAA@XZ)
      Qt5Network.lib(qnetworkaccessmanager.obj) : error LNK2001: 无法解析的外部符号 "public: class QList<class QByteArray> __cdecl QSslConfiguration::allowedNextProtocols(void)const " (?allowedNextProtocols@QSslConfiguration@@QEBA?AV?$QList@VQByteArray@@@@XZ)
      Qt5Network.lib(qnetworkaccessmanager.obj) : error LNK2001: 无法解析的外部符号 "public: static char const * const QSslConfiguration::NextProtocolSpdy3_0" (?NextProtocolSpdy3_0@QSslConfiguration@@2QBDB)
      Qt5Network.lib(qnetworkaccessmanager.obj) : error LNK2001: 无法解析的外部符号 "public: static bool __cdecl QSslSocket::supportsSsl(void)" (?supportsSsl@QSslSocket@@SA_NXZ)
      Qt5Network.lib(qnetworkaccessmanager.obj) : error LNK2001: 无法解析的外部符号 "public: __cdecl QSslConfiguration::QSslConfiguration(class QSslConfiguration const &)" (??0QSslConfiguration@@QEAA@AEBV0@@Z)
      Qt5Network.lib(qnetworkaccessmanager.obj) : error LNK2001: 无法解析的外部符号 "public: __cdecl QSslConfiguration::QSslConfiguration(void)" (??0QSslConfiguration@@QEAA@XZ)
      Qt5Network.lib(qnetworkaccessmanager.obj) : error LNK2001: 无法解析的外部符号 "public: __cdecl QSslError::QSslError(class QSslError const &)" (??0QSslError@@QEAA@AEBV0@@Z)
      Qt5Network.lib(qnetworkaccessmanager.obj) : error LNK2001: 无法解析的外部符号 "public: __cdecl QSslError::~QSslError(void)" (??1QSslError@@QEAA@XZ)
      Qt5Network.lib(qnetworkrequest.obj) : error LNK2001: 无法解析的外部符号 "public: class QSslConfiguration & __cdecl QSslConfiguration::operator=(class QSslConfiguration const &)" (??4QSslConfiguration@@QEAAAEAV0@AEBV0@@Z)
      Qt5Network.lib(qnetworkreplyimpl.obj) : error LNK2001: 无法解析的外部符号 "public: bool __cdecl QSslConfiguration::isNull(void)const " (?isNull@QSslConfiguration@@QEBA_NXZ)
      Qt5Network.lib(qhttpthreaddelegate.obj) : error LNK2001: 无法解析的外部符号 "public: static char const * const QSslConfiguration::NextProtocolHttp1_1" (?NextProtocolHttp1_1@QSslConfiguration@@2QBDB)
      Qt5Network.lib(qhttpthreaddelegate.obj) : error LNK2001: 无法解析的外部符号 "public: void __cdecl QSslConfiguration::setAllowedNextProtocols(class QList<class QByteArray>)" (?setAllowedNextProtocols@QSslConfiguration@@QEAAXV?$QList@VQByteArray@@@@@Z)
      Qt5Network.lib(qhttpnetworkreply.obj) : error LNK2001: 无法解析的外部符号 "public: static struct QMetaObject const QSslSocket::staticMetaObject" (?staticMetaObject@QSslSocket@@2UQMetaObject@@B)
      Qt5Network.lib(qhttpnetworkreply.obj) : error LNK2001: 无法解析的外部符号 "public: class QSslConfiguration __cdecl QSslSocket::sslConfiguration(void)const " (?sslConfiguration@QSslSocket@@QEBA?AVQSslConfiguration@@XZ)
      Qt5Network.lib(qabstractsocket.obj) : error LNK2001: 无法解析的外部符号 "public: void __cdecl QSslSocket::abort(void)" (?abort@QSslSocket@@QEAAXXZ)
      Qt5Network.lib(qabstractsocket.obj) : error LNK2001: 无法解析的外部符号 "public: bool __cdecl QSslSocket::flush(void)" (?flush@QSslSocket@@QEAA_NXZ)
      Qt5Network.lib(qhttpnetworkconnection.obj) : error LNK2001: 无法解析的外部符号 "public: static void __cdecl QSslSocketPrivate::pauseSocketNotifiers(class QSslSocket *)" (?pauseSocketNotifiers@QSslSocketPrivate@@SAXPEAVQSslSocket@@@Z)
      Qt5Network.lib(qhttpnetworkconnection.obj) : error LNK2001: 无法解析的外部符号 "public: static void __cdecl QSslSocketPrivate::resumeSocketNotifiers(class QSslSocket *)" (?resumeSocketNotifiers@QSslSocketPrivate@@SAXPEAVQSslSocket@@@Z)
      Qt5Network.lib(qhttpnetworkconnectionchannel.obj) : error LNK2001: 无法解析的外部符号 "public: __cdecl QSslSocket::QSslSocket(class QObject *)" (??0QSslSocket@@QEAA@PEAVQObject@@@Z)
      Qt5Network.lib(qhttpnetworkconnectionchannel.obj) : error LNK2001: 无法解析的外部符号 "public: void __cdecl QSslSocket::ignoreSslErrors(void)" (?ignoreSslErrors@QSslSocket@@QEAAXXZ)
      Qt5Network.lib(qhttpnetworkconnectionchannel.obj) : error LNK2001: 无法解析的外部符号 "public: void __cdecl QSslSocket::ignoreSslErrors(class QList<class QSslError> const &)" (?ignoreSslErrors@QSslSocket@@QEAAXAEBV?$QList@VQSslError@@@@@Z)
      Qt5Network.lib(qhttpnetworkconnectionchannel.obj) : error LNK2001: 无法解析的外部符号 "public: void __cdecl QSslSocket::setSslConfiguration(class QSslConfiguration const &)" (?setSslConfiguration@QSslSocket@@QEAAXAEBVQSslConfiguration@@@Z)
      Qt5Network.lib(qhttpnetworkconnectionchannel.obj) : error LNK2001: 无法解析的外部符号 "public: static void __cdecl QSslSocketPrivate::checkSettingSslContext(class QSslSocket *,class QSharedPointer<class QSslContext>)" (?checkSettingSslContext@QSslSocketPrivate@@SAXPEAVQSslSocket@@V?$QSharedPointer@VQSslContext@@@@@Z)
      Qt5Network.lib(qhttpnetworkconnectionchannel.obj) : error LNK2001: 无法解析的外部符号 "public: void __cdecl QSslSocket::connectToHostEncrypted(class QString const &,unsigned short,class QFlags<enum QIODevice::OpenModeFlag>,enum QAbstractSocket::NetworkLayerProtocol)" (?connectToHostEncrypted@QSslSocket@@QEAAXAEBVQString@@GV?$QFlags@W4OpenModeFlag@QIODevice@@@@W4NetworkLayerProtocol@QAbstractSocket@@@Z)
      Qt5Network.lib(qhttpnetworkconnectionchannel.obj) : error LNK2001: 无法解析的外部符号 "public: static class QSharedPointer<class QSslContext> __cdecl QSslSocketPrivate::sslContext(class QSslSocket *)" (?sslContext@QSslSocketPrivate@@SA?AV?$QSharedPointer@VQSslContext@@@@PEAVQSslSocket@@@Z)
      Qt5Network.lib(qhttpnetworkconnectionchannel.obj) : error LNK2001: 无法解析的外部符号 "public: enum QSslConfiguration::NextProtocolNegotiationStatus __cdecl QSslConfiguration::nextProtocolNegotiationStatus(void)const " (?nextProtocolNegotiationStatus@QSslConfiguration@@QEBA?AW4NextProtocolNegotiationStatus@1@XZ)
      Qt5Network.lib(qhttpnetworkconnectionchannel.obj) : error LNK2001: 无法解析的外部符号 "public: class QByteArray __cdecl QSslConfiguration::nextNegotiatedProtocol(void)const " (?nextNegotiatedProtocol@QSslConfiguration@@QEBA?AVQByteArray@@XZ)
      Qt5Network.lib(qhttpprotocolhandler.obj) : error LNK2001: 无法解析的外部符号 "public: __int64 __cdecl QSslSocket::encryptedBytesToWrite(void)const " (?encryptedBytesToWrite@QSslSocket@@QEBA_JXZ)

      Do openssl static library generates the error ?
      QT statically compiled how support openssl?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        Where are you OpenSSL libraries located ? What compiler are you using ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • First post
          Last post