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. QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success

QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmysql
69 Posts 7 Posters 12.6k 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.
  • C cpplegend

    @jsulm this is the output (I show you the whole output because it is different from the first one when I got "QMYSQL driver not loaded"): 'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Users\ianno\OneDrive\Desktop\QTProjects\PROVE\imageDB_provaDiConnessione\x64\Debug\imageDB_provaDiConnessione.exe' completato. Simboli caricati.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\ntdll.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\kernel32.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\KernelBase.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\shell32.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\msvcp_win.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\ucrtbase.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Qt\6.5.1\msvc2019_64\bin\Qt6Widgetsd.dll' completato. Simboli caricati.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\user32.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Qt\6.5.1\msvc2019_64\bin\Qt6Sqld.dll' completato. Simboli caricati.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Qt\6.5.1\msvc2019_64\bin\Qt6Cored.dll' completato. Simboli caricati.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\win32u.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\gdi32.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\gdi32full.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\advapi32.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\vcruntime140d.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\msvcrt.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\msvcp140d.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\vcruntime140_1d.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\sechost.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\rpcrt4.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\ole32.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\ucrtbased.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\ucrtbased.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\ucrtbased.dll' completato
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\combase.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\dwmapi.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\ws2_32.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\oleaut32.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\uxtheme.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\mpr.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Qt\6.5.1\msvc2019_64\bin\Qt6Guid.dll' completato. Simboli caricati.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\msvcp140_1d.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\userenv.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\authz.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\netapi32.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\winmm.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\version.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\dxgi.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\d3d11.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\dcomp.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\DWrite.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\msvcp140_2d.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\cryptbase.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\kernel.appcore.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\srvcli.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\netutils.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\imm32.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\bcryptprimitives.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\SHCore.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\windows.storage.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\WinTypes.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\shlwapi.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\profapi.dll' completato.
    qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/mingw_64/plugins/platforms" ...
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/mingw_64/plugins/platforms/qdirect2d.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/mingw_64/plugins/platforms/qdirect2d.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "direct2d"
    ]
    },
    "archlevel": 2,
    "className": "QWindowsDirect2DIntegrationPlugin",
    "debug": false,
    "version": 394496
    }

    qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/mingw_64/plugins/platforms/qdirect2d.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/mingw_64/plugins/platforms/qminimal.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/mingw_64/plugins/platforms/qminimal.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "minimal"
    ]
    },
    "archlevel": 2,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 394496
    }

    qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/mingw_64/plugins/platforms/qminimal.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/mingw_64/plugins/platforms/qoffscreen.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/mingw_64/plugins/platforms/qoffscreen.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "offscreen"
    ]
    },
    "archlevel": 2,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 394496
    }

    qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/mingw_64/plugins/platforms/qoffscreen.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/mingw_64/plugins/platforms/qwindows.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/mingw_64/plugins/platforms/qwindows.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "windows"
    ]
    },
    "archlevel": 2,
    "className": "QWindowsIntegrationPlugin",
    "debug": false,
    "version": 394496
    }

    qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/mingw_64/plugins/platforms/qwindows.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/msvc2019_64/plugins/platforms" ...
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qdirect2d.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_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": 394496
    }

    qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qdirect2d.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qdirect2dd.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_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": 394496
    }

    qt.core.plugin.factoryloader: Got keys from plugin meta data QList("direct2d")
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qminimal.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_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": 394496
    }

    qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qminimal.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qminimald.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_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": 394496
    }

    qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimal")
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qoffscreen.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_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": 394496
    }

    qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qoffscreen.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qoffscreend.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_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": 394496
    }

    qt.core.plugin.factoryloader: Got keys from plugin meta data QList("offscreen")
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qwindows.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_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": 394496
    }

    qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qwindows.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qwindowsd.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_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": 394496
    }

    qt.core.plugin.factoryloader: Got keys from plugin meta data QList("windows")
    qt.core.plugin.factoryloader: checking directory path "C:/Users/ianno/OneDrive/Desktop/QTProjects/PROVE/imageDB_provaDiConnessione/x64/Debug/platforms" ...
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Qt\6.5.1\msvc2019_64\plugins\platforms\qwindowsd.dll' completato. Simboli caricati.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\comdlg32.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\wtsapi32.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\d3d9.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.22621.1635_none_270f70857386168e\comctl32.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\DXCore.dll' completato.
    qt.core.library: "C:/Qt/6.5.1/msvc2019_64/plugins/platforms/qwindowsd.dll" loaded library
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\powrprof.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\umpdc.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\msctf.dll' completato.
    qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/mingw_64/plugins/platformthemes" ...
    qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/msvc2019_64/plugins/platformthemes" ...
    qt.core.plugin.factoryloader: checking directory path "C:/Users/ianno/OneDrive/Desktop/QTProjects/PROVE/imageDB_provaDiConnessione/x64/Debug/platformthemes" ...
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\clbcatq.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\Windows.UI.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\Windows.UI.Immersive.dll' completato.
    qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/mingw_64/plugins/styles" ...
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/mingw_64/plugins/styles/qwindowsvistastyle.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/mingw_64/plugins/styles/qwindowsvistastyle.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QStyleFactoryInterface",
    "MetaData": {
    "Keys": [
    "windowsvista"
    ]
    },
    "archlevel": 2,
    "className": "QWindowsVistaStylePlugin",
    "debug": false,
    "version": 394496
    }

    qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/mingw_64/plugins/styles/qwindowsvistastyle.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/msvc2019_64/plugins/styles" ...
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/styles/qwindowsvistastyle.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/styles/qwindowsvistastyle.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QStyleFactoryInterface",
    "MetaData": {
    "Keys": [
    "windowsvista"
    ]
    },
    "archlevel": 0,
    "className": "QWindowsVistaStylePlugin",
    "debug": false,
    "version": 394496
    }

    qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/msvc2019_64/plugins/styles/qwindowsvistastyle.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/styles/qwindowsvistastyled.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/styles/qwindowsvistastyled.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QStyleFactoryInterface",
    "MetaData": {
    "Keys": [
    "windowsvista"
    ]
    },
    "archlevel": 0,
    "className": "QWindowsVistaStylePlugin",
    "debug": true,
    "version": 394496
    }

    qt.core.plugin.factoryloader: Got keys from plugin meta data QList("windowsvista")
    qt.core.plugin.factoryloader: checking directory path "C:/Users/ianno/OneDrive/Desktop/QTProjects/PROVE/imageDB_provaDiConnessione/x64/Debug/styles" ...
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Qt\6.5.1\msvc2019_64\plugins\styles\qwindowsvistastyled.dll' completato. Simboli caricati.
    qt.core.library: "C:/Qt/6.5.1/msvc2019_64/plugins/styles/qwindowsvistastyled.dll" loaded library
    qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/mingw_64/plugins/sqldrivers" ...
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/mingw_64/plugins/sqldrivers/qsqlite.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/mingw_64/plugins/sqldrivers/qsqlite.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
    "MetaData": {
    "Keys": [
    "QSQLITE"
    ]
    },
    "archlevel": 2,
    "className": "QSQLiteDriverPlugin",
    "debug": false,
    "version": 394496
    }

    qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/mingw_64/plugins/sqldrivers/qsqlite.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/mingw_64/plugins/sqldrivers/qsqlodbc.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/mingw_64/plugins/sqldrivers/qsqlodbc.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
    "MetaData": {
    "Keys": [
    "QODBC"
    ]
    },
    "archlevel": 2,
    "className": "QODBCDriverPlugin",
    "debug": false,
    "version": 394496
    }

    qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/mingw_64/plugins/sqldrivers/qsqlodbc.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/mingw_64/plugins/sqldrivers/qsqlpsql.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/mingw_64/plugins/sqldrivers/qsqlpsql.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
    "MetaData": {
    "Keys": [
    "QPSQL"
    ]
    },
    "archlevel": 2,
    "className": "QPSQLDriverPlugin",
    "debug": false,
    "version": 394496
    }

    qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/mingw_64/plugins/sqldrivers/qsqlpsql.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers" ...
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlite.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlite.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
    "MetaData": {
    "Keys": [
    "QSQLITE"
    ]
    },
    "archlevel": 0,
    "className": "QSQLiteDriverPlugin",
    "debug": false,
    "version": 394496
    }

    qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlite.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlited.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlited.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
    "MetaData": {
    "Keys": [
    "QSQLITE"
    ]
    },
    "archlevel": 0,
    "className": "QSQLiteDriverPlugin",
    "debug": true,
    "version": 394496
    }

    qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QSQLITE")
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlodbc.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlodbc.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
    "MetaData": {
    "Keys": [
    "QODBC"
    ]
    },
    "archlevel": 0,
    "className": "QODBCDriverPlugin",
    "debug": false,
    "version": 394496
    }

    qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlodbc.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlodbcd.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlodbcd.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
    "MetaData": {
    "Keys": [
    "QODBC"
    ]
    },
    "archlevel": 0,
    "className": "QODBCDriverPlugin",
    "debug": true,
    "version": 394496
    }

    qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QODBC")
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlpsql.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlpsql.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
    "MetaData": {
    "Keys": [
    "QPSQL"
    ]
    },
    "archlevel": 0,
    "className": "QPSQLDriverPlugin",
    "debug": false,
    "version": 394496
    }

    qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlpsql.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    qt.core.plugin.factoryloader: looking at "C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlpsqld.dll"
    qt.core.plugin.loader: Found metadata in lib C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers/qsqlpsqld.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
    "MetaData": {
    "Keys": [
    "QPSQL"
    ]
    },
    "archlevel": 0,
    "className": "QPSQLDriverPlugin",
    "debug": true,
    "version": 394496
    }

    qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QPSQL")
    qt.core.plugin.factoryloader: checking directory path "C:/Users/ianno/OneDrive/Desktop/QTProjects/PROVE/imageDB_provaDiConnessione/x64/Debug/sqldrivers" ...
    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE QODBC QPSQL
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\WindowsCodecs.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\thumbcache.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\policymanager.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\msvcp110_win.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5b6e4554b945d508\nvldumdx.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\msasn1.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\cryptnet.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\crypt32.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\drvstore.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\devobj.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\cfgmgr32.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\cfgmgr32.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\cfgmgr32.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\cfgmgr32.dll' completato
    'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\cfgmgr32.dll' completato
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\wldp.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\wintrust.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\imagehlp.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\cryptsp.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\rsaenh.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\bcrypt.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5b6e4554b945d508\nvd3dumx.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\directxdatabasehelper.dll' completato.
    Il thread 0xa2c è terminato con il codice 0 (0x0).
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\ResourcePolicyClient.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\ResourcePolicyClient.dll' completato
    'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5b6e4554b945d508\nvd3dumx.dll' completato
    'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\drvstore.dll' completato
    'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\cfgmgr32.dll' completato
    'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\devobj.dll' completato
    'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\wldp.dll' completato
    'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_5b6e4554b945d508\nvldumdx.dll' completato
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\DataExchange.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\twinapi.appcore.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\TextInputFramework.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\CoreMessaging.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\CoreUIComponents.dll' completato.
    qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/mingw_64/plugins/accessible" ...
    qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/msvc2019_64/plugins/accessible" ...
    qt.core.plugin.factoryloader: checking directory path "C:/Users/ianno/OneDrive/Desktop/QTProjects/PROVE/imageDB_provaDiConnessione/x64/Debug/accessible" ...
    qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/mingw_64/plugins/accessiblebridge" ...
    qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.5.1/msvc2019_64/plugins/accessiblebridge" ...
    qt.core.plugin.factoryloader: checking directory path "C:/Users/ianno/OneDrive/Desktop/QTProjects/PROVE/imageDB_provaDiConnessione/x64/Debug/accessiblebridge" ...
    'imageDB_provaDiConnessione.exe' (Win32): caricamento di 'C:\Windows\System32\ExplorerFrame.dll' completato.
    'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\imagehlp.dll' completato
    'imageDB_provaDiConnessione.exe' (Win32): scaricamento di 'C:\Windows\System32\wintrust.dll' completato
    Il thread 0x2938 è terminato con il codice 0 (0x0).

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

    @cpplegend Instead posting all this stuff you could have searched for mysql in the output by yourself and would have seen that there is no mysql plugin loaded. So you either did not build it or it was build but not copied to the sqldriver plugin directory.

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

    C 1 Reply Last reply
    1
    • Christian EhrlicherC Christian Ehrlicher

      @cpplegend Instead posting all this stuff you could have searched for mysql in the output by yourself and would have seen that there is no mysql plugin loaded. So you either did not build it or it was build but not copied to the sqldriver plugin directory.

      C Offline
      C Offline
      cpplegend
      wrote on last edited by cpplegend
      #48

      @Christian-Ehrlicher I have seen it, it is in the plugin folder, plugin folder is in the mingw folder...I also tried to put the sqldrivers folder into: C:\Users\ianno\OneDrive\Desktop\QTProjects\PROVE\imageDB_provaDiConnessione\x64\Debug\sqldrivers... I have in this folder these files:
      "qsqlite.debug"
      "qsqlite.dll"
      "qsqlmysql.debug"
      "qsqlmysql.dll"
      "qsqlodbc.debug"
      "qsqlodbc.dll"

      I simply don't understand what I should do, could you explain the right process? I know I am boring I have been asking here for days..but I really need to understand

      Christian EhrlicherC JonBJ T 3 Replies Last reply
      0
      • C cpplegend

        @Christian-Ehrlicher I have seen it, it is in the plugin folder, plugin folder is in the mingw folder...I also tried to put the sqldrivers folder into: C:\Users\ianno\OneDrive\Desktop\QTProjects\PROVE\imageDB_provaDiConnessione\x64\Debug\sqldrivers... I have in this folder these files:
        "qsqlite.debug"
        "qsqlite.dll"
        "qsqlmysql.debug"
        "qsqlmysql.dll"
        "qsqlodbc.debug"
        "qsqlodbc.dll"

        I simply don't understand what I should do, could you explain the right process? I know I am boring I have been asking here for days..but I really need to understand

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

        You see where Qt is searching for plugins so put the compiled mysql plugin to this folder and see what happens... really that hard?

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

        C 1 Reply Last reply
        0
        • C cpplegend

          @Christian-Ehrlicher I have seen it, it is in the plugin folder, plugin folder is in the mingw folder...I also tried to put the sqldrivers folder into: C:\Users\ianno\OneDrive\Desktop\QTProjects\PROVE\imageDB_provaDiConnessione\x64\Debug\sqldrivers... I have in this folder these files:
          "qsqlite.debug"
          "qsqlite.dll"
          "qsqlmysql.debug"
          "qsqlmysql.dll"
          "qsqlodbc.debug"
          "qsqlodbc.dll"

          I simply don't understand what I should do, could you explain the right process? I know I am boring I have been asking here for days..but I really need to understand

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #50

          @cpplegend
          I am not an expert in this area, but just by looking at the output it shows you I would think you may have 2 areas to address:

          • You can see it is looking for plugins in directory C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers. You say you have copied files to directory C:\Users\ianno\OneDrive\Desktop\QTProjects\PROVE\imageDB_provaDiConnessione\x64\Debug\sqldrivers. How do you expect Qt program to know you have put files there? @Christian-Ehrlicher wrote

          it was build but not copied to the sqldriver plugin directory

          • You seem to have built a debug version of the plugin library. I would assume the others were built for release, and you may need to do the same.
          C 1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            You see where Qt is searching for plugins so put the compiled mysql plugin to this folder and see what happens... really that hard?

            C Offline
            C Offline
            cpplegend
            wrote on last edited by
            #51
            This post is deleted!
            1 Reply Last reply
            0
            • JonBJ JonB

              @cpplegend
              I am not an expert in this area, but just by looking at the output it shows you I would think you may have 2 areas to address:

              • You can see it is looking for plugins in directory C:/Qt/6.5.1/msvc2019_64/plugins/sqldrivers. You say you have copied files to directory C:\Users\ianno\OneDrive\Desktop\QTProjects\PROVE\imageDB_provaDiConnessione\x64\Debug\sqldrivers. How do you expect Qt program to know you have put files there? @Christian-Ehrlicher wrote

              it was build but not copied to the sqldriver plugin directory

              • You seem to have built a debug version of the plugin library. I would assume the others were built for release, and you may need to do the same.
              C Offline
              C Offline
              cpplegend
              wrote on last edited by cpplegend
              #52

              @JonB I tried and it didn't work, as you can see it says: qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QPSQL")
              qt.core.plugin.factoryloader: checking directory path "C:/Users/ianno/OneDrive/Desktop/QTProjects/PROVE/imageDB_provaDiConnessione/x64/Debug/sqldrivers" ...
              QSqlDatabase: QMYSQL driver not loaded
              QSqlDatabase: available drivers: QSQLITE QODBC QPSQL

              then I tried to put the plugins into this folder and it said that those are incompatible...

              JonBJ 1 Reply Last reply
              0
              • C cpplegend

                @JonB I tried and it didn't work, as you can see it says: qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QPSQL")
                qt.core.plugin.factoryloader: checking directory path "C:/Users/ianno/OneDrive/Desktop/QTProjects/PROVE/imageDB_provaDiConnessione/x64/Debug/sqldrivers" ...
                QSqlDatabase: QMYSQL driver not loaded
                QSqlDatabase: available drivers: QSQLITE QODBC QPSQL

                then I tried to put the plugins into this folder and it said that those are incompatible...

                JonBJ Offline
                JonBJ Offline
                JonB
                wrote on last edited by JonB
                #53

                @cpplegend said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:

                it said that those are incompatible...

                Did you do anything about my suggestion that a Debug version of the DLL may not be acceptable/loadable and you should try a Release version?

                Otherwise you might copy & paste the actual message rather than telling us "it said that those are incompatible...".

                C 2 Replies Last reply
                0
                • JonBJ JonB

                  @cpplegend said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:

                  it said that those are incompatible...

                  Did you do anything about my suggestion that a Debug version of the DLL may not be acceptable/loadable and you should try a Release version?

                  Otherwise you might copy & paste the actual message rather than telling us "it said that those are incompatible...".

                  C Offline
                  C Offline
                  cpplegend
                  wrote on last edited by
                  #54

                  @JonB I didn't try to make a release Version, how can I do it? I didn't share what the Debug Window says because I cannot use my computer now, my room is occupied (I am 17 yo)

                  1 Reply Last reply
                  0
                  • JonBJ JonB

                    @cpplegend said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:

                    it said that those are incompatible...

                    Did you do anything about my suggestion that a Debug version of the DLL may not be acceptable/loadable and you should try a Release version?

                    Otherwise you might copy & paste the actual message rather than telling us "it said that those are incompatible...".

                    C Offline
                    C Offline
                    cpplegend
                    wrote on last edited by
                    #55

                    @JonB hei so how do I build the release version?

                    JonBJ 1 Reply Last reply
                    0
                    • C cpplegend

                      @JonB hei so how do I build the release version?

                      JonBJ Offline
                      JonBJ Offline
                      JonB
                      wrote on last edited by JonB
                      #56

                      @cpplegend
                      Some things you are really supposed to figure for yourself. Or if necessary look up in Help. In Creator you choose which configuration to build. You apparently currently have it on "Debug". You should change that to "Release" and rebuild. Note that the resulting DLL will no longer be in the .../x64/Debug/sqldrivers directory used when building for debug, if you need to copy the built file(s) you will need to copy from the new location.

                      C 1 Reply Last reply
                      1
                      • C cpplegend

                        @Christian-Ehrlicher I have seen it, it is in the plugin folder, plugin folder is in the mingw folder...I also tried to put the sqldrivers folder into: C:\Users\ianno\OneDrive\Desktop\QTProjects\PROVE\imageDB_provaDiConnessione\x64\Debug\sqldrivers... I have in this folder these files:
                        "qsqlite.debug"
                        "qsqlite.dll"
                        "qsqlmysql.debug"
                        "qsqlmysql.dll"
                        "qsqlodbc.debug"
                        "qsqlodbc.dll"

                        I simply don't understand what I should do, could you explain the right process? I know I am boring I have been asking here for days..but I really need to understand

                        T Offline
                        T Offline
                        thecodemonkey
                        wrote on last edited by
                        #57

                        @cpplegend on the one hand you have posted a list of plugins plugins that clearly are in MinGW format (telling from .debug file extension), but on the other hand you posted paths containing msvc2019_64. You need to use the correct plugins for the compiler you use

                        1 Reply Last reply
                        0
                        • JonBJ JonB

                          @cpplegend
                          Some things you are really supposed to figure for yourself. Or if necessary look up in Help. In Creator you choose which configuration to build. You apparently currently have it on "Debug". You should change that to "Release" and rebuild. Note that the resulting DLL will no longer be in the .../x64/Debug/sqldrivers directory used when building for debug, if you need to copy the built file(s) you will need to copy from the new location.

                          C Offline
                          C Offline
                          cpplegend
                          wrote on last edited by
                          #58

                          @JonB @thecodemonkey I really feel so stupid when you talk you obviously know more on this topic than me, please could you explain what I have to do because I am not understanding anything. what should I do now? should I download any other file? I am really sick of this plugin but I need to understand... I know I am boring, I always say the same thing, but it's because I don't understand, it's so difficult..if it is just coding I learn pretty fast, but these things are new to me

                          T 1 Reply Last reply
                          0
                          • C cpplegend

                            @JonB @thecodemonkey I really feel so stupid when you talk you obviously know more on this topic than me, please could you explain what I have to do because I am not understanding anything. what should I do now? should I download any other file? I am really sick of this plugin but I need to understand... I know I am boring, I always say the same thing, but it's because I don't understand, it's so difficult..if it is just coding I learn pretty fast, but these things are new to me

                            T Offline
                            T Offline
                            thecodemonkey
                            wrote on last edited by thecodemonkey
                            #59

                            @cpplegend you can use different C++ compilers with Qt. On Windows by default these are Microsoft Visual C++ or MinGW. During Installation in Qt maintenance tool you choose if you install the Qt version for MSVC or for MinGW (or both):

                            fa1e2c03-d495-45ea-85bd-8831ed0c71cc-image.png .

                            If you are a beginner, I recommend to install only one of them to avoid confusion. In Qt Creator under "Projects" you should be able to see, which Qt version is used for the current project:

                            272e89bf-4d81-40f4-bc68-118e2dbb7dbf-image.png

                            depending on that, you need to copy the correct qsqlmysql.dll (plus libmysql.dll):

                            If it's MSVC2019 then for example copy the files from https://github.com/thecodemonkey86/qt_mysql_driver/files/11768056/qsqlmysql.dll_Qt_SQL_driver_6.5.1_MSVC2019_64-bit.zip,

                            if MinGW then the files from https://github.com/thecodemonkey86/qt_mysql_driver/files/11768059/qsqlmysql.dll_Qt_SQL_driver_6.5.1_MinGW_11.2.0_64-bit.zip

                            to sqldrivers folder and application folder respectively

                            C 1 Reply Last reply
                            0
                            • T thecodemonkey

                              @cpplegend you can use different C++ compilers with Qt. On Windows by default these are Microsoft Visual C++ or MinGW. During Installation in Qt maintenance tool you choose if you install the Qt version for MSVC or for MinGW (or both):

                              fa1e2c03-d495-45ea-85bd-8831ed0c71cc-image.png .

                              If you are a beginner, I recommend to install only one of them to avoid confusion. In Qt Creator under "Projects" you should be able to see, which Qt version is used for the current project:

                              272e89bf-4d81-40f4-bc68-118e2dbb7dbf-image.png

                              depending on that, you need to copy the correct qsqlmysql.dll (plus libmysql.dll):

                              If it's MSVC2019 then for example copy the files from https://github.com/thecodemonkey86/qt_mysql_driver/files/11768056/qsqlmysql.dll_Qt_SQL_driver_6.5.1_MSVC2019_64-bit.zip,

                              if MinGW then the files from https://github.com/thecodemonkey86/qt_mysql_driver/files/11768059/qsqlmysql.dll_Qt_SQL_driver_6.5.1_MinGW_11.2.0_64-bit.zip

                              to sqldrivers folder and application folder respectively

                              C Offline
                              C Offline
                              cpplegend
                              wrote on last edited by
                              #60

                              @thecodemonkey sqldrivers from plugin folder in src from qtbase folder, right? and then as you Said the Application folder of the Project I am creating, is it right?

                              T 1 Reply Last reply
                              0
                              • C cpplegend

                                @thecodemonkey sqldrivers from plugin folder in src from qtbase folder, right? and then as you Said the Application folder of the Project I am creating, is it right?

                                T Offline
                                T Offline
                                thecodemonkey
                                wrote on last edited by thecodemonkey
                                #61

                                @cpplegend by application folder I mean the folder, where the compiler creates the .exe file of your project, like this:
                                bbc12c36-2a8b-4199-b343-75d54956cb65-image.png

                                the sqldrivers folder can be either a subdirectory of the application folder (like this:
                                69b60ef9-894c-4a95-9862-b89b20a7c2c1-image.png

                                ) ,or in the installation binary folder of Qt. On my system that would be for
                                MSVC: C:\Qt\6.5.1\msvc2019_64\plugins\sqldrivers (and for MinGW: C:\Qt\6.5.1\mingw_64\plugins\sqldrivers)

                                both options (application folder and installation folder) should work

                                C 2 Replies Last reply
                                0
                                • T thecodemonkey

                                  @cpplegend by application folder I mean the folder, where the compiler creates the .exe file of your project, like this:
                                  bbc12c36-2a8b-4199-b343-75d54956cb65-image.png

                                  the sqldrivers folder can be either a subdirectory of the application folder (like this:
                                  69b60ef9-894c-4a95-9862-b89b20a7c2c1-image.png

                                  ) ,or in the installation binary folder of Qt. On my system that would be for
                                  MSVC: C:\Qt\6.5.1\msvc2019_64\plugins\sqldrivers (and for MinGW: C:\Qt\6.5.1\mingw_64\plugins\sqldrivers)

                                  both options (application folder and installation folder) should work

                                  C Offline
                                  C Offline
                                  cpplegend
                                  wrote on last edited by
                                  #62

                                  @thecodemonkey ok when I return home I will try

                                  1 Reply Last reply
                                  0
                                  • T thecodemonkey

                                    @cpplegend by application folder I mean the folder, where the compiler creates the .exe file of your project, like this:
                                    bbc12c36-2a8b-4199-b343-75d54956cb65-image.png

                                    the sqldrivers folder can be either a subdirectory of the application folder (like this:
                                    69b60ef9-894c-4a95-9862-b89b20a7c2c1-image.png

                                    ) ,or in the installation binary folder of Qt. On my system that would be for
                                    MSVC: C:\Qt\6.5.1\msvc2019_64\plugins\sqldrivers (and for MinGW: C:\Qt\6.5.1\mingw_64\plugins\sqldrivers)

                                    both options (application folder and installation folder) should work

                                    C Offline
                                    C Offline
                                    cpplegend
                                    wrote on last edited by
                                    #63

                                    @thecodemonkey now when I include the QSqlDatabase header file these errors occures: :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x3b): undefined reference to __imp__ZN12QSqlDatabaseD1Ev' :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x8b): undefined reference to __imp__ZN12QSqlDatabaseD1Ev'
                                    :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0xef): undefined reference to __imp__ZN12QSqlDatabaseD1Ev' :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x14f): undefined reference to __imp__ZN12QSqlDatabaseD1Ev'
                                    :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x1a9): undefined reference to __imp__ZN12QSqlDatabaseC1Ev' :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x1ee): undefined reference to __imp__ZN12QSqlDatabaseD1Ev'
                                    :-1: error: collect2.exe: error: ld returned 1 exit status
                                    :-1: error: ninja: build stopped: subcommand failed.

                                    T JonBJ 2 Replies Last reply
                                    0
                                    • C cpplegend

                                      @thecodemonkey now when I include the QSqlDatabase header file these errors occures: :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x3b): undefined reference to __imp__ZN12QSqlDatabaseD1Ev' :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x8b): undefined reference to __imp__ZN12QSqlDatabaseD1Ev'
                                      :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0xef): undefined reference to __imp__ZN12QSqlDatabaseD1Ev' :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x14f): undefined reference to __imp__ZN12QSqlDatabaseD1Ev'
                                      :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x1a9): undefined reference to __imp__ZN12QSqlDatabaseC1Ev' :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x1ee): undefined reference to __imp__ZN12QSqlDatabaseD1Ev'
                                      :-1: error: collect2.exe: error: ld returned 1 exit status
                                      :-1: error: ninja: build stopped: subcommand failed.

                                      T Offline
                                      T Offline
                                      thecodemonkey
                                      wrote on last edited by
                                      #64

                                      @cpplegend Did you link the Sql module in CMakeLists ?

                                      C 1 Reply Last reply
                                      0
                                      • C cpplegend

                                        @thecodemonkey now when I include the QSqlDatabase header file these errors occures: :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x3b): undefined reference to __imp__ZN12QSqlDatabaseD1Ev' :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x8b): undefined reference to __imp__ZN12QSqlDatabaseD1Ev'
                                        :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0xef): undefined reference to __imp__ZN12QSqlDatabaseD1Ev' :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x14f): undefined reference to __imp__ZN12QSqlDatabaseD1Ev'
                                        :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x1a9): undefined reference to __imp__ZN12QSqlDatabaseC1Ev' :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x1ee): undefined reference to __imp__ZN12QSqlDatabaseD1Ev'
                                        :-1: error: collect2.exe: error: ld returned 1 exit status
                                        :-1: error: ninja: build stopped: subcommand failed.

                                        JonBJ Offline
                                        JonBJ Offline
                                        JonB
                                        wrote on last edited by JonB
                                        #65

                                        @cpplegend
                                        If I am not mistaken:

                                        :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x3b): undefined reference to __imp__ZN12QSqlDatabaseD1Ev'

                                        widget.cpp.obj indicates this has been compiled with MSVC (MSVC does .obj files, MinGW does .o) and __imp__ZN12QSqlDatabaseD1Ev leading __imp_ also indicates MSVC rather than MinGW. [Also if you really have a file named widget.cpp.obj somewhere per the error message that is wrong, MSVC should be generating widget.obj from widget.cpp, but that's another matter.]

                                        :-1: error: collect2.exe: error: ld returned 1 exit status

                                        collect2/ld indicates MinGW linker.

                                        (Assuming I am right) You really need to sort out whether you are using MSVC or MinGW once and for all, and make it consistent....

                                        C 1 Reply Last reply
                                        0
                                        • JonBJ JonB

                                          @cpplegend
                                          If I am not mistaken:

                                          :-1: error: CMakeFiles/untitled1.dir/widget.cpp.obj:widget.cpp:(.text+0x3b): undefined reference to __imp__ZN12QSqlDatabaseD1Ev'

                                          widget.cpp.obj indicates this has been compiled with MSVC (MSVC does .obj files, MinGW does .o) and __imp__ZN12QSqlDatabaseD1Ev leading __imp_ also indicates MSVC rather than MinGW. [Also if you really have a file named widget.cpp.obj somewhere per the error message that is wrong, MSVC should be generating widget.obj from widget.cpp, but that's another matter.]

                                          :-1: error: collect2.exe: error: ld returned 1 exit status

                                          collect2/ld indicates MinGW linker.

                                          (Assuming I am right) You really need to sort out whether you are using MSVC or MinGW once and for all, and make it consistent....

                                          C Offline
                                          C Offline
                                          cpplegend
                                          wrote on last edited by
                                          #66

                                          @JonB I am using mingw, I know that because its the only package I have installed between mingw and msvc

                                          JonBJ 1 Reply Last reply
                                          0

                                          • Login

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