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

Statically compiled QQC2 and QQC1 cannot find plugins

    XMLWordPrintable

Details

    • qtdeclarative: 6f59c91c51edd7207635c3fa2f0b2b1179e7aa6e

    Description

      When I try to use minimal example of controls with statically compiled Qt, it fails to start wit the following message:

      QQmlApplicationEngine failed to load component
      qrc:/main.qml:2 module "QtQuick.Controls" plugin "qtquickcontrols2plugin" not found
      

      In build dir I see *_qml_plugin_import.cpp file with contents:

      #include <QtPlugin>
      Q_IMPORT_PLUGIN(QtQuick2Plugin)
      Q_IMPORT_PLUGIN(QtQuickControls2Plugin)
      Q_IMPORT_PLUGIN(QtQuickTemplates2Plugin)
      Q_IMPORT_PLUGIN(QtQuick2WindowPlugin)
      

      Test program:

      import QtQuick 2.6
      import QtQuick.Controls 2.0
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
      }
      

      Qt configuration:

      -prefix "$install_dir" -static -release -qt-zlib -qt-libjpeg -qt-libpng -qt-xcb -sysconfdir /etc/xdg -plugin-sql-sqlite -dbus -opensource -confirm-license -no-pch -skip qtwebkit -skip qtwebkit-examples -skip qt3d -skip qtxmlpatterns -skip qtwayland -skip qtwebengine -skip qtwebview -skip qtmultimedia -skip qtlocation -skip qtcanvas3d -skip qtwebsockets -skip qtwebchannel -skip qtenginio -skip qtsensors -skip qtserialport -skip qtpurchasing -skip qtquick1 -skip qtscript -skip qtconnectivity -skip qtcharts -skip qtdatavis3d -nomake examples -nomake tests

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              krnekit Nikita Krupenko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes