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

examples relying on qmlimportscanner do not build in uninstalled prefixed static build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.7.0 RC
    • Fix Version/s: 5.8.0 Alpha
    • Labels:
      None
    • Environment:
    • Commits:
      63d24a746da8d7a07eb2f1367757f24cfb4e9eae

      Description

      The qtvirtualkeyboard example does not build when compiling in an uninstalled, but prefixed static build:

      D:\dev\qt\5.7\mingw-builds-5.3.0-32-static\qtvirtualkeyboard\plugins\platforminputcontexts\libqtvirtualkeyboardplugin.a(plugin.o):plugin.cpp:(.text+0x4286): undefined reference to `qt_static_plugin_QtQuick2Plugin()'
      D:\dev\qt\5.7\mingw-builds-5.3.0-32-static\qtvirtualkeyboard\plugins\platforminputcontexts\libqtvirtualkeyboardplugin.a(plugin.o):plugin.cpp:(.text+0x4347): undefined reference to `qt_static_plugin_QtQuick2Plugin()'
      D:\dev\qt\5.7\mingw-builds-5.3.0-32-static\qtvirtualkeyboard\plugins\platforminputcontexts\libqtvirtualkeyboardplugin.a(plugin.o):plugin.cpp:(.text+0x4358): undefined reference to `qt_static_plugin_QtQuick2WindowPlugin()'
      D:\dev\qt\5.7\mingw-builds-5.3.0-32-static\qtvirtualkeyboard\plugins\platforminputcontexts\libqtvirtualkeyboardplugin.a(plugin.o):plugin.cpp:(.text+0x4419): undefined reference to `qt_static_plugin_QtQuick2WindowPlugin()'
      D:\dev\qt\5.7\mingw-builds-5.3.0-32-static\qtvirtualkeyboard\plugins\platforminputcontexts\libqtvirtualkeyboardplugin.a(plugin.o):plugin.cpp:(.text+0x442a): undefined reference to `qt_static_plugin_QtQuickLayoutsPlugin()'
      D:\dev\qt\5.7\mingw-builds-5.3.0-32-static\qtvirtualkeyboard\plugins\platforminputcontexts\libqtvirtualkeyboardplugin.a(plugin.o):plugin.cpp:(.text+0x44e9): undefined reference to `qt_static_plugin_QtQuickLayoutsPlugin()'
      D:\dev\qt\5.7\mingw-builds-5.3.0-32-static\qtvirtualkeyboard\plugins\platforminputcontexts\libqtvirtualkeyboardplugin.a(plugin.o):plugin.cpp:(.text+0x44fa): undefined reference to `qt_static_plugin_QmlFolderListModelPlugin()'
      D:\dev\qt\5.7\mingw-builds-5.3.0-32-static\qtvirtualkeyboard\plugins\platforminputcontexts\libqtvirtualkeyboardplugin.a(plugin.o):plugin.cpp:(.text+0x45b9): undefined reference to `qt_static_plugin_QmlFolderListModelPlugin()'
      D:\dev\qt\5.7\mingw-builds-5.3.0-32-static\qtvirtualkeyboard\plugins\platforminputcontexts\libqtvirtualkeyboardplugin.a(plugin.o):plugin.cpp:(.text+0x45ca): undefined reference to `qt_static_plugin_QtVirtualKeyboardStylesPlugin()'
      D:\dev\qt\5.7\mingw-builds-5.3.0-32-static\qtvirtualkeyboard\plugins\platforminputcontexts\libqtvirtualkeyboardplugin.a(plugin.o):plugin.cpp:(.text+0x4687): undefined reference to `qt_static_plugin_QtVirtualKeyboardStylesPlugin()'
      collect2.exe: error: ld returned 1 exit status
      M

      This is because the generated basic_qml_plugin_import.cpp is empty. This file in turn is generated by qmlimportscanner:

      D:\dev\qt\5.7\mingw-builds-5.3.0-32-static\qtdeclarative\bin\qmlimportscanner D:/dev/qt/5.7/src/qtvirtualkeyboard/examples/virtualkeyboard/basic -importPath D:/dev/qt/5.7/mingw-builds-5.3.0-32-static/qtdeclarative/qml -importPath D:/dev/qt/5.7/mingw-builds-5.3.0-32-static/qtmultimedia/qml -importPath D:/dev/qt/5.7/mingw-builds-5.3.0-32-static/qtgraphicaleffects/qml -importPath D:/dev/qt/5.7/mingw-builds-5.3.0-32-static/qtquickcontrols/qml -importPath D:/dev/qt/5.7/mingw-builds-5.3.0-32-static/qtvirtualkeyboard/qml
      

      The problem seems to be that qmlimportscanner tries to find the 'qmldir' file in e.g. D:/dev/qt/5.7/mingw-builds-5.3.0-32-static/qtdeclarative/qml/QtQuick.2 , but this file is missing.

      Reproduced for Mingw-w64, ICC and MSVC.

        Attachments

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

          Activity

            People

            Assignee:
            kkohne Kai Köhne
            Reporter:
            sav sav
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes