G
G
Gh0sTG02019-10-03 22:28:06
MySQL
Gh0sTG0, 2019-10-03 22:28:06

Why doesn't the qt mysql driver compile?

I'm trying to compile mysql driver for qt.
Versions qt 5.13.1, mysql 8.0.
I installed everything (everything and everywhere goes x64, and mingw, and mysql), I compile according to the instructions (I read a bunch of sites from Google)
Through the qt console, from the qtbase\src\plugins\sqldrivers folder

qmake -- MYSQL_INCDIR=C:/MySQL/ConnectorC++8.0/include MYSQL_LIBDIR=C:/MYSQL/ConnectorC++8.0/lib64

or
qmake -- MYSQL_INCDIR=C:/MySQL/mysqlserver8.0/include MYSQL_LIBDIR=C:/MYSQL/mysqlserver8.0/lib

Paths without spaces, I set it that way. There is no difference when doing both options.
In response, qmake gives me
...
MySql......no

And that's it.
Where and what could I forget to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gh0sTG0, 2019-10-03
@Gh0sTG0

I found the answer myself...
It turns out that this... hmm... does not clean up the traces behind itself...
That is, in order to try to compile something with other folders, you need to MANUALLY, Carl, demolish the config.tests folder and clean out the config files. summary, config.opt, config.log, config.cache. Then he SUDDENLY sees that I'm trying to do something new and sees mysql ...
My mistake was that I started compiling from the MySQL / ConnectorC ++ 8.0 folder ... After that, he did not see my attempts to check the mysql / MYSQLSERVER8 folder .0/include and libs
Everything compiled and connected...
Answer to the question: forget about the connector. Delete the folder, clean up the files, compile from MYSQLSERVER8.0 and you will be happy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question