QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success
-
@cpplegend
You are reposting and repeating over & over the same voluminous output. We know you have this. And I have told you that this is because you are using a MinGW/gcc compiler with arguments passed for an MSVC compiler. You also said you would change to MSVC compiler to resolve this, but you have not, so you get the same errors. Doesn't matter how many times you post the same stuff, the answer will be the same..... -
@JonB the problem is that I have the same output, but I have switched to a msvc compiler, I followed this link: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads which has been published by qt in the official documentation I said I was following, I installed the latest version but it does not work
-
@cpplegend said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:
but I have switched to a msvc compiler,
C:\PROGRA~1\CODEBL~1\MinGW\bin\windres.exe: preprocessing failed.
C:\PROGRA~1\CODEBL~1\MinGW\bin\C__~1.EXE
gcc.exe: error:
As you can clearly see you are using MinGW compiler. Hence the behaviour/output is the same as it was before you say you have "switched to a msvc compiler". Quoting "published by qt in the official documentation" does not alter the fact that you can look at the output and see for yourself.
FWIW I don't think the MinGW you are using is even the one supplied with Qt. It's in a
Program Files\CodeBlocks
directory, I would think that means it's some MinGW you have previously installed yourself.I don't know how any of this works, having not done it myself and I don't use Windows for Qt, but I assume that somewhere it asks you or you have to tell it which compiler toolchain you want it to use. Just because you download something does not automatically mean it will be used.
-
@JonB man.... I just found out I was including the incorrect path in the PATH environment variable...
Then I included this path: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\Hostx64\x64
it is the msvc compiler, I'm sure it is it works, but it still doesn't work
by the way, qt didn't say anything about the mingw compiler on the documentation so installed one by myself, the msvc compiler instead was a redirect to the microsoft page, I installed the packages of visual studio and there is even the msvc compiler
-
@cpplegend said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:
can you redirect me to a page where I can install mingw correctly
Qt Online/Offline installer installs MinGW...
-
@JonB said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:
@cpplegend
I don't use Windows, MinGW or MSVC. But I thought Qt sources come with a MinGW for Windows somewhere inside.Not the sources but the Online Installer offers the download of the MinGW version used to build Qt.
-
Start your application with the QT_DEBUG_PLUGINS environment variable set to 1 and check the output of your application.
As an educated guess, I think the MySQL dlls are not found when loading the plugin.
Go to the Run part of the project panel and add the path to these
.dll
files to the PATH environment variable there. -
@cpplegend said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:
what should I do?
As I wrote in your other thread run your application after setting QT_DEBUG_PLUGINS and check its output
-
@cpplegend said in QMYSQL driver not found Qt 6.5.1, I've tried all I found online, without success:
@SGaist I added a new environment variable named QT_DEBUG_PLUGINS setted on 1, did I had to do it this way? the rest what should I do? I didn't say it but I work on visual studio (I don't have money for the licence:( )
The license for Qt Creator ? The tool is free.
-
@cpplegend
Since you are asking these questions and getting answers in thread https://forum.qt.io/topic/110176/build-qmysql-driver-under-windows-10-a-sample-solution-for-qsqldatabase-qmysql-driver-not-loaded, it would be really productive if you stuck to either that thread or this one. Asking the same question in different threads makes responders waste time in two places and leads to confusion. Thanks. -
@cpplegend Qt Creator is still free. You likely have installed a free trial of Qt which is the one requiring now a license.
-
@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). -
@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.
-
@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
-
You see where Qt is searching for plugins so put the compiled mysql plugin to this folder and see what happens... really that hard?