Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSqlDatabase: QPSQL driver not loaded

QSqlDatabase: QPSQL driver not loaded

Scheduled Pinned Locked Moved Solved General and Desktop
15 Posts 4 Posters 496 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Christian EhrlicherC Christian Ehrlicher

    None of the plugins you showed are loaded and there are different paths. Please make sure that you don't have other Qt installations in your PATH. Also what Qt version is your app linked against? Please show the full output. From my pov you did not use windeployqt.

    R Offline
    R Offline
    Redman
    wrote on last edited by Redman
    #5

    @Christian-Ehrlicher said in uses incompatible Qt library. (Cannot mix debug and release libraries.)":

    None of the plugins you showed are loaded and there are different paths. Please make sure that you don't have other Qt installations in your PATH. Also what Qt version is your app linked against? Please show the full output. From my pov you did not use windeployqt.

    I have Qt 6.8.1 installed, and thats the only version on my machine.
    C:\Dev\Qt\6.8.1\msvc2022_64\bin is the only entry in PATH that points to Qt.

    For installation/deployment of my app I use following CMake command

        install(TARGETS ${name}
            RUNTIME DESTINATION  ${CMAKE_INSTALL_BINDIR}
        )
    qt_generate_deploy_qml_app_script(
    		TARGET ${name}
    		OUTPUT_SCRIPT deploy_script
    	)
    	install(SCRIPT ${deploy_script})
    

    This is the full output (before my app specific output starts) if I run my app from QtCreator.

    Client > DEBUG: checking directory path "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms" ...
    Client > DEBUG: looking at "qdirect2d.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qdirect2d.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "direct2d"
            ]
        },
        "archlevel": 1,
        "className": "QWindowsDirect2DIntegrationPlugin",
        "debug": false,
        "version": 395264
    }
    
    
    Client > DEBUG: Got keys from plugin meta data QList("direct2d")
    Client > DEBUG: looking at "qdirect2dd.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qdirect2dd.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "direct2d"
            ]
        },
        "archlevel": 1,
        "className": "QWindowsDirect2DIntegrationPlugin",
        "debug": true,
        "version": 395264
    }
    
    
    Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qdirect2dd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
             not a plugin
    Client > DEBUG: looking at "qminimal.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qminimal.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimal"
            ]
        },
        "archlevel": 0,
        "className": "QMinimalIntegrationPlugin",
        "debug": false,
        "version": 395264
    }
    
    
    Client > DEBUG: Got keys from plugin meta data QList("minimal")
    Client > DEBUG: looking at "qminimald.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qminimald.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimal"
            ]
        },
        "archlevel": 0,
        "className": "QMinimalIntegrationPlugin",
        "debug": true,
        "version": 395264
    }
    
    
    Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qminimald.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
             not a plugin
    Client > DEBUG: looking at "qoffscreen.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qoffscreen.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "offscreen"
            ]
        },
        "archlevel": 0,
        "className": "QOffscreenIntegrationPlugin",
        "debug": false,
        "version": 395264
    }
    
    
    Client > DEBUG: Got keys from plugin meta data QList("offscreen")
    Client > DEBUG: looking at "qoffscreend.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qoffscreend.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "offscreen"
            ]
        },
        "archlevel": 0,
        "className": "QOffscreenIntegrationPlugin",
        "debug": true,
        "version": 395264
    }
    
    
    Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qoffscreend.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
             not a plugin
    Client > DEBUG: looking at "qwindows.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qwindows.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "windows"
            ]
        },
        "archlevel": 0,
        "className": "QWindowsIntegrationPlugin",
        "debug": false,
        "version": 395264
    }
    
    
    Client > DEBUG: Got keys from plugin meta data QList("windows")
    Client > DEBUG: looking at "qwindowsd.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qwindowsd.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "windows"
            ]
        },
        "archlevel": 0,
        "className": "QWindowsIntegrationPlugin",
        "debug": true,
        "version": 395264
    }
    
    
    Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qwindowsd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
             not a plugin
    Client > DEBUG: checking directory path "C:/Dev/Build/Pulsate/Release/6.8.1/bin/platforms" ...
    Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qwindows.dll" loaded library
    Client > DEBUG: checking directory path "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platformthemes" ...
    Client > DEBUG: checking directory path "C:/Dev/Build/Pulsate/Release/6.8.1/bin/platformthemes" ...
    Client > DEBUG: checking directory path "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers" ...
    Client > DEBUG: looking at "qsqlite.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlite.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
        "MetaData": {
            "Keys": [
                "QSQLITE"
            ]
        },
        "archlevel": 0,
        "className": "QSQLiteDriverPlugin",
        "debug": false,
        "version": 395264
    }
    
    
    Client > DEBUG: Got keys from plugin meta data QList("QSQLITE")
    Client > DEBUG: looking at "qsqlited.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlited.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
        "MetaData": {
            "Keys": [
                "QSQLITE"
            ]
        },
        "archlevel": 0,
        "className": "QSQLiteDriverPlugin",
        "debug": true,
        "version": 395264
    }
    
    
    Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlited.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
             not a plugin
    Client > DEBUG: looking at "qsqlmimer.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlmimer.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
        "MetaData": {
            "Keys": [
                "QMIMER"
            ]
        },
        "archlevel": 0,
        "className": "QMimerSQLDriverPlugin",
        "debug": false,
        "version": 395264
    }
    
    
    Client > DEBUG: Got keys from plugin meta data QList("QMIMER")
    Client > DEBUG: looking at "qsqlmimerd.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlmimerd.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
        "MetaData": {
            "Keys": [
                "QMIMER"
            ]
        },
        "archlevel": 0,
        "className": "QMimerSQLDriverPlugin",
        "debug": true,
        "version": 395264
    }
    
    
    Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlmimerd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
             not a plugin
    Client > DEBUG: looking at "qsqlodbc.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlodbc.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
        "MetaData": {
            "Keys": [
                "QODBC"
            ]
        },
        "archlevel": 0,
        "className": "QODBCDriverPlugin",
        "debug": false,
        "version": 395264
    }
    
    
    Client > DEBUG: Got keys from plugin meta data QList("QODBC")
    Client > DEBUG: looking at "qsqlodbcd.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlodbcd.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
        "MetaData": {
            "Keys": [
                "QODBC"
            ]
        },
        "archlevel": 0,
        "className": "QODBCDriverPlugin",
        "debug": true,
        "version": 395264
    }
    
    
    Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlodbcd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
             not a plugin
    Client > DEBUG: looking at "qsqlpsql.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlpsql.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
        "MetaData": {
            "Keys": [
                "QPSQL"
            ]
        },
        "archlevel": 0,
        "className": "QPSQLDriverPlugin",
        "debug": false,
        "version": 395264
    }
    
    
    Client > DEBUG: Got keys from plugin meta data QList("QPSQL")
    Client > DEBUG: looking at "qsqlpsqld.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlpsqld.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
        "MetaData": {
            "Keys": [
                "QPSQL"
            ]
        },
        "archlevel": 0,
        "className": "QPSQLDriverPlugin",
        "debug": true,
        "version": 395264
    }
    
    
    Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlpsqld.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
             not a plugin
    Client > DEBUG: checking directory path "C:/Dev/Build/Pulsate/Release/6.8.1/bin/sqldrivers" ...
    Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlpsql.dll" loaded library
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/Material/qtquickcontrols2materialstyleplugin.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
        "archlevel": 0,
        "className": "QtQuickControls2MaterialStylePlugin",
        "debug": false,
        "uri": [
            "QtQuick.Controls.Material"
        ],
        "version": 395264
    }
    
    
    Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/Material/qtquickcontrols2materialstyleplugin.dll" loaded library
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/Basic/qtquickcontrols2basicstyleplugin.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
        "archlevel": 0,
        "className": "QtQuickControls2BasicStylePlugin",
        "debug": false,
        "uri": [
            "QtQuick.Controls.Basic"
        ],
        "version": 395264
    }
    
    
    Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/Basic/qtquickcontrols2basicstyleplugin.dll" loaded library
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Templates/qtquicktemplates2plugin.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
        "archlevel": 0,
        "className": "QtQuickTemplates2Plugin",
        "debug": false,
        "uri": [
            "QtQuick.Templates"
        ],
        "version": 395264
    }
    
    
    Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Templates/qtquicktemplates2plugin.dll" loaded library
    Client > DEBUG: checking directory path "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/opcua" ...
    Client > DEBUG: looking at "open62541_backend.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/opcua/open62541_backend.dll, metadata=
    {
        "IID": "org.qt-project.qt.opcua.providerfactory/1.0",
        "MetaData": {
            "Features": [
                "client"
            ],
            "Keys": [
                "open62541"
            ],
            "Provider": "open62541",
            "Version": "1.0",
            "stability": 1
        },
        "archlevel": 0,
        "className": "QOpen62541Plugin",
        "debug": false,
        "version": 395264
    }
    
    
    Client > DEBUG: Got keys from plugin meta data QList("open62541")
    Client > DEBUG: looking at "open62541_backendd.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/opcua/open62541_backendd.dll, metadata=
    {
        "IID": "org.qt-project.qt.opcua.providerfactory/1.0",
        "MetaData": {
            "Features": [
                "client"
            ],
            "Keys": [
                "open62541"
            ],
            "Provider": "open62541",
            "Version": "1.0",
            "stability": 1
        },
        "archlevel": 0,
        "className": "QOpen62541Plugin",
        "debug": true,
        "version": 395264
    }
    
    
    Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/opcua/open62541_backendd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
             not a plugin
    Client > DEBUG: checking directory path "C:/Dev/Build/Pulsate/Release/6.8.1/bin/opcua" ...
    Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/opcua/open62541_backend.dll" loaded library
    Client > DEBUG: "RaylaseDriver Simu"
    Client >>> WARNING: "AcceptAll Certificate Verification. Any remote certificate will be accepted."
    Client > DEBUG: "Ilt Simu"
    Client > DEBUG: "Redwave Simu"
    Client >> INFO: CommandListExecutorSimu started
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/qtquickcontrols2plugin.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
        "archlevel": 0,
        "className": "QtQuickControls2Plugin",
        "debug": false,
        "uri": [
            "QtQuick.Controls"
        ],
        "version": 395264
    }
    
    
    Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/qtquickcontrols2plugin.dll" loaded library
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Window/quickwindowplugin.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QQmlEngineExtensionInterface",
        "archlevel": 0,
        "className": "QtQuick_WindowPlugin",
        "debug": false,
        "uri": [
            "QtQuick.Window"
        ],
        "version": 395264
    }
    
    
    Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Window/quickwindowplugin.dll" loaded library
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Layouts/qquicklayoutsplugin.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QQmlEngineExtensionInterface",
        "archlevel": 0,
        "className": "QtQuickLayoutsPlugin",
        "debug": false,
        "uri": [
            "QtQuick.Layouts"
        ],
        "version": 395264
    }
    
    
    Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Layouts/qquicklayoutsplugin.dll" loaded library
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/impl/qtquickcontrols2implplugin.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QQmlEngineExtensionInterface",
        "archlevel": 0,
        "className": "QtQuickControls2ImplPlugin",
        "debug": false,
        "uri": [
            "QtQuick.Controls.impl"
        ],
        "version": 395264
    }
    
    
    Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/impl/qtquickcontrols2implplugin.dll" loaded library
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/Material/impl/qtquickcontrols2materialstyleimplplugin.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QQmlEngineExtensionInterface",
        "archlevel": 0,
        "className": "QtQuickControls2MaterialStyleImplPlugin",
        "debug": false,
        "uri": [
            "QtQuick.Controls.Material.impl"
        ],
        "version": 395264
    }
    
    
    Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/Material/impl/qtquickcontrols2materialstyleimplplugin.dll" loaded library
    Client > DEBUG: checking directory path "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats" ...
    Client > DEBUG: looking at "qgif.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qgif.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "gif"
            ],
            "MimeTypes": [
                "image/gif"
            ]
        },
        "archlevel": 0,
        "className": "QGifPlugin",
        "debug": false,
        "version": 395264
    }
    
    
    Client > DEBUG: Got keys from plugin meta data QList("gif")
    Client > DEBUG: looking at "qgifd.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qgifd.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "gif"
            ],
            "MimeTypes": [
                "image/gif"
            ]
        },
        "archlevel": 0,
        "className": "QGifPlugin",
        "debug": true,
        "version": 395264
    }
    
    
    Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qgifd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
             not a plugin
    Client > DEBUG: looking at "qico.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qico.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "ico",
                "cur"
            ],
            "MimeTypes": [
                "image/vnd.microsoft.icon",
                "image/vnd.microsoft.icon"
            ]
        },
        "archlevel": 0,
        "className": "QICOPlugin",
        "debug": false,
        "version": 395264
    }
    
    
    Client > DEBUG: Got keys from plugin meta data QList("ico", "cur")
    Client > DEBUG: looking at "qicod.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qicod.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "ico",
                "cur"
            ],
            "MimeTypes": [
                "image/vnd.microsoft.icon",
                "image/vnd.microsoft.icon"
            ]
        },
        "archlevel": 0,
        "className": "QICOPlugin",
        "debug": true,
        "version": 395264
    }
    
    
    Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qicod.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
             not a plugin
    Client > DEBUG: looking at "qjpeg.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qjpeg.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "jpg",
                "jpeg",
                "jfif"
            ],
            "MimeTypes": [
                "image/jpeg",
                "image/jpeg",
                "image/jpeg"
            ]
        },
        "archlevel": 0,
        "className": "QJpegPlugin",
        "debug": false,
        "version": 395264
    }
    
    
    Client > DEBUG: Got keys from plugin meta data QList("jpg", "jpeg", "jfif")
    Client > DEBUG: looking at "qjpegd.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qjpegd.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "jpg",
                "jpeg",
                "jfif"
            ],
            "MimeTypes": [
                "image/jpeg",
                "image/jpeg",
                "image/jpeg"
            ]
        },
        "archlevel": 0,
        "className": "QJpegPlugin",
        "debug": true,
        "version": 395264
    }
    
    
    Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qjpegd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
             not a plugin
    Client > DEBUG: looking at "qsvg.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qsvg.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "svg",
                "svgz"
            ],
            "MimeTypes": [
                "image/svg+xml",
                "image/svg+xml-compressed"
            ]
        },
        "archlevel": 0,
        "className": "QSvgPlugin",
        "debug": false,
        "version": 395264
    }
    
    
    Client > DEBUG: Got keys from plugin meta data QList("svg", "svgz")
    Client > DEBUG: looking at "qsvgd.dll"
    Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qsvgd.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "svg",
                "svgz"
            ],
            "MimeTypes": [
                "image/svg+xml",
                "image/svg+xml-compressed"
            ]
        },
        "archlevel": 0,
        "className": "QSvgPlugin",
        "debug": true,
        "version": 395264
    }
    
    
    Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qsvgd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
             not a plugin
    Client > DEBUG: checking directory path "C:/Dev/Build/Pulsate/Release/6.8.1/bin/imageformats" ...
    Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qgif.dll" loaded library
    

    If I run my app from install dir this is the output:

    QSqlDatabase: QPSQL driver not loaded
    QSqlDatabase: available drivers:
    

    This problem occurs after I restructured my app linking all targets statically to dynamically.

    EDIT:
    After copying all *.dll from PostgresSQL/bin to my app install folder I get the same result.

    Christian EhrlicherC 1 Reply Last reply
    0
    • R Redman

      @Christian-Ehrlicher said in uses incompatible Qt library. (Cannot mix debug and release libraries.)":

      None of the plugins you showed are loaded and there are different paths. Please make sure that you don't have other Qt installations in your PATH. Also what Qt version is your app linked against? Please show the full output. From my pov you did not use windeployqt.

      I have Qt 6.8.1 installed, and thats the only version on my machine.
      C:\Dev\Qt\6.8.1\msvc2022_64\bin is the only entry in PATH that points to Qt.

      For installation/deployment of my app I use following CMake command

          install(TARGETS ${name}
              RUNTIME DESTINATION  ${CMAKE_INSTALL_BINDIR}
          )
      qt_generate_deploy_qml_app_script(
      		TARGET ${name}
      		OUTPUT_SCRIPT deploy_script
      	)
      	install(SCRIPT ${deploy_script})
      

      This is the full output (before my app specific output starts) if I run my app from QtCreator.

      Client > DEBUG: checking directory path "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms" ...
      Client > DEBUG: looking at "qdirect2d.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qdirect2d.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "direct2d"
              ]
          },
          "archlevel": 1,
          "className": "QWindowsDirect2DIntegrationPlugin",
          "debug": false,
          "version": 395264
      }
      
      
      Client > DEBUG: Got keys from plugin meta data QList("direct2d")
      Client > DEBUG: looking at "qdirect2dd.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qdirect2dd.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "direct2d"
              ]
          },
          "archlevel": 1,
          "className": "QWindowsDirect2DIntegrationPlugin",
          "debug": true,
          "version": 395264
      }
      
      
      Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qdirect2dd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
               not a plugin
      Client > DEBUG: looking at "qminimal.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qminimal.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "minimal"
              ]
          },
          "archlevel": 0,
          "className": "QMinimalIntegrationPlugin",
          "debug": false,
          "version": 395264
      }
      
      
      Client > DEBUG: Got keys from plugin meta data QList("minimal")
      Client > DEBUG: looking at "qminimald.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qminimald.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "minimal"
              ]
          },
          "archlevel": 0,
          "className": "QMinimalIntegrationPlugin",
          "debug": true,
          "version": 395264
      }
      
      
      Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qminimald.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
               not a plugin
      Client > DEBUG: looking at "qoffscreen.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qoffscreen.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "offscreen"
              ]
          },
          "archlevel": 0,
          "className": "QOffscreenIntegrationPlugin",
          "debug": false,
          "version": 395264
      }
      
      
      Client > DEBUG: Got keys from plugin meta data QList("offscreen")
      Client > DEBUG: looking at "qoffscreend.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qoffscreend.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "offscreen"
              ]
          },
          "archlevel": 0,
          "className": "QOffscreenIntegrationPlugin",
          "debug": true,
          "version": 395264
      }
      
      
      Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qoffscreend.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
               not a plugin
      Client > DEBUG: looking at "qwindows.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qwindows.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "windows"
              ]
          },
          "archlevel": 0,
          "className": "QWindowsIntegrationPlugin",
          "debug": false,
          "version": 395264
      }
      
      
      Client > DEBUG: Got keys from plugin meta data QList("windows")
      Client > DEBUG: looking at "qwindowsd.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qwindowsd.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
          "MetaData": {
              "Keys": [
                  "windows"
              ]
          },
          "archlevel": 0,
          "className": "QWindowsIntegrationPlugin",
          "debug": true,
          "version": 395264
      }
      
      
      Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qwindowsd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
               not a plugin
      Client > DEBUG: checking directory path "C:/Dev/Build/Pulsate/Release/6.8.1/bin/platforms" ...
      Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platforms/qwindows.dll" loaded library
      Client > DEBUG: checking directory path "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/platformthemes" ...
      Client > DEBUG: checking directory path "C:/Dev/Build/Pulsate/Release/6.8.1/bin/platformthemes" ...
      Client > DEBUG: checking directory path "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers" ...
      Client > DEBUG: looking at "qsqlite.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlite.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
          "MetaData": {
              "Keys": [
                  "QSQLITE"
              ]
          },
          "archlevel": 0,
          "className": "QSQLiteDriverPlugin",
          "debug": false,
          "version": 395264
      }
      
      
      Client > DEBUG: Got keys from plugin meta data QList("QSQLITE")
      Client > DEBUG: looking at "qsqlited.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlited.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
          "MetaData": {
              "Keys": [
                  "QSQLITE"
              ]
          },
          "archlevel": 0,
          "className": "QSQLiteDriverPlugin",
          "debug": true,
          "version": 395264
      }
      
      
      Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlited.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
               not a plugin
      Client > DEBUG: looking at "qsqlmimer.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlmimer.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
          "MetaData": {
              "Keys": [
                  "QMIMER"
              ]
          },
          "archlevel": 0,
          "className": "QMimerSQLDriverPlugin",
          "debug": false,
          "version": 395264
      }
      
      
      Client > DEBUG: Got keys from plugin meta data QList("QMIMER")
      Client > DEBUG: looking at "qsqlmimerd.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlmimerd.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
          "MetaData": {
              "Keys": [
                  "QMIMER"
              ]
          },
          "archlevel": 0,
          "className": "QMimerSQLDriverPlugin",
          "debug": true,
          "version": 395264
      }
      
      
      Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlmimerd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
               not a plugin
      Client > DEBUG: looking at "qsqlodbc.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlodbc.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
          "MetaData": {
              "Keys": [
                  "QODBC"
              ]
          },
          "archlevel": 0,
          "className": "QODBCDriverPlugin",
          "debug": false,
          "version": 395264
      }
      
      
      Client > DEBUG: Got keys from plugin meta data QList("QODBC")
      Client > DEBUG: looking at "qsqlodbcd.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlodbcd.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
          "MetaData": {
              "Keys": [
                  "QODBC"
              ]
          },
          "archlevel": 0,
          "className": "QODBCDriverPlugin",
          "debug": true,
          "version": 395264
      }
      
      
      Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlodbcd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
               not a plugin
      Client > DEBUG: looking at "qsqlpsql.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlpsql.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
          "MetaData": {
              "Keys": [
                  "QPSQL"
              ]
          },
          "archlevel": 0,
          "className": "QPSQLDriverPlugin",
          "debug": false,
          "version": 395264
      }
      
      
      Client > DEBUG: Got keys from plugin meta data QList("QPSQL")
      Client > DEBUG: looking at "qsqlpsqld.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlpsqld.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
          "MetaData": {
              "Keys": [
                  "QPSQL"
              ]
          },
          "archlevel": 0,
          "className": "QPSQLDriverPlugin",
          "debug": true,
          "version": 395264
      }
      
      
      Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlpsqld.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
               not a plugin
      Client > DEBUG: checking directory path "C:/Dev/Build/Pulsate/Release/6.8.1/bin/sqldrivers" ...
      Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlpsql.dll" loaded library
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/Material/qtquickcontrols2materialstyleplugin.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
          "archlevel": 0,
          "className": "QtQuickControls2MaterialStylePlugin",
          "debug": false,
          "uri": [
              "QtQuick.Controls.Material"
          ],
          "version": 395264
      }
      
      
      Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/Material/qtquickcontrols2materialstyleplugin.dll" loaded library
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/Basic/qtquickcontrols2basicstyleplugin.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
          "archlevel": 0,
          "className": "QtQuickControls2BasicStylePlugin",
          "debug": false,
          "uri": [
              "QtQuick.Controls.Basic"
          ],
          "version": 395264
      }
      
      
      Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/Basic/qtquickcontrols2basicstyleplugin.dll" loaded library
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Templates/qtquicktemplates2plugin.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
          "archlevel": 0,
          "className": "QtQuickTemplates2Plugin",
          "debug": false,
          "uri": [
              "QtQuick.Templates"
          ],
          "version": 395264
      }
      
      
      Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Templates/qtquicktemplates2plugin.dll" loaded library
      Client > DEBUG: checking directory path "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/opcua" ...
      Client > DEBUG: looking at "open62541_backend.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/opcua/open62541_backend.dll, metadata=
      {
          "IID": "org.qt-project.qt.opcua.providerfactory/1.0",
          "MetaData": {
              "Features": [
                  "client"
              ],
              "Keys": [
                  "open62541"
              ],
              "Provider": "open62541",
              "Version": "1.0",
              "stability": 1
          },
          "archlevel": 0,
          "className": "QOpen62541Plugin",
          "debug": false,
          "version": 395264
      }
      
      
      Client > DEBUG: Got keys from plugin meta data QList("open62541")
      Client > DEBUG: looking at "open62541_backendd.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/opcua/open62541_backendd.dll, metadata=
      {
          "IID": "org.qt-project.qt.opcua.providerfactory/1.0",
          "MetaData": {
              "Features": [
                  "client"
              ],
              "Keys": [
                  "open62541"
              ],
              "Provider": "open62541",
              "Version": "1.0",
              "stability": 1
          },
          "archlevel": 0,
          "className": "QOpen62541Plugin",
          "debug": true,
          "version": 395264
      }
      
      
      Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/opcua/open62541_backendd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
               not a plugin
      Client > DEBUG: checking directory path "C:/Dev/Build/Pulsate/Release/6.8.1/bin/opcua" ...
      Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/opcua/open62541_backend.dll" loaded library
      Client > DEBUG: "RaylaseDriver Simu"
      Client >>> WARNING: "AcceptAll Certificate Verification. Any remote certificate will be accepted."
      Client > DEBUG: "Ilt Simu"
      Client > DEBUG: "Redwave Simu"
      Client >> INFO: CommandListExecutorSimu started
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/qtquickcontrols2plugin.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
          "archlevel": 0,
          "className": "QtQuickControls2Plugin",
          "debug": false,
          "uri": [
              "QtQuick.Controls"
          ],
          "version": 395264
      }
      
      
      Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/qtquickcontrols2plugin.dll" loaded library
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Window/quickwindowplugin.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QQmlEngineExtensionInterface",
          "archlevel": 0,
          "className": "QtQuick_WindowPlugin",
          "debug": false,
          "uri": [
              "QtQuick.Window"
          ],
          "version": 395264
      }
      
      
      Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Window/quickwindowplugin.dll" loaded library
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Layouts/qquicklayoutsplugin.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QQmlEngineExtensionInterface",
          "archlevel": 0,
          "className": "QtQuickLayoutsPlugin",
          "debug": false,
          "uri": [
              "QtQuick.Layouts"
          ],
          "version": 395264
      }
      
      
      Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Layouts/qquicklayoutsplugin.dll" loaded library
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/impl/qtquickcontrols2implplugin.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QQmlEngineExtensionInterface",
          "archlevel": 0,
          "className": "QtQuickControls2ImplPlugin",
          "debug": false,
          "uri": [
              "QtQuick.Controls.impl"
          ],
          "version": 395264
      }
      
      
      Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/impl/qtquickcontrols2implplugin.dll" loaded library
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/Material/impl/qtquickcontrols2materialstyleimplplugin.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QQmlEngineExtensionInterface",
          "archlevel": 0,
          "className": "QtQuickControls2MaterialStyleImplPlugin",
          "debug": false,
          "uri": [
              "QtQuick.Controls.Material.impl"
          ],
          "version": 395264
      }
      
      
      Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/qml/QtQuick/Controls/Material/impl/qtquickcontrols2materialstyleimplplugin.dll" loaded library
      Client > DEBUG: checking directory path "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats" ...
      Client > DEBUG: looking at "qgif.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qgif.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
          "MetaData": {
              "Keys": [
                  "gif"
              ],
              "MimeTypes": [
                  "image/gif"
              ]
          },
          "archlevel": 0,
          "className": "QGifPlugin",
          "debug": false,
          "version": 395264
      }
      
      
      Client > DEBUG: Got keys from plugin meta data QList("gif")
      Client > DEBUG: looking at "qgifd.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qgifd.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
          "MetaData": {
              "Keys": [
                  "gif"
              ],
              "MimeTypes": [
                  "image/gif"
              ]
          },
          "archlevel": 0,
          "className": "QGifPlugin",
          "debug": true,
          "version": 395264
      }
      
      
      Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qgifd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
               not a plugin
      Client > DEBUG: looking at "qico.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qico.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
          "MetaData": {
              "Keys": [
                  "ico",
                  "cur"
              ],
              "MimeTypes": [
                  "image/vnd.microsoft.icon",
                  "image/vnd.microsoft.icon"
              ]
          },
          "archlevel": 0,
          "className": "QICOPlugin",
          "debug": false,
          "version": 395264
      }
      
      
      Client > DEBUG: Got keys from plugin meta data QList("ico", "cur")
      Client > DEBUG: looking at "qicod.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qicod.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
          "MetaData": {
              "Keys": [
                  "ico",
                  "cur"
              ],
              "MimeTypes": [
                  "image/vnd.microsoft.icon",
                  "image/vnd.microsoft.icon"
              ]
          },
          "archlevel": 0,
          "className": "QICOPlugin",
          "debug": true,
          "version": 395264
      }
      
      
      Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qicod.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
               not a plugin
      Client > DEBUG: looking at "qjpeg.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qjpeg.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
          "MetaData": {
              "Keys": [
                  "jpg",
                  "jpeg",
                  "jfif"
              ],
              "MimeTypes": [
                  "image/jpeg",
                  "image/jpeg",
                  "image/jpeg"
              ]
          },
          "archlevel": 0,
          "className": "QJpegPlugin",
          "debug": false,
          "version": 395264
      }
      
      
      Client > DEBUG: Got keys from plugin meta data QList("jpg", "jpeg", "jfif")
      Client > DEBUG: looking at "qjpegd.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qjpegd.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
          "MetaData": {
              "Keys": [
                  "jpg",
                  "jpeg",
                  "jfif"
              ],
              "MimeTypes": [
                  "image/jpeg",
                  "image/jpeg",
                  "image/jpeg"
              ]
          },
          "archlevel": 0,
          "className": "QJpegPlugin",
          "debug": true,
          "version": 395264
      }
      
      
      Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qjpegd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
               not a plugin
      Client > DEBUG: looking at "qsvg.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qsvg.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
          "MetaData": {
              "Keys": [
                  "svg",
                  "svgz"
              ],
              "MimeTypes": [
                  "image/svg+xml",
                  "image/svg+xml-compressed"
              ]
          },
          "archlevel": 0,
          "className": "QSvgPlugin",
          "debug": false,
          "version": 395264
      }
      
      
      Client > DEBUG: Got keys from plugin meta data QList("svg", "svgz")
      Client > DEBUG: looking at "qsvgd.dll"
      Client > DEBUG: Found metadata in lib C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qsvgd.dll, metadata=
      {
          "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
          "MetaData": {
              "Keys": [
                  "svg",
                  "svgz"
              ],
              "MimeTypes": [
                  "image/svg+xml",
                  "image/svg+xml-compressed"
              ]
          },
          "archlevel": 0,
          "className": "QSvgPlugin",
          "debug": true,
          "version": 395264
      }
      
      
      Client > DEBUG: "The plugin 'C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qsvgd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
               not a plugin
      Client > DEBUG: checking directory path "C:/Dev/Build/Pulsate/Release/6.8.1/bin/imageformats" ...
      Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/imageformats/qgif.dll" loaded library
      

      If I run my app from install dir this is the output:

      QSqlDatabase: QPSQL driver not loaded
      QSqlDatabase: available drivers:
      

      This problem occurs after I restructured my app linking all targets statically to dynamically.

      EDIT:
      After copying all *.dll from PostgresSQL/bin to my app install folder I get the same result.

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #6

      @Redman said in uses incompatible Qt library. (Cannot mix debug and release libraries.)":

      :\Dev\Qt\6.8.1\msvc2022_64\bin is the only entry in PATH that points to Qt

      Remove this when you want to check if windeployqt worked correctly. I Don get see that you called windeployqt anywhere so that needed the dlls and plugins are copied.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      R 1 Reply Last reply
      0
      • B Offline
        B Offline
        Bonnie
        wrote on last edited by Bonnie
        #7

        Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlpsql.dll" loaded library

        From the plugin debug message, the psql plugin is loaded successfully.

        This is the full output (before my app specific output starts) if I run my app from QtCreator.

        If I run my app from install dir this is the output:

        Well, that makes sense, so what's your plugin debug output when running from install dir?

        R 1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          @Redman said in uses incompatible Qt library. (Cannot mix debug and release libraries.)":

          :\Dev\Qt\6.8.1\msvc2022_64\bin is the only entry in PATH that points to Qt

          Remove this when you want to check if windeployqt worked correctly. I Don get see that you called windeployqt anywhere so that needed the dlls and plugins are copied.

          R Offline
          R Offline
          Redman
          wrote on last edited by
          #8

          @Christian-Ehrlicher

          This is the output I get if I call ninja.exe install

          [0/1] Install the project...
          -- Install configuration: "Release"
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/TinyOrm0.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Tom.exe
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/McsDriver.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/libcrypto-3-x64.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Client.exe
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/qtquick2plugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQml/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQml/qmlplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQml/Models/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQml/Models/modelsplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQml/WorkerScript/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQml/WorkerScript/workerscriptplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/qtquickcontrols2plugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Fusion/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Fusion/qtquickcontrols2fusionstyleplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Material/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Material/qtquickcontrols2materialstyleplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Imagine/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Imagine/qtquickcontrols2imaginestyleplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Universal/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Universal/qtquickcontrols2universalstyleplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/FluentWinUI3/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/FluentWinUI3/qtquickcontrols2fluentwinui3styleplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Windows/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Windows/qtquickcontrols2windowsstyleplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Basic/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Basic/qtquickcontrols2basicstyleplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Templates/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Templates/qtquicktemplates2plugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/impl/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/impl/qtquickcontrols2implplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Fusion/impl/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Fusion/impl/qtquickcontrols2fusionstyleimplplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Window/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Window/quickwindowplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Material/impl/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Material/impl/qtquickcontrols2materialstyleimplplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Imagine/impl/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Imagine/impl/qtquickcontrols2imaginestyleimplplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Universal/impl/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Universal/impl/qtquickcontrols2universalstyleimplplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/FluentWinUI3/impl/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/FluentWinUI3/impl/qtquickcontrols2fluentwinui3styleimplplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Effects/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Effects/effectsplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Layouts/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Layouts/qquicklayoutsplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Shapes/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Shapes/qmlshapesplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/NativeStyle/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/NativeStyle/qtquickcontrols2nativestyleplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Windows/impl/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Windows/impl/qtquickcontrols2windowsstyleimplplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Basic/impl/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Basic/impl/qtquickcontrols2basicstyleimplplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/core/app/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/core/app/Coreplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Core.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6OpcUa.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Db.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Quick.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlMeta.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlWorkerScript.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlModels.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Qml.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Network.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6OpenGL.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Gui.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Sql.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Util.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Core.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Core.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6OpcUa.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Db.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Quick.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlMeta.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlWorkerScript.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlModels.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Qml.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Network.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6OpenGL.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Gui.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Sql.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Util.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Core.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Core.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6OpcUa.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Db.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Quick.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlMeta.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlWorkerScript.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlModels.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Qml.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Network.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6OpenGL.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Gui.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Sql.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Util.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Core.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/VectorImage/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/VectorImage/qquickvectorimageplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/project/app/qmldir
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/project/app/Projectplugin.dll
          -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Project.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Redwave.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Core.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6OpcUa.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Db.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Quick.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlMeta.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlWorkerScript.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlModels.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Qml.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Network.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6OpenGL.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Gui.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Sql.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Util.dll
          -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Core.dll
          -- Writing C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/qt.conf
          -- Running Qt deploy tool for C:/Dev/Build/MyApp/Release/6.8.1/bin/Client.exe in working directory 'C:/Dev/Build/MyApp/Release/6.8.1/deploy'
          'C:/Dev/Qt/6.8.1/msvc2022_64/bin/windeployqt.exe' 'C:/Dev/Build/MyApp/Release/6.8.1/bin/Client.exe' '--dir' '.' '--libdir' 'bin' '--plugindir' 'plugins' '--qml-deploy-dir' 'qml' '--translationdir' 'translations' '--force' '--qtpaths' 'C:/Dev/Qt/6.8.1/msvc2022_64/bin/qtpaths6.exe' 'qml/QtQuick/qtquick2plugin.dll' 'qml/QtQml/qmlplugin.dll' 'qml/QtQml/Models/modelsplugin.dll' 'qml/QtQml/WorkerScript/workerscriptplugin.dll' 'qml/QtQuick/Controls/qtquickcontrols2plugin.dll' 'qml/QtQuick/Controls/Fusion/qtquickcontrols2fusionstyleplugin.dll' 'qml/QtQuick/Controls/Material/qtquickcontrols2materialstyleplugin.dll' 'qml/QtQuick/Controls/Imagine/qtquickcontrols2imaginestyleplugin.dll' 'qml/QtQuick/Controls/Universal/qtquickcontrols2universalstyleplugin.dll' 'qml/QtQuick/Controls/FluentWinUI3/qtquickcontrols2fluentwinui3styleplugin.dll' 'qml/QtQuick/Controls/Windows/qtquickcontrols2windowsstyleplugin.dll' 'qml/QtQuick/Controls/Basic/qtquickcontrols2basicstyleplugin.dll' 'qml/QtQuick/Templates/qtquicktemplates2plugin.dll' 'qml/QtQuick/Controls/impl/qtquickcontrols2implplugin.dll' 'qml/QtQuick/Controls/Fusion/impl/qtquickcontrols2fusionstyleimplplugin.dll' 'qml/QtQuick/Window/quickwindowplugin.dll' 'qml/QtQuick/Controls/Material/impl/qtquickcontrols2materialstyleimplplugin.dll' 'qml/QtQuick/Controls/Imagine/impl/qtquickcontrols2imaginestyleimplplugin.dll' 'qml/QtQuick/Controls/Universal/impl/qtquickcontrols2universalstyleimplplugin.dll' 'qml/QtQuick/Controls/FluentWinUI3/impl/qtquickcontrols2fluentwinui3styleimplplugin.dll' 'qml/QtQuick/Effects/effectsplugin.dll' 'qml/QtQuick/Layouts/qquicklayoutsplugin.dll' 'qml/QtQuick/Shapes/qmlshapesplugin.dll' 'qml/QtQuick/NativeStyle/qtquickcontrols2nativestyleplugin.dll' 'qml/QtQuick/Controls/Windows/impl/qtquickcontrols2windowsstyleimplplugin.dll' 'qml/QtQuick/Controls/Basic/impl/qtquickcontrols2basicstyleimplplugin.dll' 'qml/core/app/Coreplugin.dll' 'qml/QtQuick/VectorImage/qquickvectorimageplugin.dll' 'qml/project/app/Projectplugin.dll'
          C:\Dev\Build\MyApp\Release\6.8.1\bin\Client.exe 64 bit, release executable [QML]
          Adding in plugin type generic for module: Qt6Gui
          Adding in plugin type iconengines for module: Qt6Gui
          Adding in plugin type imageformats for module: Qt6Gui
          Adding in plugin type networkinformation for module: Qt6Network
          Adding in plugin type platforms for module: Qt6Gui
          Adding in plugin type qmltooling for module: Qt6Qml
          Adding in plugin type tls for module: Qt6Network
          Skipping plugin qopensslbackend.dll. Use -force-openssl or specify -openssl-root if you want to use it.
          Direct dependencies: Qt6Core Qt6Gui Qt6Network Qt6OpenGL Qt6Qml Qt6QmlMeta Qt6QmlModels Qt6QmlWorkerScript Qt6Quick Qt6QuickControls2 Qt6QuickControls2Basic Qt6QuickControls2BasicStyleImpl Qt6QuickControls2FluentWinUI3StyleImpl Qt6QuickControls2Fusion Qt6QuickControls2FusionStyleImpl Qt6QuickControls2Imagine Qt6QuickControls2ImagineStyleImpl Qt6QuickControls2Impl Qt6QuickControls2Material Qt6QuickControls2MaterialStyleImpl Qt6QuickControls2Universal Qt6QuickControls2UniversalStyleImpl Qt6QuickControls2WindowsStyleImpl Qt6QuickEffects Qt6QuickLayouts Qt6QuickShapes Qt6QuickTemplates2 Qt6QuickVectorImage Qt6QuickVectorImageGenerator Qt6Svg
          All dependencies   : Qt6Core Qt6Gui Qt6Network Qt6OpenGL Qt6Qml Qt6QmlMeta Qt6QmlModels Qt6QmlWorkerScript Qt6Quick Qt6QuickControls2 Qt6QuickControls2Basic Qt6QuickControls2BasicStyleImpl Qt6QuickControls2FluentWinUI3StyleImpl Qt6QuickControls2Fusion Qt6QuickControls2FusionStyleImpl Qt6QuickControls2Imagine Qt6QuickControls2ImagineStyleImpl Qt6QuickControls2Impl Qt6QuickControls2Material Qt6QuickControls2MaterialStyleImpl Qt6QuickControls2Universal Qt6QuickControls2UniversalStyleImpl Qt6QuickControls2WindowsStyleImpl Qt6QuickEffects Qt6QuickLayouts Qt6QuickShapes Qt6QuickTemplates2 Qt6QuickVectorImage Qt6QuickVectorImageGenerator Qt6Svg
          To be deployed     : Qt6Core Qt6Gui Qt6Network Qt6OpenGL Qt6Qml Qt6QmlMeta Qt6QmlModels Qt6QmlWorkerScript Qt6Quick Qt6QuickControls2 Qt6QuickControls2Basic Qt6QuickControls2BasicStyleImpl Qt6QuickControls2FluentWinUI3StyleImpl Qt6QuickControls2Fusion Qt6QuickControls2FusionStyleImpl Qt6QuickControls2Imagine Qt6QuickControls2ImagineStyleImpl Qt6QuickControls2Impl Qt6QuickControls2Material Qt6QuickControls2MaterialStyleImpl Qt6QuickControls2Universal Qt6QuickControls2UniversalStyleImpl Qt6QuickControls2WindowsStyleImpl Qt6QuickEffects Qt6QuickLayouts Qt6QuickShapes Qt6QuickTemplates2 Qt6QuickVectorImage Qt6QuickVectorImageGenerator Qt6Svg
          Updating Qt6Core.dll.
          Updating Qt6Gui.dll.
          Updating Qt6Network.dll.
          Updating Qt6OpenGL.dll.
          Updating Qt6Qml.dll.
          Updating Qt6QmlMeta.dll.
          Updating Qt6QmlModels.dll.
          Updating Qt6QmlWorkerScript.dll.
          Updating Qt6Quick.dll.
          Updating Qt6QuickControls2.dll.
          Updating Qt6QuickControls2Basic.dll.
          Updating Qt6QuickControls2BasicStyleImpl.dll.
          Updating Qt6QuickControls2FluentWinUI3StyleImpl.dll.
          Updating Qt6QuickControls2Fusion.dll.
          Updating Qt6QuickControls2FusionStyleImpl.dll.
          Updating Qt6QuickControls2Imagine.dll.
          Updating Qt6QuickControls2ImagineStyleImpl.dll.
          Updating Qt6QuickControls2Impl.dll.
          Updating Qt6QuickControls2Material.dll.
          Updating Qt6QuickControls2MaterialStyleImpl.dll.
          Updating Qt6QuickControls2Universal.dll.
          Updating Qt6QuickControls2UniversalStyleImpl.dll.
          Updating Qt6QuickControls2WindowsStyleImpl.dll.
          Updating Qt6QuickEffects.dll.
          Updating Qt6QuickLayouts.dll.
          Updating Qt6QuickShapes.dll.
          Updating Qt6QuickTemplates2.dll.
          Updating Qt6QuickVectorImage.dll.
          Updating Qt6QuickVectorImageGenerator.dll.
          Updating Qt6Svg.dll.
          Updating opengl32sw.dll.
          Updating d3dcompiler_47.dll.
          Updating dxcompiler.dll.
          Updating dxil.dll.
          Updating vc_redist.x64.exe.
          Creating directory C:/Dev/Build/MyApp/Release/6.8.1/deploy/plugins/generic.
          Updating qtuiotouchplugin.dll.
          Creating directory C:/Dev/Build/MyApp/Release/6.8.1/deploy/plugins/iconengines.
          Updating qsvgicon.dll.
          Creating directory C:/Dev/Build/MyApp/Release/6.8.1/deploy/plugins/imageformats.
          Updating qgif.dll.
          Updating qico.dll.
          Updating qjpeg.dll.
          Updating qsvg.dll.
          Creating directory C:/Dev/Build/MyApp/Release/6.8.1/deploy/plugins/networkinformation.
          Updating qnetworklistmanager.dll.
          Creating directory C:/Dev/Build/MyApp/Release/6.8.1/deploy/plugins/platforms.
          Updating qwindows.dll.
          Creating directory C:/Dev/Build/MyApp/Release/6.8.1/deploy/plugins/qmltooling.
          Updating qmldbg_debugger.dll.
          Updating qmldbg_inspector.dll.
          Updating qmldbg_local.dll.
          Updating qmldbg_messages.dll.
          Updating qmldbg_native.dll.
          Updating qmldbg_nativedebugger.dll.
          Updating qmldbg_preview.dll.
          Updating qmldbg_profiler.dll.
          Updating qmldbg_quickprofiler.dll.
          Updating qmldbg_server.dll.
          Updating qmldbg_tcp.dll.
          Creating directory C:/Dev/Build/MyApp/Release/6.8.1/deploy/plugins/tls.
          Updating qcertonlybackend.dll.
          Updating qschannelbackend.dll.
          Creating translations...
          Creating qt_ar.qm...
          Creating qt_bg.qm...
          Creating qt_ca.qm...
          Creating qt_cs.qm...
          Creating qt_da.qm...
          Creating qt_de.qm...
          Creating qt_en.qm...
          Creating qt_es.qm...
          Creating qt_fa.qm...
          Creating qt_fi.qm...
          Creating qt_fr.qm...
          Creating qt_gd.qm...
          Creating qt_he.qm...
          Creating qt_hr.qm...
          Creating qt_hu.qm...
          Creating qt_it.qm...
          Creating qt_ja.qm...
          Creating qt_ka.qm...
          Creating qt_ko.qm...
          Creating qt_lv.qm...
          Creating qt_nl.qm...
          Creating qt_nn.qm...
          Creating qt_pl.qm...
          Creating qt_pt_BR.qm...
          Creating qt_ru.qm...
          Creating qt_sk.qm...
          Creating qt_tr.qm...
          Creating qt_uk.qm...
          Creating qt_zh_CN.qm...
          Creating qt_zh_TW.qm...
          09:26:44: The process "C:\Dev\Qt\Tools\Ninja\ninja.exe" exited normally.
          09:26:44: Elapsed time: 00:01.
          
          B 1 Reply Last reply
          0
          • B Bonnie

            Client > DEBUG: "C:/Dev/Qt/6.8.1/msvc2022_64/plugins/sqldrivers/qsqlpsql.dll" loaded library

            From the plugin debug message, the psql plugin is loaded successfully.

            This is the full output (before my app specific output starts) if I run my app from QtCreator.

            If I run my app from install dir this is the output:

            Well, that makes sense, so what's your plugin debug output when running from install dir?

            R Offline
            R Offline
            Redman
            wrote on last edited by
            #9

            @Bonnie I tried to do that but it did not work.
            I opened powershell and tried to

            Set-Variable -Name "QT_DEBUG_PLUGINS" -Value "1"
            

            and then execute my app. All I see is

            Client >>> WARNING: QSqlDatabase: QPSQL driver not loaded
            Client >>> WARNING: QSqlDatabase: available drivers:
            

            After that I added "QT_DEBUG_PLUGINS":1 to my system environment varaibles and restarted the powershell and execute my app again.
            Same result.
            If you could enlighten me how to achieve that in my install dir I would be very thankfull.

            1 Reply Last reply
            0
            • R Redman

              @Christian-Ehrlicher

              This is the output I get if I call ninja.exe install

              [0/1] Install the project...
              -- Install configuration: "Release"
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/TinyOrm0.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Tom.exe
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/McsDriver.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/libcrypto-3-x64.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Client.exe
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/qtquick2plugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQml/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQml/qmlplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQml/Models/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQml/Models/modelsplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQml/WorkerScript/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQml/WorkerScript/workerscriptplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/qtquickcontrols2plugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Fusion/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Fusion/qtquickcontrols2fusionstyleplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Material/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Material/qtquickcontrols2materialstyleplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Imagine/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Imagine/qtquickcontrols2imaginestyleplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Universal/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Universal/qtquickcontrols2universalstyleplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/FluentWinUI3/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/FluentWinUI3/qtquickcontrols2fluentwinui3styleplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Windows/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Windows/qtquickcontrols2windowsstyleplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Basic/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Basic/qtquickcontrols2basicstyleplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Templates/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Templates/qtquicktemplates2plugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/impl/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/impl/qtquickcontrols2implplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Fusion/impl/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Fusion/impl/qtquickcontrols2fusionstyleimplplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Window/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Window/quickwindowplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Material/impl/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Material/impl/qtquickcontrols2materialstyleimplplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Imagine/impl/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Imagine/impl/qtquickcontrols2imaginestyleimplplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Universal/impl/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Universal/impl/qtquickcontrols2universalstyleimplplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/FluentWinUI3/impl/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/FluentWinUI3/impl/qtquickcontrols2fluentwinui3styleimplplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Effects/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Effects/effectsplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Layouts/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Layouts/qquicklayoutsplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Shapes/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Shapes/qmlshapesplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/NativeStyle/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/NativeStyle/qtquickcontrols2nativestyleplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Windows/impl/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Windows/impl/qtquickcontrols2windowsstyleimplplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Basic/impl/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/Controls/Basic/impl/qtquickcontrols2basicstyleimplplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/core/app/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/core/app/Coreplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Core.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6OpcUa.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Db.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Quick.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlMeta.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlWorkerScript.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlModels.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Qml.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Network.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6OpenGL.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Gui.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Sql.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Util.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Core.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Core.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6OpcUa.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Db.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Quick.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlMeta.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlWorkerScript.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlModels.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Qml.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Network.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6OpenGL.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Gui.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Sql.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Util.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Core.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Core.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6OpcUa.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Db.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Quick.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlMeta.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlWorkerScript.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlModels.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Qml.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Network.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6OpenGL.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Gui.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Sql.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Util.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Core.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/VectorImage/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/QtQuick/VectorImage/qquickvectorimageplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/project/app/qmldir
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/qml/project/app/Projectplugin.dll
              -- Installing: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Project.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Redwave.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Core.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6OpcUa.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Db.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Quick.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlMeta.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlWorkerScript.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6QmlModels.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Qml.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Network.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6OpenGL.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Gui.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Sql.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Util.dll
              -- Up-to-date: C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/Qt6Core.dll
              -- Writing C:/Dev/Build/MyApp/Release/6.8.1/deploy/bin/qt.conf
              -- Running Qt deploy tool for C:/Dev/Build/MyApp/Release/6.8.1/bin/Client.exe in working directory 'C:/Dev/Build/MyApp/Release/6.8.1/deploy'
              'C:/Dev/Qt/6.8.1/msvc2022_64/bin/windeployqt.exe' 'C:/Dev/Build/MyApp/Release/6.8.1/bin/Client.exe' '--dir' '.' '--libdir' 'bin' '--plugindir' 'plugins' '--qml-deploy-dir' 'qml' '--translationdir' 'translations' '--force' '--qtpaths' 'C:/Dev/Qt/6.8.1/msvc2022_64/bin/qtpaths6.exe' 'qml/QtQuick/qtquick2plugin.dll' 'qml/QtQml/qmlplugin.dll' 'qml/QtQml/Models/modelsplugin.dll' 'qml/QtQml/WorkerScript/workerscriptplugin.dll' 'qml/QtQuick/Controls/qtquickcontrols2plugin.dll' 'qml/QtQuick/Controls/Fusion/qtquickcontrols2fusionstyleplugin.dll' 'qml/QtQuick/Controls/Material/qtquickcontrols2materialstyleplugin.dll' 'qml/QtQuick/Controls/Imagine/qtquickcontrols2imaginestyleplugin.dll' 'qml/QtQuick/Controls/Universal/qtquickcontrols2universalstyleplugin.dll' 'qml/QtQuick/Controls/FluentWinUI3/qtquickcontrols2fluentwinui3styleplugin.dll' 'qml/QtQuick/Controls/Windows/qtquickcontrols2windowsstyleplugin.dll' 'qml/QtQuick/Controls/Basic/qtquickcontrols2basicstyleplugin.dll' 'qml/QtQuick/Templates/qtquicktemplates2plugin.dll' 'qml/QtQuick/Controls/impl/qtquickcontrols2implplugin.dll' 'qml/QtQuick/Controls/Fusion/impl/qtquickcontrols2fusionstyleimplplugin.dll' 'qml/QtQuick/Window/quickwindowplugin.dll' 'qml/QtQuick/Controls/Material/impl/qtquickcontrols2materialstyleimplplugin.dll' 'qml/QtQuick/Controls/Imagine/impl/qtquickcontrols2imaginestyleimplplugin.dll' 'qml/QtQuick/Controls/Universal/impl/qtquickcontrols2universalstyleimplplugin.dll' 'qml/QtQuick/Controls/FluentWinUI3/impl/qtquickcontrols2fluentwinui3styleimplplugin.dll' 'qml/QtQuick/Effects/effectsplugin.dll' 'qml/QtQuick/Layouts/qquicklayoutsplugin.dll' 'qml/QtQuick/Shapes/qmlshapesplugin.dll' 'qml/QtQuick/NativeStyle/qtquickcontrols2nativestyleplugin.dll' 'qml/QtQuick/Controls/Windows/impl/qtquickcontrols2windowsstyleimplplugin.dll' 'qml/QtQuick/Controls/Basic/impl/qtquickcontrols2basicstyleimplplugin.dll' 'qml/core/app/Coreplugin.dll' 'qml/QtQuick/VectorImage/qquickvectorimageplugin.dll' 'qml/project/app/Projectplugin.dll'
              C:\Dev\Build\MyApp\Release\6.8.1\bin\Client.exe 64 bit, release executable [QML]
              Adding in plugin type generic for module: Qt6Gui
              Adding in plugin type iconengines for module: Qt6Gui
              Adding in plugin type imageformats for module: Qt6Gui
              Adding in plugin type networkinformation for module: Qt6Network
              Adding in plugin type platforms for module: Qt6Gui
              Adding in plugin type qmltooling for module: Qt6Qml
              Adding in plugin type tls for module: Qt6Network
              Skipping plugin qopensslbackend.dll. Use -force-openssl or specify -openssl-root if you want to use it.
              Direct dependencies: Qt6Core Qt6Gui Qt6Network Qt6OpenGL Qt6Qml Qt6QmlMeta Qt6QmlModels Qt6QmlWorkerScript Qt6Quick Qt6QuickControls2 Qt6QuickControls2Basic Qt6QuickControls2BasicStyleImpl Qt6QuickControls2FluentWinUI3StyleImpl Qt6QuickControls2Fusion Qt6QuickControls2FusionStyleImpl Qt6QuickControls2Imagine Qt6QuickControls2ImagineStyleImpl Qt6QuickControls2Impl Qt6QuickControls2Material Qt6QuickControls2MaterialStyleImpl Qt6QuickControls2Universal Qt6QuickControls2UniversalStyleImpl Qt6QuickControls2WindowsStyleImpl Qt6QuickEffects Qt6QuickLayouts Qt6QuickShapes Qt6QuickTemplates2 Qt6QuickVectorImage Qt6QuickVectorImageGenerator Qt6Svg
              All dependencies   : Qt6Core Qt6Gui Qt6Network Qt6OpenGL Qt6Qml Qt6QmlMeta Qt6QmlModels Qt6QmlWorkerScript Qt6Quick Qt6QuickControls2 Qt6QuickControls2Basic Qt6QuickControls2BasicStyleImpl Qt6QuickControls2FluentWinUI3StyleImpl Qt6QuickControls2Fusion Qt6QuickControls2FusionStyleImpl Qt6QuickControls2Imagine Qt6QuickControls2ImagineStyleImpl Qt6QuickControls2Impl Qt6QuickControls2Material Qt6QuickControls2MaterialStyleImpl Qt6QuickControls2Universal Qt6QuickControls2UniversalStyleImpl Qt6QuickControls2WindowsStyleImpl Qt6QuickEffects Qt6QuickLayouts Qt6QuickShapes Qt6QuickTemplates2 Qt6QuickVectorImage Qt6QuickVectorImageGenerator Qt6Svg
              To be deployed     : Qt6Core Qt6Gui Qt6Network Qt6OpenGL Qt6Qml Qt6QmlMeta Qt6QmlModels Qt6QmlWorkerScript Qt6Quick Qt6QuickControls2 Qt6QuickControls2Basic Qt6QuickControls2BasicStyleImpl Qt6QuickControls2FluentWinUI3StyleImpl Qt6QuickControls2Fusion Qt6QuickControls2FusionStyleImpl Qt6QuickControls2Imagine Qt6QuickControls2ImagineStyleImpl Qt6QuickControls2Impl Qt6QuickControls2Material Qt6QuickControls2MaterialStyleImpl Qt6QuickControls2Universal Qt6QuickControls2UniversalStyleImpl Qt6QuickControls2WindowsStyleImpl Qt6QuickEffects Qt6QuickLayouts Qt6QuickShapes Qt6QuickTemplates2 Qt6QuickVectorImage Qt6QuickVectorImageGenerator Qt6Svg
              Updating Qt6Core.dll.
              Updating Qt6Gui.dll.
              Updating Qt6Network.dll.
              Updating Qt6OpenGL.dll.
              Updating Qt6Qml.dll.
              Updating Qt6QmlMeta.dll.
              Updating Qt6QmlModels.dll.
              Updating Qt6QmlWorkerScript.dll.
              Updating Qt6Quick.dll.
              Updating Qt6QuickControls2.dll.
              Updating Qt6QuickControls2Basic.dll.
              Updating Qt6QuickControls2BasicStyleImpl.dll.
              Updating Qt6QuickControls2FluentWinUI3StyleImpl.dll.
              Updating Qt6QuickControls2Fusion.dll.
              Updating Qt6QuickControls2FusionStyleImpl.dll.
              Updating Qt6QuickControls2Imagine.dll.
              Updating Qt6QuickControls2ImagineStyleImpl.dll.
              Updating Qt6QuickControls2Impl.dll.
              Updating Qt6QuickControls2Material.dll.
              Updating Qt6QuickControls2MaterialStyleImpl.dll.
              Updating Qt6QuickControls2Universal.dll.
              Updating Qt6QuickControls2UniversalStyleImpl.dll.
              Updating Qt6QuickControls2WindowsStyleImpl.dll.
              Updating Qt6QuickEffects.dll.
              Updating Qt6QuickLayouts.dll.
              Updating Qt6QuickShapes.dll.
              Updating Qt6QuickTemplates2.dll.
              Updating Qt6QuickVectorImage.dll.
              Updating Qt6QuickVectorImageGenerator.dll.
              Updating Qt6Svg.dll.
              Updating opengl32sw.dll.
              Updating d3dcompiler_47.dll.
              Updating dxcompiler.dll.
              Updating dxil.dll.
              Updating vc_redist.x64.exe.
              Creating directory C:/Dev/Build/MyApp/Release/6.8.1/deploy/plugins/generic.
              Updating qtuiotouchplugin.dll.
              Creating directory C:/Dev/Build/MyApp/Release/6.8.1/deploy/plugins/iconengines.
              Updating qsvgicon.dll.
              Creating directory C:/Dev/Build/MyApp/Release/6.8.1/deploy/plugins/imageformats.
              Updating qgif.dll.
              Updating qico.dll.
              Updating qjpeg.dll.
              Updating qsvg.dll.
              Creating directory C:/Dev/Build/MyApp/Release/6.8.1/deploy/plugins/networkinformation.
              Updating qnetworklistmanager.dll.
              Creating directory C:/Dev/Build/MyApp/Release/6.8.1/deploy/plugins/platforms.
              Updating qwindows.dll.
              Creating directory C:/Dev/Build/MyApp/Release/6.8.1/deploy/plugins/qmltooling.
              Updating qmldbg_debugger.dll.
              Updating qmldbg_inspector.dll.
              Updating qmldbg_local.dll.
              Updating qmldbg_messages.dll.
              Updating qmldbg_native.dll.
              Updating qmldbg_nativedebugger.dll.
              Updating qmldbg_preview.dll.
              Updating qmldbg_profiler.dll.
              Updating qmldbg_quickprofiler.dll.
              Updating qmldbg_server.dll.
              Updating qmldbg_tcp.dll.
              Creating directory C:/Dev/Build/MyApp/Release/6.8.1/deploy/plugins/tls.
              Updating qcertonlybackend.dll.
              Updating qschannelbackend.dll.
              Creating translations...
              Creating qt_ar.qm...
              Creating qt_bg.qm...
              Creating qt_ca.qm...
              Creating qt_cs.qm...
              Creating qt_da.qm...
              Creating qt_de.qm...
              Creating qt_en.qm...
              Creating qt_es.qm...
              Creating qt_fa.qm...
              Creating qt_fi.qm...
              Creating qt_fr.qm...
              Creating qt_gd.qm...
              Creating qt_he.qm...
              Creating qt_hr.qm...
              Creating qt_hu.qm...
              Creating qt_it.qm...
              Creating qt_ja.qm...
              Creating qt_ka.qm...
              Creating qt_ko.qm...
              Creating qt_lv.qm...
              Creating qt_nl.qm...
              Creating qt_nn.qm...
              Creating qt_pl.qm...
              Creating qt_pt_BR.qm...
              Creating qt_ru.qm...
              Creating qt_sk.qm...
              Creating qt_tr.qm...
              Creating qt_uk.qm...
              Creating qt_zh_CN.qm...
              Creating qt_zh_TW.qm...
              09:26:44: The process "C:\Dev\Qt\Tools\Ninja\ninja.exe" exited normally.
              09:26:44: Elapsed time: 00:01.
              
              B Offline
              B Offline
              Bonnie
              wrote on last edited by
              #10

              @Redman Well from the output apparently it did not copy the sqldrivers plugins.
              I don't know why since I'm not familiar with qt_generate_deploy_qml_app_script.
              How about copy them manually?

              R 1 Reply Last reply
              0
              • B Bonnie

                @Redman Well from the output apparently it did not copy the sqldrivers plugins.
                I don't know why since I'm not familiar with qt_generate_deploy_qml_app_script.
                How about copy them manually?

                R Offline
                R Offline
                Redman
                wrote on last edited by Redman
                #11

                @Bonnie Indeed the sqldriver plugin was not copied. I did that manually and now the output says

                Client >>> WARNING: QSqlDatabase: QPSQL driver not loaded
                Client >>> WARNING: QSqlDatabase: available drivers: QSQLITE QMIMER QODBC QPSQL
                

                Managed to make it work.
                Following plugins were not installed with windeployqt (bug?)

                • sqldrivers plugin
                • opcua plugin

                Furthermore, I had to copy the postgresql dlls into my install folder. For now I copy all of them, maybe I can narrow it down since I can not find any documentation on that.

                JonBJ 1 Reply Last reply
                0
                • R Redman

                  @Bonnie Indeed the sqldriver plugin was not copied. I did that manually and now the output says

                  Client >>> WARNING: QSqlDatabase: QPSQL driver not loaded
                  Client >>> WARNING: QSqlDatabase: available drivers: QSQLITE QMIMER QODBC QPSQL
                  

                  Managed to make it work.
                  Following plugins were not installed with windeployqt (bug?)

                  • sqldrivers plugin
                  • opcua plugin

                  Furthermore, I had to copy the postgresql dlls into my install folder. For now I copy all of them, maybe I can narrow it down since I can not find any documentation on that.

                  JonBJ Online
                  JonBJ Online
                  JonB
                  wrote on last edited by
                  #12

                  @Redman
                  set QT_DEBUG_PLUGINS=1 should be giving more diagnostic output than you are reporting. You should be getting output like you showed from Creator. I don't know about PowerShell, are you able to open a standard Command Prompt, set this variable and try running your application from there?

                  R 1 Reply Last reply
                  0
                  • JonBJ JonB

                    @Redman
                    set QT_DEBUG_PLUGINS=1 should be giving more diagnostic output than you are reporting. You should be getting output like you showed from Creator. I don't know about PowerShell, are you able to open a standard Command Prompt, set this variable and try running your application from there?

                    R Offline
                    R Offline
                    Redman
                    wrote on last edited by
                    #13

                    @JonB I tried it in cmd and it gave me the output. As I mentioned in my post before, windeployqt does not install the sqldriver/opcua plugin.

                    Even though I use them in my project

                    # Declare needed Qt modules
                    find_package(Qt6 REQUIRED COMPONENTS Core Test Sql Quick QuickControls2 Network OpcUa)
                    qt_standard_project_setup(REQUIRES 6.8)
                    
                    # Link against libraries
                    target_link_libraries(${PROJECT_NAME} PRIVATE
                        Qt${QT_MAJOR_VERSION}::Quick
                        Qt${QT_MAJOR_VERSION}::QuickControls2
                        Qt${QT_VERSION_MAJOR}::Sql
                        Qt${QT_VERSION_MAJOR}::OpcUa
                    )
                    
                    JonBJ 1 Reply Last reply
                    0
                    • R Redman

                      @JonB I tried it in cmd and it gave me the output. As I mentioned in my post before, windeployqt does not install the sqldriver/opcua plugin.

                      Even though I use them in my project

                      # Declare needed Qt modules
                      find_package(Qt6 REQUIRED COMPONENTS Core Test Sql Quick QuickControls2 Network OpcUa)
                      qt_standard_project_setup(REQUIRES 6.8)
                      
                      # Link against libraries
                      target_link_libraries(${PROJECT_NAME} PRIVATE
                          Qt${QT_MAJOR_VERSION}::Quick
                          Qt${QT_MAJOR_VERSION}::QuickControls2
                          Qt${QT_VERSION_MAJOR}::Sql
                          Qt${QT_VERSION_MAJOR}::OpcUa
                      )
                      
                      JonBJ Online
                      JonBJ Online
                      JonB
                      wrote on last edited by
                      #14

                      @Redman said in uses incompatible Qt library. (Cannot mix debug and release libraries.)":

                      As I mentioned in my post before, windeployqt does not install the sqldriver/opcua plugin.

                      Ah, OK, I know nothing about windeployqt, hopefully someone else will be able to help.

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        Redman
                        wrote on last edited by
                        #15

                        So I managed to resolve the issue:
                        First of all, following error

                        QSqlDatabase: QPSQL driver not loaded
                        QSqlDatabase: available drivers:
                        

                        indicates, that in the install directory plugins/sqldrivers and its contents is missing.
                        This is usually detected by windeployqt.exe.
                        If this is not the case adding --include-plugins qsqlpsql as argument to windeployqt.exe solves the issue.
                        qsqlpsql is for PostgreSQL.

                        This resulted in following output when running the app:

                        Client >>> WARNING: QSqlDatabase: QPSQL driver not loaded
                        Client >>> WARNING: QSqlDatabase: available drivers: QSQLITE QMIMER QODBC QPSQL
                        

                        Which means, that the PostgreSQL runtime was not installed correctly. To solve this I simply did

                        find_package(PostgreSQL)
                        list(GET PostgreSQL_INCLUDE_DIRS 0 PSQLINCLUDEDIR)
                        install(FILES ${PSQLINCLUDEDIR}/../bin/libcrypto-3-x64.dll DESTINATION ${CMAKE_INSTALL_BINDIR})
                        install(FILES ${PSQLINCLUDEDIR}/../bin/libssl-3-x64.dll DESTINATION ${CMAKE_INSTALL_BINDIR})
                        install(FILES ${PSQLINCLUDEDIR}/../bin/libpq.dll DESTINATION ${CMAKE_INSTALL_BINDIR})
                        
                        1 Reply Last reply
                        0
                        • R Redman has marked this topic as solved on

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved