QT und MySQL

Alles rund um die Programmierung mit Qt
Antworten
alex979k
Beiträge: 12
Registriert: 24. April 2013 14:37

QT und MySQL

Beitrag von alex979k »

Hallo Leute,

ich möchte mit QT mit einer MySQL Datenbank zusammen arbeiten. Leider schaff ich es nicht den Treiber richtig zu installieren bzw. zum laufen zu bringen. Ich hab mir schon etliche Erklärungen und Posts durchgelesen diese befolgt, doch es klappt nicht.
Erstmal zu meinen Informationen:
Windows Xp 32-bit
QT 4.8.4 Libaries
QT Creator 2.6
Microsoft Visual Studio 2010
MySQL Server(läuft sicher!)

So wie ich es verstanden habe soll ich:
1. Den MySQL C Treiber installieren.
2. Die dort enthaltenen Dateien(z.B. libmysql.dll) kompilieren
3. Die kompilierten Dateien, sowie die libmysql.dll in mein Debug Verzeichniss kopieren
4. Die Pro Datei anpassen (core sql...)

Da das Kompilieren bei mir nicht klappt habe ich mir die kompilierten Dateien von jemand anderem gedownloaded und benutzt.
Jetzt sagt er mir als Fehlermeldung aber, dass irgendwelche Befehle in den Kompilierten Dateien, sowie die DLL nicht funktionieren.

Kann mir jemand 1) sagen wie de Schritte zur MySQL Installierung/Einbindung wirklich sind und 2) falls er selber kompilierte Dateien hat diese zur Verfügung stellen?
Hat jemand irgendeine Erfahrung mit diesem Thema?
Wäre euch echt dankbar wenn ihr mir helfen könntet.
Danke im voraus
alex979k
Christian81
Beiträge: 7319
Registriert: 26. August 2004 14:11
Wohnort: Bremen
Kontaktdaten:

Re: QT und MySQL

Beitrag von Christian81 »

Was klappt nicht wenn man es nach der offiziellen Anleitung macht: http://qt-project.org/doc/qt-4.8/sql-driver.html#qmysql
MfG Christian

'Funktioniert nicht' ist keine Fehlerbeschreibung
alex979k
Beiträge: 12
Registriert: 24. April 2013 14:37

Re: QT und MySQL

Beitrag von alex979k »

Ich habe folgendes gemacht

Code: Alles auswählen

cd C:\QT\4.8.4\src\plugins\sqldrivers\mysql
 qmake "INCLUDEPATH+=C:\Program Files\MySQL\MySQL Connector C 6.0.2\include" "LIBS+=C:\Program Files\MySQL\MySQL Connector C 6.0.2\lib\opt\libmysql.lib" mysql.pro
make
Note: make hab ich gewählt da nmake bei mir nicht funktioniert trotz dass ich Visual Studio 2010 verwende. Die Umgebungsvariable PATH hat nämlich schon den Pfad zum bin verzeichniss von qt.
Jetzt kommt folgende Fehlermeldung:

Code: Alles auswählen

C:\Qt\4.8.4\src\plugins\sqldrivers\mysql>make
make -f Makefile.Debug
make[1]: Entering directory `C:/Qt/4.8.4/src/plugins/sqldrivers/mysql'
Makefile.Debug:62: *** missing separator.  Schluss.
make[1]: Leaving directory `C:/Qt/4.8.4/src/plugins/sqldrivers/mysql'
make: *** [debug] Fehler 2
Scheinbar kann ich das irgendwie nicht kompilieren.
Nur um Missverständnisse zu vermeiden die Pfade sind alle richtig und ich hab qmake.... und mysql.pro in eine zeile geschrieben dann enter gedrückt und dann make eingegeben und gedrückt.

Danke im Voraus
alex979k
Christian81
Beiträge: 7319
Registriert: 26. August 2004 14:11
Wohnort: Bremen
Kontaktdaten:

Re: QT und MySQL

Beitrag von Christian81 »

Erstmal - keine Leerzeichen in den PFaden zu den MySQL-Headern und Libs. Verschieb es in ein Verzeichnis ohne Leerzeichen.
Und zweitens - MS Visual Studio benutzt 'nmake' und nicht make. make kann kein MSVC-Makefiles lesen und umgekehrt.
MfG Christian

'Funktioniert nicht' ist keine Fehlerbeschreibung
alex979k
Beiträge: 12
Registriert: 24. April 2013 14:37

Re: QT und MySQL

Beitrag von alex979k »

Danke erstmal für die Antwort.
Aber ich kann doch nur qmake oder nmake verwenden.
Die Umgebungs Variable qmake verweißt auf die qmake.exe(mit Pfad natürlich) und die nmake auf die nmake.exe.
Wenn ich jetzt der Variable PATH das Verzeichnis von qmake.exe (....qtdir/bin) zuweise funktioniert der Befehl qmake.
Weise ich der Variable PATH das Verzeichnis von nmake.exe (in visual studio) zu funktioniert dieser Befehl.
Wie erreiche ich es das beide Variablen gleichzeitig funktionieren.
Wie hast du das mit den Umgebungsvariablen gelöst?
Danke im voraus!
alex979k
Christian81
Beiträge: 7319
Registriert: 26. August 2004 14:11
Wohnort: Bremen
Kontaktdaten:

Re: QT und MySQL

Beitrag von Christian81 »

Erstens muss man das, wie beschrieben, aus dem Visual Studio Command Prompt aus ausrufen. Und darin dann den PATH so anzupassen dass auch Qt mit im PATH ist, findet man auch bei google...

Code: Alles auswählen

set PATH=%PATH%;C:\wasauchimmer
MfG Christian

'Funktioniert nicht' ist keine Fehlerbeschreibung
alex979k
Beiträge: 12
Registriert: 24. April 2013 14:37

Re: QT und MySQL

Beitrag von alex979k »

Gut ich habe jetzt alles befolgt was du mir geraten hast(z.B. nmake und qmake klappen) und habe trotzdem Errors erhalten:

Das ganze lief im Microsoft Visual Prompt

Code: Alles auswählen

C:\Qt\4.8.4\src\plugins\sqldrivers\mysql>qmake "INCLUDEPATH+=C:\Program Files\My
SQL\MySQL_CONNECTOR\include" "LIBS+=C:\Program Files\MySQL\MySQL_CONNECTOR\lib\o
pt\libmysql.lib"
WARNING: (internal):1: Unescaped backslashes are deprecated.
WARNING: (internal):1: Unescaped backslashes are deprecated.
WARNING: (internal):1: Unescaped backslashes are deprecated.

C:\Qt\4.8.4\src\plugins\sqldrivers\mysql>mysql.pro

C:\Qt\4.8.4\src\plugins\sqldrivers\mysql>nmake

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" -
f Makefile.Debug

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        C:\Qt\4.8.4\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO
_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_CO
RE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SS
E2 -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtS
ql" -I"..\..\..\..\include" -I"c:\Program" -I"Files\MySQL\MySQL_CONNECTOR\includ
e" -I"..\..\..\..\include\ActiveQt" -I"debug" -I"..\..\..\..\mkspecs\default" -D
_MSC_VER=1600 -DWIN32 ..\..\..\sql\drivers\mysql\qsql_mysql.cpp -o debug\qsql_my
sql.moc
        C:\Qt\4.8.4\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO
_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_CO
RE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SS
E2 -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtS
ql" -I"..\..\..\..\include" -I"c:\Program" -I"Files\MySQL\MySQL_CONNECTOR\includ
e" -I"..\..\..\..\include\ActiveQt" -I"debug" -I"..\..\..\..\mkspecs\default" -D
_MSC_VER=1600 -DWIN32 ..\..\..\sql\drivers\mysql\qsql_mysql.h -o debug\moc_qsql_
mysql.cpp
        rc -D_DEBUG -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASC
II -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DQT_
HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THRE
AD_SUPPORT -fo debug\qsqlmysqld_resource.res qsqlmysqld_resource.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.1.7600.16385
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189
 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FRO
M_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_
3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..
\..\..\include\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include" -I"
c:\Program" -I"Files\MySQL\MySQL_CONNECTOR\include" -I"..\..\..\..\include\Activ
eQt" -I"debug" -I"..\..\..\..\mkspecs\default" -Fodebug\ @C:\Users\alex\AppData\
Local\Temp\nmFA93.tmp
main.cpp
c:\qt\4.8.4\src\plugins\sqldrivers\mysql\../../../sql/drivers/mysql/qsql_mysql.h
(52) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or d
irectory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

