How to build mysql driver from qt-creator
-
Re: How to build qt 5.13.1 mysql 8.0 driver?
Hi there,
I read some posts and the qt document on how to build MySql driver from the source code.
I tried to follow the documents command and build it with qmake but I faced a problem that the environment is not setup.
So, since the sqldrivers is a qt project how I can build it with qt-creator and where I must add MySql INC & LIB variables. -
There is no chance to build it with QtCreator since you have to call qmake with some parameters. Open the Qt command prompt and build it from there as written in the documentation.
-
@Christian-Ehrlicher said in How to build mysql driver from qt-creator:
There is no chance to build it with QtCreator since you have to call qmake with some parameters.
Really? What's the problem with parameters and
qmake
?@M-H-H said in How to build mysql driver from qt-creator:
So, since the sqldrivers is a qt project how I can build it with qt-creator and where I must add MySql INC & LIB variables.
The fact that it's a Qt (sub)project doesn't mean that much in this case. Just stick to the beaten path - building the driver from the command prompt, just as @Christian-Ehrlicher said.
-
@kshegunov said in How to build mysql driver from qt-creator:
Really? What's the problem with parameters and qmake?
Can you for sure add those parameters to the qmake run before qmake is run for the first time, check the output and all this stuff? It's maybe doable but for sure leads to much more confusion than doing this on the command line where you see the output of the commands you're running by yourself.
A much better idea: throw away mysql and use postgresql - this driver is shipped with the binary Qt version.
-
@Christian-Ehrlicher said in How to build mysql driver from qt-creator:
Can you for sure add those parameters to the qmake run before qmake is run for the first time, check the output and all this stuff?
Yeah, I'm pretty sure.
It's maybe doable but for sure leads to much more confusion than doing this on the command line where you see the output of the commands you're running by yourself.
No argument there. What I wrote - it'd be highly painful and useless experimental run. :)
A much better idea: throw away mysql and use postgresql - this driver is shipped with the binary Qt version.
That'd been better, true, if only postgres was any good.
-
@kshegunov said in How to build mysql driver from qt-creator:
if only postgres was any good.
I'm using postgres since 10 years without any problems (with an without Qt) - nothing missing.
-
@Christian-Ehrlicher said in How to build mysql driver from qt-creator:
I'm using postgres since 10 years without any problems (with an without Qt)
Yes, I've been using it for some time as well, that doesn't mean it's good, though.
nothing missing.
Move me a column in a table, please.
-
@kshegunov said in How to build mysql driver from qt-creator:
Move me a column in a table, please.
Why should I need this? The order of columns in a table is irrelevant.
-
Okay, whatever, I don't feel like arguing and we are going off topic here.