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
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest