About creating qsqlmysql.dll
-
Hi, there.
I want to create qsqlmysql.dll file using qt creator.
I loaded the mysql project in source code of qt
and then I added add mysql library
Below is mysql.promysql.pro TARGET = qsqlmysql HEADERS += $$PWD/qsql_mysql_p.h SOURCES += $$PWD/qsql_mysql.cpp $$PWD/main.cpp #QMAKE_USE += mysql win32:CONFIG(release, debug|release): LIBS += -L$$PWD/'../../../../../../../../Program Files/MySQL/MySQL Connector C 6.1/lib/' -llibmysql else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/'../../../../../../../../Program Files/MySQL/MySQL Connector C 6.1/lib/' -llibmysql INCLUDEPATH += $$PWD/'../../../../../../../../Program Files/MySQL/MySQL Connector C 6.1/include/' DEPENDPATH += $$PWD/'../../../../../../../../Program Files/MySQL/MySQL Connector C 6.1/include/' OTHER_FILES += mysql.json PLUGIN_CLASS_NAME = QMYSQLDriverPlugin include(../qsqldriverbase.pri)When I built it, the qsqlmysql.dll file was not created and the following files were created.
The following is the contents of the compile output window that appears when building.
20:46:56: Running steps for project mysql... 20:46:56: Configuration unchanged, skipping qmake step. 20:46:56: Starting: "C:\Qt\Tools\QtCreator\bin\jom\jom.exe" C:\Qt\Tools\QtCreator\bin\jom\jom.exe -f Makefile.Release all C:\Qt\Tools\QtCreator\bin\jom\jom.exe -f Makefile.Debug all 20:46:57: The process "C:\Qt\Tools\QtCreator\bin\jom\jom.exe" exited normally. 20:46:57: Elapsed time: 00:00.I would be grateful if you could tell me how to create the qsqlmysql.dll file
Thank you. -
Hi, there.
I want to create qsqlmysql.dll file using qt creator.
I loaded the mysql project in source code of qt
and then I added add mysql library
Below is mysql.promysql.pro TARGET = qsqlmysql HEADERS += $$PWD/qsql_mysql_p.h SOURCES += $$PWD/qsql_mysql.cpp $$PWD/main.cpp #QMAKE_USE += mysql win32:CONFIG(release, debug|release): LIBS += -L$$PWD/'../../../../../../../../Program Files/MySQL/MySQL Connector C 6.1/lib/' -llibmysql else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/'../../../../../../../../Program Files/MySQL/MySQL Connector C 6.1/lib/' -llibmysql INCLUDEPATH += $$PWD/'../../../../../../../../Program Files/MySQL/MySQL Connector C 6.1/include/' DEPENDPATH += $$PWD/'../../../../../../../../Program Files/MySQL/MySQL Connector C 6.1/include/' OTHER_FILES += mysql.json PLUGIN_CLASS_NAME = QMYSQLDriverPlugin include(../qsqldriverbase.pri)When I built it, the qsqlmysql.dll file was not created and the following files were created.
The following is the contents of the compile output window that appears when building.
20:46:56: Running steps for project mysql... 20:46:56: Configuration unchanged, skipping qmake step. 20:46:56: Starting: "C:\Qt\Tools\QtCreator\bin\jom\jom.exe" C:\Qt\Tools\QtCreator\bin\jom\jom.exe -f Makefile.Release all C:\Qt\Tools\QtCreator\bin\jom\jom.exe -f Makefile.Debug all 20:46:57: The process "C:\Qt\Tools\QtCreator\bin\jom\jom.exe" exited normally. 20:46:57: Elapsed time: 00:00.I would be grateful if you could tell me how to create the qsqlmysql.dll file
Thank you.Do not modify any pro file but follow the official documentation.
