[Interest] Qt qml plugins don't have .pri under mkspecs/modules while other plugins have (static build of Qt)
Nuno Santos
nunosantos at imaginando.pt
Tue Sep 22 17:23:54 CEST 2015
Hi,
I wonder why 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
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
}
My environment is a static build of Qt. Is this normal or is a bug?
Regards,
Nuno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150922/87f9f106/attachment.html>
More information about the Interest
mailing list