Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 5.5.0 get error 'undefined symbol architecture' when using in xcode with iphoneOS
Forum Updated to NodeBB v4.3 + New Features

Qt 5.5.0 get error 'undefined symbol architecture' when using in xcode with iphoneOS

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 2 Posters 3.3k Views 2 Watching
  • 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.
  • L Offline
    L Offline
    love8879201
    wrote on 8 Jul 2015, 04:01 last edited by love8879201 7 Aug 2015, 04:02
    #1

    it seems error comes out with SSL, anyone can help?

    below is error message

    defined symbols for architecture arm64:
    "_inflate", referenced from:
    QHttpNetworkReplyPrivate::uncompressBodyData(QByteDataBuffer*, QByteDataBuffer*) in libQt5Network.a(qhttpnetworkreply.o)
    "_inflateEnd", referenced from:
    QHttpNetworkReply::~QHttpNetworkReply() in libQt5Network.a(qhttpnetworkreply.o)
    QHttpNetworkReplyPrivate::clearHttpLayerInformation() in libQt5Network.a(qhttpnetworkreply.o)
    QHttpNetworkReplyPrivate::uncompressBodyData(QByteDataBuffer*, QByteDataBuffer*) in libQt5Network.a(qhttpnetworkreply.o)
    "_SSLCopyPeerTrust", referenced from:
    QSslSocketBackendPrivate::verifyPeerTrust() in libQt5Network.a(qsslsocket_mac.o)
    "_SecCertificateCopyData", referenced from:
    QSslSocketBackendPrivate::verifyPeerTrust() in libQt5Network.a(qsslsocket_mac.o)
    "_SecCertificateCreateWithData", referenced from:
    QSslSocketBackendPrivate::verifyPeerTrust() in libQt5Network.a(qsslsocket_mac.o)
    "_SecTrustSetAnchorCertificatesOnly", referenced from:
    QSslSocketBackendPrivate::verifyPeerTrust() in libQt5Network.a(qsslsocket_mac.o)
    "_SecTrustEvaluate", referenced from:
    -[QtNSURLConnectionDelegate connection:willSendRequestForAuthenticationChallenge:] in libQt5Network.a(qnetworkreplynsurlconnectionimpl.o)
    QSslSocketBackendPrivate::verifyPeerTrust() in libQt5Network.a(qsslsocket_mac.o)
    "_SSLSetProtocolVersionMax", referenced from:
    QSslSocketBackendPrivate::setSessionProtocol() in libQt5Network.a(qsslsocket_mac.o)
    "_kSecImportExportPassphrase", referenced from:
    QSslSocketBackendPrivate::setSessionCertificate(QString&, QAbstractSocket::SocketError&) in libQt5Network.a(qsslsocket_mac.o)
    "_kSecImportItemCertChain", referenced from:
    QSslSocketBackendPrivate::setSessionCertificate(QString&, QAbstractSocket::SocketError&) in libQt5Network.a(qsslsocket_mac.o)
    "std::__1::basic_ostream<char, std::__1::char_traits<char> >::sentry::~sentry()", referenced from:
    std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in libqxmpp.a(QXmppLogger.o)
    "_SSLSetCertificate", referenced from:
    QSslSocketBackendPrivate::setSessionCertificate(QString&, QAbstractSocket::SocketError&) in libQt5Network.a(qsslsocket_mac.o)
    "_SecTrustSetAnchorCertificates", referenced from:
    QSslSocketBackendPrivate::verifyPeerTrust() in libQt5Network.a(qsslsocket_mac.o)
    "_SSLHandshake", referenced from:
    QSslSocketBackendPrivate::startHandshake() in libQt5Network.a(qsslsocket_mac.o)
    "_pcre16_compile2", referenced from:
    QRegularExpressionPrivate::compilePattern() in libQt5Core.a(qregularexpression.o)
    "_SSLSetConnection", referenced from:
    QSslSocketBackendPrivate::initSslContext() in libQt5Network.a(qsslsocket_mac.o)
    "std::__1::basic_ostream<char, std::__1::char_traits<char> >::flush()", referenced from:
    QXmppLogger::log(QXmppLogger::MessageType, QString const&) in libqxmpp.a(QXmppLogger.o)
    "_SSLGetNegotiatedProtocolVersion", referenced from:
    QSslSocketBackendPrivate::sessionProtocol() const in libQt5Network.a(qsslsocket_mac.o)
    "inflateInit2", referenced from:
    QHttpNetworkReplyPrivate::readHeader(QAbstractSocket*) in libQt5Network.a(qhttpnetworkreply.o)
    QHttpNetworkReplyPrivate::uncompressBodyData(QByteDataBuffer*, QByteDataBuffer*) in libQt5Network.a(qhttpnetworkreply.o)
    "_kSecImportItemIdentity", referenced from:
    QSslSocketBackendPrivate::setSessionCertificate(QString&, QAbstractSocket::SocketError&) in libQt5Network.a(qsslsocket_mac.o)
    "_SSLGetNumberSupportedCiphers", referenced from:
    QSslSocketPrivate::ensureInitialized() in libQt5Network.a(qsslsocket_mac.o)
    "_SSLSetPeerDomainName", referenced from:
    QSslSocketBackendPrivate::initSslContext() in libQt5Network.a(qsslsocket_mac.o)
    "_SSLGetNegotiatedCipher", referenced from:
    QSslSocketBackendPrivate::sessionCipher() const in libQt5Network.a(qsslsocket_mac.o)
    "_SSLClose", referenced from:
    QSslSocketBackendPrivate::disconnectFromHost() in libQt5Network.a(qsslsocket_mac.o)
    "_SSLSetSessionOption", referenced from:
    QSslSocketBackendPrivate::initSslContext() in libQt5Network.a(qsslsocket_mac.o)
    "_SSLSetClientSideAuthenticate", referenced from:
    QSslSocketBackendPrivate::initSslContext() in libQt5Network.a(qsslsocket_mac.o)
    "_SSLCreateContext", referenced from:
    QSslSocketPrivate::ensureInitialized() in libQt5Network.a(qsslsocket_mac.o)
    QSslSocketBackendPrivate::initSslContext() in libQt5Network.a(qsslsocket_mac.o)
    "_SSLGetSupportedCiphers", referenced from:
    QSslSocketPrivate::ensureInitialized() in libQt5Network.a(qsslsocket_mac.o)
    "_SSLWrite", referenced from:
    QSslSocketBackendPrivate::transmit() in libQt5Network.a(qsslsocket_mac.o)
    "std::__1::basic_ostream<char, std::__1::char_traits<char> >::sentry::sentry(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)", referenced from:
    std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in libqxmpp.a(QXmppLogger.o)
    "_pcre16_config", referenced from:
    QRegularExpressionPrivate::getPatternInfo() in libQt5Core.a(qregularexpression.o)
    "_pcre16_jit_stack_free", referenced from:
    QThreadStorage<QPcreJitStackPointer*>::deleteData(void*) in libQt5Core.a(qregularexpression.o)
    "_SecPKCS12Import", referenced from:
    QSslSocketBackendPrivate::setSessionCertificate(QString&, QAbstractSocket::SocketError&) in libQt5Network.a(qsslsocket_mac.o)
    "std::__1::ios_base::__set_badbit_and_consider_rethrow()", referenced from:
    std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in libqxmpp.a(QXmppLogger.o)
    "_pcre16_exec", referenced from:
    pcre16SafeExec(real_pcre16 const*, pcre16_extra const*, unsigned short const*, int, int, int, int*, int) in libQt5Core.a(qregularexpression.o)
    "std::bad_alloc::bad_alloc()", referenced from:
    qBadAlloc() in libQt5Core.a(qglobal.o)
    QVector<QList<bool ()(void**)> >::reallocData(int, int, QFlagsQArrayData::AllocationOption) in libQt5Core.a(qglobal.o)
    "std::__1::cout", referenced from:
    QXmppLogger::log(QXmppLogger::MessageType, QString const&) in libqxmpp.a(QXmppLogger.o)
    "std::__1::ios_base::getloc() const", referenced from:
    QXmppLogger::log(QXmppLogger::MessageType, QString const&) in libqxmpp.a(QXmppLogger.o)
    std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const
    , unsigned long) in libqxmpp.a(QXmppLogger.o)
    "_SecTrustGetCertificateCount", referenced from:
    QSslSocketBackendPrivate::verifyPeerTrust() in libQt5Network.a(qsslsocket_mac.o)
    "std::__1::ios_base::clear(unsigned int)", referenced from:
    std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in libqxmpp.a(QXmppLogger.o)
    "_pcre16_jit_stack_alloc", referenced from:
    pcre16SafeExec(real_pcre16 const*, pcre16_extra const*, unsigned short const*, int, int, int, int*, int) in libQt5Core.a(qregularexpression.o)
    "_SSLRead", referenced from:
    QSslSocketBackendPrivate::transmit() in libQt5Network.a(qsslsocket_mac.o)
    "_SSLSetIOFuncs", referenced from:
    QSslSocketBackendPrivate::initSslContext() in libQt5Network.a(qsslsocket_mac.o)
    "std::__1::ctype<char>::id", referenced from:
    QXmppLogger::log(QXmppLogger::MessageType, QString const&) in libqxmpp.a(QXmppLogger.o)
    std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in libqxmpp.a(QXmppLogger.o)
    "std::__1::locale::~locale()", referenced from:
    QXmppLogger::log(QXmppLogger::MessageType, QString const&) in libqxmpp.a(QXmppLogger.o)
    std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in libqxmpp.a(QXmppLogger.o)
    "_uncompress", referenced from:
    qUncompress(unsigned char const*, int) in libQt5Core.a(qbytearray.o)
    "_pcre16_study", referenced from:
    QRegularExpressionPrivate::optimizePattern(QRegularExpressionPrivate::OptimizePatternOption) in libQt5Core.a(qregularexpression.o)
    "_pcre16_assign_jit_stack", referenced from:
    QRegularExpressionPrivate::optimizePattern(QRegularExpressionPrivate::OptimizePatternOption) in libQt5Core.a(qregularexpression.o)
    "_SecTrustGetCertificateAtIndex", referenced from:
    QSslSocketBackendPrivate::verifyPeerTrust() in libQt5Network.a(qsslsocket_mac.o)
    "std::__1::basic_ostream<char, std::__1::char_traits<char> >::put(char)", referenced from:
    QXmppLogger::log(QXmppLogger::MessageType, QString const&) in libqxmpp.a(QXmppLogger.o)
    "_pcre16_fullinfo", referenced from:
    QRegularExpressionPrivate::getPatternInfo() in libQt5Core.a(qregularexpression.o)
    "void std::__1::__sort<std::__1::__less<int, int>&, int*>(int*, int*, std::__1::__less<int, int>&)", referenced from:
    QString::multiArg(int, QString const**) const in libQt5Core.a(qstring.o)
    "_pcre16_free_study", referenced from:
    QRegularExpressionPrivate::~QRegularExpressionPrivate() in libQt5Core.a(qregularexpression.o)
    QRegularExpressionPrivate::compilePattern() in libQt5Core.a(qregularexpression.o)
    "std::__1::locale::use_facet(std::__1::locale::id&) const", referenced from:
    QXmppLogger::log(QXmppLogger::MessageType, QString const&) in libqxmpp.a(QXmppLogger.o)
    std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in libqxmpp.a(QXmppLogger.o)
    "_SSLSetProtocolVersionMin", referenced from:
    QSslSocketBackendPrivate::setSessionProtocol() in libQt5Network.a(qsslsocket_mac.o)
    "_pcre16_free", referenced from:
    QRegularExpressionPrivate::~QRegularExpressionPrivate() in libQt5Core.a(qregularexpression.o)
    QRegularExpressionPrivate::compilePattern() in libQt5Core.a(qregularexpression.o)
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 8 Jul 2015, 21:11 last edited by
      #2

      Hi,

      Is this a custom build of Qt ?

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

      L 1 Reply Last reply 11 Jul 2015, 11:38
      0
      • S SGaist
        8 Jul 2015, 21:11

        Hi,

        Is this a custom build of Qt ?

        L Offline
        L Offline
        love8879201
        wrote on 11 Jul 2015, 11:38 last edited by
        #3

        @SGaist
        No, i am using Qt build library.
        In the beginning, i just useing libQt5Core, libQt5Network, libQt5Xml, because it works perfectly on android. but it comes out many problems when i use it on iOS.
        eventually, i was able to fix it.
        The error message on Xcode , include below issue

        1. SSL issue
          i fixed SSL issue by importing xcode library Security.framework. i hope it could be mentioned that Security.framework is needed on iOS in the document, if Qt lib needs it.
        2. pcre issue
          import qt third party library e.g. qtpcre library
        3. std issue
          change xcode c++ standard library setting to libc++

        thank you for replying my question.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 11 Jul 2015, 22:07 last edited by
          #4
          1. What parameter did you use when compiling Qt for iOS ?
          2. What is your issue with PCRE ?

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

          L 1 Reply Last reply 20 Jul 2015, 07:42
          0
          • S SGaist
            11 Jul 2015, 22:07
            1. What parameter did you use when compiling Qt for iOS ?
            2. What is your issue with PCRE ?
            L Offline
            L Offline
            love8879201
            wrote on 20 Jul 2015, 07:42 last edited by
            #5

            @SGaist
            i didn't compile Qt for iOS, i just use the Qt library to iOS,
            and only include them on xcode, then run app, and it put me error above.

            the three lib i have to use is QtCore, QtNetwork, QtXml, and it works great on android,
            i don't know what iOS needs the PCRE lib, but it did, maybe it cause QRegularExpression use in libQtCore

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 28 Jul 2015, 22:51 last edited by
              #6

              What version of OS X and Xcode are you running ?

              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
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved