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

iOS QtQuick app linking fails to locate libqtquick2plugin and other library dependencies

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 6.4.0 Beta2
    • Fix Version/s: None
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Platform/s:
      iOS/tvOS/watchOS

      Description

      Trying to build the Squish quickaddressbook example (A simple QQC2-based app) against Qt 6.4.0beta2 for iOS simulator fails with the following error messages during build:

      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/libqtquick2plugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQml/libqmlplugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQml/Models/libmodelsplugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQml/WorkerScript/libworkerscriptplugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/Controls/libqtquickcontrols2plugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/Controls/impl/libqtquickcontrols2implplugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/Controls/Fusion/libqtquickcontrols2fusionstyleplugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/Controls/Material/libqtquickcontrols2materialstyleplugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/Controls/Imagine/libqtquickcontrols2imaginestyleplugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/Controls/Universal/libqtquickcontrols2universalstyleplugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/Controls/iOS/libqtquickcontrols2iosstyleplugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/Controls/Basic/libqtquickcontrols2basicstyleplugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/Templates/libqtquicktemplates2plugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/Controls/Fusion/impl/libqtquickcontrols2fusionstyleimplplugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/Window/libquickwindowplugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/Controls/Material/impl/libqtquickcontrols2materialstyleimplplugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/Controls/Imagine/impl/libqtquickcontrols2imaginestyleimplplugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/Controls/Universal/impl/libqtquickcontrols2universalstyleimplplugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/Controls/iOS/impl/libqtquickcontrols2iosstyleimplplugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/Shapes/libqmlshapesplugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/Controls/Basic/impl/libqtquickcontrols2basicstyleimplplugin.a'
      clang: error: no such file or directory: '/Users/qt/work/qt/qtdeclarative/build/target/qml/QtQuick/Layouts/libqquicklayoutsplugin.a'
      Command Ld failed with a nonzero exit code
      

      My cleaned qmake project looks like this:

      QT *= quick
      SOURCES += main.cpp
      RESOURCES += quickaddressbook.qrc
      

      A quick grep shows that these absolute paths come from the QMAKE_PRL_LIBS variable in 6.4.0/ios/qml/QtQuick/libqtquick2plugin.prl.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qtbuildsystem Qt Build System Team
              Reporter:
              stefgehn Stefan Gehn
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes