Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.5.0, 5.6.0 Alpha
-
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
- duplicates
-
QTBUG-38735 QML applications fail to detect default module plugins
- Open