Skip to content

Commit 05c84dc

Browse files
author
stoeckerb
committed
init Qt 5.13.2
1 parent 7305a04 commit 05c84dc

File tree

6 files changed

+23
-474
lines changed

6 files changed

+23
-474
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/mysql/mysql.pro.user
2+
/sqldrivers.pro.user

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
Since the Qt Company currently doesn't give a crap on providing qsqlmysql.dll in binary form, you have to build it on your own. Here is a build for Qt 5.12.3 / 5.13.1 / 5.14.0 for MSVC 2017 64-Bit and MinGW-w64 7.3. Download from https://github.com/thecodemonkey86/qt_mysql_driver/releases
1+
Since the Qt Company currently doesn't give a crap on providing qsqlmysql.dll in binary form, you have to build it on your own. Here is a build for various Qt versions. Download precompiled qsqlmysql.dll from https://github.com/thecodemonkey86/qt_mysql_driver/releases
22

33
Deployment
44

55
1) in application subdirectory "sqldrivers" qsqlmysql.dll (Release) / qsqlmysqld.dll (Debug)
66
2) the MySQL library itself libmysql.dll
7+
8+
9+
Building hints
10+
- See branches by Qt version for source code
11+
- Make sure you link against the official MySQL C Connector v6.1 (not C++): https://downloads.mysql.com/archives/c-c/?version=6.1.2&os=src
12+
- The .pro file from this repository by default expects the contents of the zip file from mysql.com to be in the same base directory as the sql driver project
13+
e.g. D:\qt\src\sqldrivers is the sql driver project dir and D:\qt\src\mysql-connector-c-6.1.2-win32 is the MySQL connector library directory, so that there are D:\qt\src\mysql-connector-c-6.1.2-win32\include and \lib subdirs

mysql/mysql.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"Keys": [ "QMYSQL3", "QMYSQL" ]
2+
"Keys": [ "QMYSQL3", "QMYSQL", "QMARIADB" ]
33
}

mysql/mysql.pro

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ include($$PWD/../qsqldriverbase.pri)
1212

1313

1414
contains(QT_ARCH, i386) {
15-
INCLUDEPATH += $$PWD/../../mysql-connector-c-6.1.2-win32\include
16-
LIBS += -L$$PWD/../../mysql-connector-c-6.1.2-win32\lib -llibmysql
15+
INCLUDEPATH += $$PWD/../../mysql-connector-c-6.1.11-win32\include
16+
LIBS += -L$$PWD/../../mysql-connector-c-6.1.11-win32\lib -llibmysql
1717
} else {
18-
INCLUDEPATH += $$PWD/../../mysql-connector-c-6.1.2-winx64\include
19-
LIBS += -L$$PWD/../../mysql-connector-c-6.1.2-winx64\lib -llibmysql
18+
INCLUDEPATH += $$PWD/../../mysql-connector-c-6.1.11-winx64\include
19+
LIBS += -L$$PWD/../../mysql-connector-c-6.1.11-winx64\lib -llibmysql
2020
}
2121

22-
23-

0 commit comments

Comments
 (0)