Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Loading custom plugin in the release mode



  • Please advise, I wrote the custom plugin. In the debug mode all works fine. But when the plugin and application are compiled in the release mode, the application not loads plugin

        auto pluginLoader = new QPluginLoader(pluginsDir.absoluteFilePath(fileName), this);
        auto plugin = pluginLoader->instance();
        qDebug() << pluginsDir.absoluteFilePath(fileName) << plugin;

  • Lifetime Qt Champion

    Hi,

    Set the QT_DEBUG_PLUGINS environment variable to 1 before running your application. You'll get some clues about what is happening.

    You can to that in the Run part of the Project panel.



  • @SGaist
    hehe, I forgot place third party DLL in the bin folder (release) - there were in it for debug mode. Issue is closed, thank you


Log in to reply