C:\Qt\4.8.4\src\plugins\sqldrivers\mysql>
Ich bin verzweifelt.
Was könnte das Problem sein?
Danke im voraus
alex979k
Markus
Beiträge: 105
Registriert: 31. Januar 2005 16:21

Re: QT und MySQL

Beitrag von Markus »

alex979k hat geschrieben:

Code: Alles auswählen

C:\Qt\4.8.4\src\plugins\sqldrivers\mysql>qmake "INCLUDEPATH+=C:\Program Files\My
SQL\MySQL_CONNECTOR\include" "LIBS+=C:\Program Files\MySQL\MySQL_CONNECTOR\lib\o
pt\libmysql.lib"
WARNING: (internal):1: Unescaped backslashes are deprecated.
WARNING: (internal):1: Unescaped backslashes are deprecated.
WARNING: (internal):1: Unescaped backslashes are deprecated.
Du verwendest immer noch Backslashes (\) anstatt Slashes (/). Und gib' das mysql.pro-File direkt am qmake-Befehl an.

Code: Alles auswählen

qmake "INCLUDEPATH+=C:/Program Files/MySQL/MySQL_CONNECTOR/include" "LIBS+=C:/Program Files/MySQL/MySQL_CONNECTOR/lib/opt/libmysql.lib" mysql.pro
Und um die Leerzeichen in Deinem Pfad zu umgehen, probier' mal den Befehl mit den einfachen Anführungsstricken. Wenn nicht, installiere Deine MySQL-Sachen in einem Verzeichnis ohne Leerzeichen wie Christian81 geschrieben hat.

Code: Alles auswählen

qmake "INCLUDEPATH+='C:/Program Files/MySQL/MySQL_CONNECTOR/include'" "LIBS+='C:/Program Files/MySQL/MySQL_CONNECTOR/lib/opt/libmysql.lib'" mysql.pro
Christian81
Beiträge: 7319
Registriert: 26. August 2004 14:11
Wohnort: Bremen
Kontaktdaten:

Re: QT und MySQL

Beitrag von Christian81 »

Leerzeichen in Pfad und QMake/Make allgemein sind nie eine gute Idee also nimm sie endlich raus!
MfG Christian

'Funktioniert nicht' ist keine Fehlerbeschreibung
alex979k
Beiträge: 12
Registriert: 24. April 2013 14:37

Re: QT und MySQL

Beitrag von alex979k »

Ich verstehe nicht welches Leerzeichen im Pfad du meinst. Und in der Original Beschreibung muss man doch qmake am anfang schreieben/verwenden.
Christian81
Beiträge: 7319
Registriert: 26. August 2004 14:11
Wohnort: Bremen
Kontaktdaten:

Re: QT und MySQL

Beitrag von Christian81 »

C:\Program Files
Da ist z.B. ein Leerzeichen im Pfad ... :roll:
MfG Christian

'Funktioniert nicht' ist keine Fehlerbeschreibung
alex979k
Beiträge: 12
Registriert: 24. April 2013 14:37

Re: QT und MySQL

Beitrag von alex979k »

So hab jetzt MySQL ins Main Directory verschoben und eure Anweisungen befolgt und erhalte immer noch den gleichen Fehler!

Hier ist was ich eingegeben habe:

Code: Alles auswählen

C:\Qt\4.8.4\src\plugins\sqldrivers\mysql>qmake "INCLUDEPATH+=C:/MySQL/MySQL_CON
ECTOR/include" "LIBS+=C:/MySQL/MySQL_CONNECTOR/lib/opt/libmysql.lib" mysql.pro

C:\Qt\4.8.4\src\plugins\sqldrivers\mysql>nmake
Und hier der Fehler:

Code: Alles auswählen

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" -
f Makefile.Debug

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189
 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FRO
