[Interest] QtPlugins statically linked not loading

Nuno Santos nunosantos at imaginando.pt
Sat May 30 16:23:54 CEST 2015


Hi,

I’m having an awkward problem. 

I’m building and compiling a plugin bundle with a statically built version of Qt. 

The plugin results in a single dll/bundle and loads successfully on my computer. But as soon as the plugin is open on another computer, it is instantiated but there is no window. The reason is because it doesn’t find the plugins:

Below is the output of the host program running on another computer which is not mine. As you can see on the second line, the QLibraryInfo::location(QLibraryInfo::PluginsPath) points to the originally compiled directory of the plugins. That’s why it loads the plugins on my computer but not on another. 

Question: isn’t it supposed to find the plugins since they are being linked statically with the binary? What is wrong? This happens in Windows and OSX.

"/Applications/Ableton Live 9 Suite.app/Contents/MacOS”  <— qDebug() << QDir::currentPath();
"/Users/nsantos/Qt/5.4/clang_32_static/plugins”                  <— qDebug() << QLibraryInfo::location(QLibraryInfo::PluginsPath);
QQmlApplicationEngine failed to load component
qrc:/main.qml:1 module "QtQuick" is not installed
qrc:/main.qml:2 module "QtQuick.Window" is not installed
qrc:/main.qml:4 module "QtQuick.Window" is not installed
qrc:/main.qml:1 module "QtQuick" is not installed
qrc:/main.qml:2 module "QtQuick.Window" is not installed
qrc:/main.qml:4 module "QtQuick.Window" is not installed
qrc:/main.qml:1 module "QtQuick" is not installed
qrc:/main.qml:2 module "QtQuick.Window" is not installed
qrc:/main.qml:4 module "QtQuick.Window" is not installed

Any ideas?

Thanks,

Regards,

Nuno


More information about the Interest mailing list