[Interest] QtPlugins statically linked not loading

Nuno Santos nunosantos at imaginando.pt
Mon Jun 1 19:18:07 CEST 2015


Thiago,

Yes!

> On 01 Jun 2015, at 17:12, Thiago Macieira <thiago.macieira at intel.com> wrote:
> 
> On Monday 01 June 2015 15:32:43 Nuno Santos wrote:
>> qrc:/main.qml:1 module "QtQuick" is not installed
>> qrc:/main.qml:2 module "QtQuick.Window" is not installed
> 
> Did you add the necessary QT_IMPORT_PLUGIN to a .cpp file?

#include <QtPlugin>

#ifdef Q_OS_WINDOWS
#include <Windows.h>
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
#endif

#ifdef Q_OS_MAC
Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin)
#endif

Q_IMPORT_PLUGIN(QTcpServerConnection)
Q_IMPORT_PLUGIN(QtQuick2Plugin)
Q_IMPORT_PLUGIN(QtQuick2WindowPlugin)
Q_IMPORT_PLUGIN(QtQuickControlsPlugin)

> 
> Can you try QTPLUGIN += whatever instead of LIBS += for those plugins? That 
> should auto-generate the QT_IMPORT_PLUGIN statement.

In fact no. I have mentioned that on a couple of emails ago. Curiously, on Mac (not windows) there are no .pri files under mkspecs/modules for the Quick2Plugin, Quick2WindowsPlugin, and QuickControlsPlugin
 
> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com
>  Software Architect - Intel Open Source Technology Center
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150601/6630a679/attachment.html>


More information about the Interest mailing list