M_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_
3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..
\..\..\include\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include" -I"
c:\MySQL\MySQL_CONNECTOR\include" -I"..\..\..\..\include\ActiveQt" -I"debug" -I"
..\..\..\..\mkspecs\default" -Fodebug\ @C:\Users\alex\AppData\Local\Temp\nm8FDF.
tmp
main.cpp
        cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189
 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FRO
M_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_
3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..
\..\..\include\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include" -I"
c:\MySQL\MySQL_CONNECTOR\include" -I"..\..\..\..\include\ActiveQt" -I"debug" -I"
..\..\..\..\mkspecs\default" -Fodebug\ @C:\Users\alex\AppData\Local\Temp\nmCDAB.
tmp
qsql_mysql.cpp
        cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189
 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FRO
M_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_
3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..
\..\..\include\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include" -I"
c:\MySQL\MySQL_CONNECTOR\include" -I"..\..\..\..\include\ActiveQt" -I"debug" -I"
..\..\..\..\mkspecs\default" -Fodebug\ @C:\Users\alex\AppData\Local\Temp\nmDD17.
tmp
moc_qsql_mysql.cpp
        link /LIBPATH:"c:\Qt\4.8.4\lib" /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /D
LL /MANIFEST /MANIFESTFILE:"debug\qsqlmysqld.intermediate.manifest" /VERSION:4.8
4 /OUT:debug\qsqlmysqld4.dll @C:\Users\alex\AppData\Local\Temp\nmE2C3.tmp
   Creating library debug\qsqlmysqld4.lib and object debug\qsqlmysqld4.exp
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_fetch_field@4
referenced in function "public: bool __thiscall QMYSQLResultPrivate::bindInValue
s(void)" (?bindInValues@QMYSQLResultPrivate@@QAE_NXZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_num_fields@4 r
eferenced in function "public: bool __thiscall QMYSQLResultPrivate::bindInValues
(void)" (?bindInValues@QMYSQLResultPrivate@@QAE_NXZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_result_me
tadata@4 referenced in function "public: bool __thiscall QMYSQLResultPrivate::bi
ndInValues(void)" (?bindInValues@QMYSQLResultPrivate@@QAE_NXZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_close@4 r
eferenced in function "protected: void __thiscall QMYSQLResult::cleanup(void)" (
?cleanup@QMYSQLResult@@IAEXXZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_store_result@4
 referenced in function "protected: void __thiscall QMYSQLResult::cleanup(void)"
 (?cleanup@QMYSQLResult@@IAEXXZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_next_result@4
referenced in function "protected: void __thiscall QMYSQLResult::cleanup(void)"
(?cleanup@QMYSQLResult@@IAEXXZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_free_result@4
referenced in function "protected: void __thiscall QMYSQLResult::cleanup(void)"
(?cleanup@QMYSQLResult@@IAEXXZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_fetch_row@4 re
ferenced in function "protected: virtual bool __thiscall QMYSQLResult::fetch(int
)" (?fetch@QMYSQLResult@@MAE_NH@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_data_seek@12 r
eferenced in function "protected: virtual bool __thiscall QMYSQLResult::fetch(in
t)" (?fetch@QMYSQLResult@@MAE_NH@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_fetch@4 r
eferenced in function "protected: virtual bool __thiscall QMYSQLResult::fetch(in
t)" (?fetch@QMYSQLResult@@MAE_NH@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_data_seek
@12 referenced in function "protected: virtual bool __thiscall QMYSQLResult::fet
ch(int)" (?fetch@QMYSQLResult@@MAE_NH@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_errno@4 r
eferenced in function "class QSqlError __cdecl qMakeStmtError(class QString cons
t &,enum QSqlError::ErrorType,struct st_mysql_stmt *)" (?qMakeStmtError@@YA?AVQS
qlError@@ABVQString@@W4ErrorType@1@PAUst_mysql_stmt@@@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_error@4 r
eferenced in function "class QSqlError __cdecl qMakeStmtError(class QString cons
t &,enum QSqlError::ErrorType,struct st_mysql_stmt *)" (?qMakeStmtError@@YA?AVQS
qlError@@ABVQString@@W4ErrorType@1@PAUst_mysql_stmt@@@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_num_rows@4 ref
erenced in function "protected: virtual bool __thiscall QMYSQLResult::fetchLast(
void)" (?fetchLast@QMYSQLResult@@MAE_NXZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_num_rows@
4 referenced in function "protected: virtual bool __thiscall QMYSQLResult::fetch
Last(void)" (?fetchLast@QMYSQLResult@@MAE_NXZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_fetch_lengths@
4 referenced in function "protected: virtual class QVariant __thiscall QMYSQLRes
ult::data(int)" (?data@QMYSQLResult@@MAE?AVQVariant@@H@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_fetch_field_di
rect@8 referenced in function "protected: virtual bool __thiscall QMYSQLResult::
reset(class QString const &)" (?reset@QMYSQLResult@@MAE_NABVQString@@@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_affected_rows@
4 referenced in function "protected: virtual bool __thiscall QMYSQLResult::reset
(class QString const &)" (?reset@QMYSQLResult@@MAE_NABVQString@@@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_field_count@4
referenced in function "protected: virtual bool __thiscall QMYSQLResult::reset(c
lass QString const &)" (?reset@QMYSQLResult@@MAE_NABVQString@@@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_real_query@12
referenced in function "protected: virtual bool __thiscall QMYSQLResult::reset(c
lass QString const &)" (?reset@QMYSQLResult@@MAE_NABVQString@@@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_errno@4 refere
nced in function "class QSqlError __cdecl qMakeError(class QString const &,enum
QSqlError::ErrorType,class QMYSQLDriverPrivate const *)" (?qMakeError@@YA?AVQSql
Error@@ABVQString@@W4ErrorType@1@PBVQMYSQLDriverPrivate@@@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_error@4 refere
nced in function "class QSqlError __cdecl qMakeError(class QString const &,enum
QSqlError::ErrorType,class QMYSQLDriverPrivate const *)" (?qMakeError@@YA?AVQSql
Error@@ABVQString@@W4ErrorType@1@PBVQMYSQLDriverPrivate@@@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_insert_id@4 re
ferenced in function "protected: virtual class QVariant __thiscall QMYSQLResult:
:lastInsertId(void)const " (?lastInsertId@QMYSQLResult@@MBE?AVQVariant@@XZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_insert_id
@4 referenced in function "protected: virtual class QVariant __thiscall QMYSQLRe
sult::lastInsertId(void)const " (?lastInsertId@QMYSQLResult@@MBE?AVQVariant@@XZ)

qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_field_seek@8 r
eferenced in function "protected: virtual class QSqlRecord __thiscall QMYSQLResu
lt::record(void)const " (?record@QMYSQLResult@@MBE?AVQSqlRecord@@XZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_param_cou
nt@4 referenced in function "protected: virtual bool __thiscall QMYSQLResult::pr
epare(class QString const &)" (?prepare@QMYSQLResult@@MAE_NABVQString@@@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_prepare@1
2 referenced in function "protected: virtual bool __thiscall QMYSQLResult::prepa
re(class QString const &)" (?prepare@QMYSQLResult@@MAE_NABVQString@@@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_init@4 re
ferenced in function "protected: virtual bool __thiscall QMYSQLResult::prepare(c
lass QString const &)" (?prepare@QMYSQLResult@@MAE_NABVQString@@@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_store_res
ult@4 referenced in function "protected: virtual bool __thiscall QMYSQLResult::e
xec(void)" (?exec@QMYSQLResult@@MAE_NXZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_attr_set@
12 referenced in function "protected: virtual bool __thiscall QMYSQLResult::exec
(void)" (?exec@QMYSQLResult@@MAE_NXZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_bind_resu
lt@8 referenced in function "protected: virtual bool __thiscall QMYSQLResult::ex
ec(void)" (?exec@QMYSQLResult@@MAE_NXZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_affected_
rows@4 referenced in function "protected: virtual bool __thiscall QMYSQLResult::
exec(void)" (?exec@QMYSQLResult@@MAE_NXZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_execute@4
 referenced in function "protected: virtual bool __thiscall QMYSQLResult::exec(v
