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. cmake generate IOS project : Undefined symbols for architecture arm64
Forum Updated to NodeBB v4.3 + New Features

cmake generate IOS project : Undefined symbols for architecture arm64

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 1 Posters 730 Views
  • 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.
  • G Offline
    G Offline
    GreatJohn
    wrote on last edited by GreatJohn
    #1

    ![0_1539684472599_601e19a9-a64d-4962-9bef-7ae3be382fb5-image.png](Uploading 25%)

    I use cmake to create a IOS project . but Xcode occur a "Undefined symbols" when
    build it.

    the link error is blow:

    Undefined symbols for architecture arm64:
    "_pcre2_match_16", referenced from:
    safe_pcre2_match_16(pcre2_real_code_16 const*, unsigned short const*, int, int, int, pcre2_real_match_data_16*, pcre2_real_match_context_16*) in libQt5Core_debug.a(qregularexpression.o)
    "_pcre2_match_context_create_16", referenced from:
    QRegularExpressionPrivate::doMatch(QString const&, int, int, int, QRegularExpression::MatchType, QFlagsQRegularExpression::MatchOption, QRegularExpressionPrivate::CheckSubjectStringOption, QRegularExpressionMatchPrivate const*) const in libQt5Core_debug.a(qregularexpression.o)
    "_pcre2_jit_stack_assign_16", referenced from:
    QRegularExpressionPrivate::doMatch(QString const&, int, int, int, QRegularExpression::MatchType, QFlagsQRegularExpression::MatchOption, QRegularExpressionPrivate::CheckSubjectStringOption, QRegularExpressionMatchPrivate const*) const in libQt5Core_debug.a(qregularexpression.o)
    "_pcre2_jit_stack_create_16", referenced from:
    QPcreJitStackPointer::QPcreJitStackPointer() in libQt5Core_debug.a(qregularexpression.o)
    "_pcre2_match_data_create_from_pattern_16", referenced from:
    QRegularExpressionPrivate::doMatch(QString const&, int, int, int, QRegularExpression::MatchType, QFlagsQRegularExpression::MatchOption, QRegularExpressionPrivate::CheckSubjectStringOption, QRegularExpressionMatchPrivate const*) const in libQt5Core_debug.a(qregularexpression.o)
    "_pcre2_jit_stack_free_16", referenced from:
    QPcreJitStackPointer::~QPcreJitStackPointer() in libQt5Core_debug.a(qregularexpression.o)
    "_pcre2_get_ovector_pointer_16", referenced from:
    QRegularExpressionPrivate::doMatch(QString const&, int, int, int, QRegularExpression::MatchType, QFlagsQRegularExpression::MatchOption, QRegularExpressionPrivate::CheckSubjectStringOption, QRegularExpressionMatchPrivate const*) const in libQt5Core_debug.a(qregularexpression.o)
    "_pcre2_match_data_free_16", referenced from:
    QRegularExpressionPrivate::doMatch(QString const&, int, int, int, QRegularExpression::MatchType, QFlagsQRegularExpression::MatchOption, QRegularExpressionPrivate::CheckSubjectStringOption, QRegularExpressionMatchPrivate const*) const in libQt5Core_debug.a(qregularexpression.o)
    "_pcre2_jit_compile_16", referenced from:
    QRegularExpressionPrivate::optimizePattern(QRegularExpressionPrivate::OptimizePatternOption) in libQt5Core_debug.a(qregularexpression.o)
    "_pcre2_config_16", referenced from:
    QRegularExpressionPrivate::getPatternInfo() in libQt5Core_debug.a(qregularexpression.o)
    "_pcre2_pattern_info_16", referenced from:
    QRegularExpressionPrivate::getPatternInfo() in libQt5Core_debug.a(qregularexpression.o)
    QRegularExpressionPrivate::doMatch(QString const&, int, int, int, QRegularExpression::MatchType, QFlagsQRegularExpression::MatchOption, QRegularExpressionPrivate::CheckSubjectStringOption, QRegularExpressionMatchPrivate const*) const in libQt5Core_debug.a(qregularexpression.o)
    "_pcre2_code_free_16", referenced from:
    QRegularExpressionPrivate::cleanCompiledPattern() in libQt5Core_debug.a(qregularexpression.o)
    "_kUTTagClassFilenameExtension", referenced from:
    isPackage(QFileSystemMetaData const&, QFileSystemEntry const&) in libQt5Core_debug.a(qfilesystemengine_unix.o)
    "_UTTypeConformsTo", referenced from:
    isPackage(QFileSystemMetaData const&, QFileSystemEntry const&) in libQt5Core_debug.a(qfilesystemengine_unix.o)
    "_pcre2_match_context_free_16", referenced from:
    QRegularExpressionPrivate::doMatch(QString const&, int, int, int, QRegularExpression::MatchType, QFlagsQRegularExpression::MatchOption, QRegularExpressionPrivate::CheckSubjectStringOption, QRegularExpressionMatchPrivate const*) const in libQt5Core_debug.a(qregularexpression.o)
    "_pcre2_compile_16", referenced from:
    QRegularExpressionPrivate::compilePattern() in libQt5Core_debug.a(qregularexpression.o)
    "_kUTTypeBundle", referenced from:
    isPackage(QFileSystemMetaData const&, QFileSystemEntry const&) in libQt5Core_debug.a(qfilesystemengine_unix.o)
    "_UTTypeCreatePreferredIdentifierForTag", referenced from:
    isPackage(QFileSystemMetaData const&, QFileSystemEntry const&) in libQt5Core_debug.a(qfilesystemengine_unix.o)
    "_uncompress", referenced from:
    qUncompress(unsigned char const*, int) in libQt5Core_debug.a(qbytearray.o)
    (maybe you meant: _z_uncompress)
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    Showing Recent Messages
    safe_pcre2_match_16(pcre2_real_code_16 const*, unsigned short const*, int, int, int, pcre2_real_match_data_16*, pcre2_real_match_context_16*) in libQt5Core_debug.a(qregularexpression.o)

      QRegularExpressionPrivate::doMatch(QString const&, int, int, int, QRegularExpression::MatchType, QFlags<QRegularExpression::MatchOption>, QRegularExpressionPrivate::CheckSubjectStringOption, QRegularExpressionMatchPrivate const*) const in libQt5Core_debug.a(qregularexpression.o)
    
    
    
      QRegularExpressionPrivate::doMatch(QString const&, int, int, int, QRegularExpression::MatchType, QFlags<QRegularExpression::MatchOption>, QRegularExpressionPrivate::CheckSubjectStringOption, QRegularExpressionMatchPrivate const*) const in libQt5Core_debug.a(qregularexpression.o)
    

    same link: https://forum.qt.io/topic/56147/qt-5-5-0-get-error-undefined-symbol-architecture-when-using-in-xcode-with-iphoneos/4

    1 Reply Last reply
    0
    • G Offline
      G Offline
      GreatJohn
      wrote on last edited by GreatJohn
      #2

      ![0_1539691617886_2629dbb8-68eb-4456-80a2-6264b8c8c296-image.png](Uploading 100%)

      sreencut of xcode build is below:

      alt text

      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