A
A
AlexSer2019-10-23 15:55:29
Qt
AlexSer, 2019-10-23 15:55:29

How to build MySQL driver on QT?

Tell me how to build a driver for mysql for QT, I seem to do everything according to the instructions, but all the time I get an error
. I enter the command in the folder with the Mysql plugin

c:\Qt\5.12.5\Src\qtbase\src\plugins\sqldrivers\mysql>qmake -- MYSQL_INCDIR=C:\mysql_5.6\include "MYSQL_LIBDIR=C:\mysql_5.6\lib\libmysql.lib" mysql.pro

Cannot read C:/Qt/5.12.5/Src/qtbase/src/plugins/sqldrivers/qtsqldrivers-config.pri: No such file or directory Project ERROR: Library 'mysql' is not defined.

How to fix?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question