oid)" (?exec@QMYSQLResult@@MAE_NXZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_bind_para
m@8 referenced in function "protected: virtual bool __thiscall QMYSQLResult::exe
c(void)" (?exec@QMYSQLResult@@MAE_NXZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_reset@4 r
eferenced in function "protected: virtual bool __thiscall QMYSQLResult::exec(voi
d)" (?exec@QMYSQLResult@@MAE_NXZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_character_set_
name@4 referenced in function "class QTextCodec * __cdecl codec(struct st_mysql
*)" (?codec@@YAPAVQTextCodec@@PAUst_mysql@@@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_thread_init@0
referenced in function "public: virtual bool __thiscall QMYSQLDriver::open(class
 QString const &,class QString const &,class QString const &,class QString const
 &,int,class QString const &)" (?open@QMYSQLDriver@@UAE_NABVQString@@000H0@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_get_server_ver
sion@4 referenced in function "public: virtual bool __thiscall QMYSQLDriver::ope
n(class QString const &,class QString const &,class QString const &,class QStrin
g const &,int,class QString const &)" (?open@QMYSQLDriver@@UAE_NABVQString@@000H
0@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_get_client_ver
sion@0 referenced in function "public: virtual bool __thiscall QMYSQLDriver::ope
n(class QString const &,class QString const &,class QString const &,class QStrin
g const &,int,class QString const &)" (?open@QMYSQLDriver@@UAE_NABVQString@@000H
0@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_set_character_
set@8 referenced in function "public: virtual bool __thiscall QMYSQLDriver::open
(class QString const &,class QString const &,class QString const &,class QString
 const &,int,class QString const &)" (?open@QMYSQLDriver@@UAE_NABVQString@@000H0
@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_options@12 ref
erenced in function "public: virtual bool __thiscall QMYSQLDriver::open(class QS
tring const &,class QString const &,class QString const &,class QString const &,
int,class QString const &)" (?open@QMYSQLDriver@@UAE_NABVQString@@000H0@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_close@4 refere
nced in function "public: virtual bool __thiscall QMYSQLDriver::open(class QStri
ng const &,class QString const &,class QString const &,class QString const &,int
,class QString const &)" (?open@QMYSQLDriver@@UAE_NABVQString@@000H0@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_select_db@8 re
ferenced in function "public: virtual bool __thiscall QMYSQLDriver::open(class Q
String const &,class QString const &,class QString const &,class QString const &
,int,class QString const &)" (?open@QMYSQLDriver@@UAE_NABVQString@@000H0@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_real_connect@3
2 referenced in function "public: virtual bool __thiscall QMYSQLDriver::open(cla
ss QString const &,class QString const &,class QString const &,class QString con
st &,int,class QString const &)" (?open@QMYSQLDriver@@UAE_NABVQString@@000H0@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_init@4 referen
ced in function "public: virtual bool __thiscall QMYSQLDriver::open(class QStrin
g const &,class QString const &,class QString const &,class QString const &,int,
class QString const &)" (?open@QMYSQLDriver@@UAE_NABVQString@@000H0@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_thread_end@0 r
eferenced in function "public: virtual void __thiscall QMYSQLDriver::close(void)
" (?close@QMYSQLDriver@@UAEXXZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_list_tables@8
referenced in function "public: virtual class QStringList __thiscall QMYSQLDrive
r::tables(enum QSql::TableType)const " (?tables@QMYSQLDriver@@UBE?AVQStringList@
@W4TableType@QSql@@@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_list_fields@12
 referenced in function "public: virtual class QSqlRecord __thiscall QMYSQLDrive
r::record(class QString const &)const " (?record@QMYSQLDriver@@UBE?AVQSqlRecord@
@ABVQString@@@Z)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_query@8 refere
nced in function "protected: virtual bool __thiscall QMYSQLDriver::beginTransact
ion(void)" (?beginTransaction@QMYSQLDriver@@MAE_NXZ)
qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_real_escape_st
ring@16 referenced in function "public: virtual class QString __thiscall QMYSQLD
river::formatValue(class QSqlField const &,bool)const " (?formatValue@QMYSQLDriv
er@@UBE?AVQString@@ABVQSqlField@@_N@Z)
debug\qsqlmysqld4.dll : fatal error LNK1120: 50 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\link.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

C:\Qt\4.8.4\src\plugins\sqldrivers\mysql>
Ich versteh diesen Fehler nicht.
Antworten