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

Reply via email to