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

There are no module .pri files for qml plugins

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.5.0, 5.6.0 Alpha
    • Build System
    • None
    • Static built Qt 5.6.0 Alpha (configure -prefix c:\qt\5.6\msvc2013_opengl_x86_static -commercial -debug-and-release -static -nomake examples -nomake tools -nomake tests -opengl desktop -skip multimedia)

    Description

      I found that there are no .pri for the qml related plugins under mkspecs/modules. For examples, every lib created under plugins has the respective .pri:

      qwindows
      qmldbg_debugger
      qmldbg_inspector
      qmldbg_profiler
      qmldbg_server
      qmldbg_local
      qmldbg_tcp

      And so on...

      And you can simply write on your .pro:

      QTPLUGIN += qmldbg_debugger qmldbg_inspector qmldbg_profiler qmldbg_server qmldbg_local qmldbg_tcp

      And it will link with the respective lib. However, it doesn't possible to follow the same strategy with qml plugins. To link with qml plugins I need to explicit refer the library name and path:

      CONFIG(debug, debug|release) {
          LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick.2 qtquick2plugind.lib
          LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick\Window.2 windowplugind.lib
          LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick\Controls qtquickcontrolsplugind.lib
          LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick\Layouts qquicklayoutsplugind.lib
          LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick\Extras qtquickextrasplugind.lib
      } else {
          LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick.2 qtquick2plugin.lib
          LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick\Window.2 windowplugin.lib
          LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick\Controls qtquickcontrolsplugin.lib
          LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick\Layouts qquicklayoutsplugin.lib
          LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick\Extras qtquickextrasplugin.lib
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              buddenha Oswald Buddenhagen
              sinosoidal Nuno Santos
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes