Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-93021

Qt6 Static build for macOS problem: Undefined symbols for architecture x86_64 and issues with libraries linking.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.0.4, 6.1.1, 6.2.0
    • 6.0.3, 6.1.0 Beta3
    • Build System
    • None
    • macOS
    • efbcfcc067b1755dd89a819954ec9fd20c58b00e 31ee3c84a78afa67eeb4e4b6da5a8181ea62c387 (qt/tqtc-qtbase/6.2)

    Description

      The issue appears while compiling QML project (qmake) under Qt6 Static build.

      The compilations process exits with code 2 and reporting "Undefined symbols for architecture x86_64".

      Further analisys of compile output shows number of issues, which seems to be libraries/plugins linking to Static build:

      Undefined symbols for architecture x86_64: "qml_register_types_QtQuick_Layouts()", referenced from: qt_plugin_instance_QtQuickLayoutsPlugin() in libqquicklayoutsplugin.a(plugin.cpp.o) "qml_register_types_Qt_labs_settings()", referenced from: qt_plugin_instance_QmlSettingsPlugin() in libqmlsettingsplugin.a(plugin.cpp.o) ... ... ... libqtvirtualkeyboard_pinyin.a(pinyindecoderservice.cpp.o) "_im_set_max_lens", referenced from: QtVirtualKeyboard::PinyinDecoderService::setLimits(int, int) in libqtvirtualkeyboard_pinyin.a(pinyindecoderservice.cpp.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [ATU_connect.app/Contents/MacOS/ATU_connect] Error 1 21:53:54: The process "/usr/bin/make" exited with code 2. Error while building/deploying project ATU_connect (kit: 6.1.0_static) When executing step "Make"

      Same resuilt/same error output on Static builds of Qt versions 6.0.3 and 6.1.0-beta3 and under Xcode 12.0 and 12.4.

      Full compile output log attached
      Static configuration log attached

      Attachments

        1. qtquickcontrols2.conf
          0.1 kB
        2. HTTP Example compile output.txt.
          163 kB
        3. configure_2.txt
          50 kB
        4. configure_1.txt
          50 kB
        5. configuration.txt
          54 kB
        6. compile_output.txt
          96 kB
        7. compile_output_2.txt
          31 kB
        8. compile_output_1.txt
          30 kB
        9. 6.1.0-static-output_built.txt
          74 kB
        10. 6.1.0rc-Static-compile output.txt
          46 kB
        11. 6.1.0rc_UPDATED_Static-compile output.txt
          27 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              alexandru.croitor Alexandru Croitor
              jirauser60485 user-25559 (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes