"Cannot find file: mysql.pro" while building MySQL driver in Qt
-
Are you sure that your MySQL library is built for MinGW ?
-
wrote on 3 Feb 2018, 22:36 last edited by
@SGaist i'm so ashamed of my non-acquaintance, but no, I'm not sure.
I have installed it with a "mysql-installer-community-5.7.21.0.msi" which I downloaded from official site.
How I can figure out that my MySQL library is for MinGW? -
You can use Dependency Walker to see if it depends on the Visual Studio runtime.
-
One other thing to check is whether your library is 32 or 64 bit.
-
wrote on 4 Feb 2018, 00:12 last edited by
@SGaist I uninstalled mySql from my pc and than I downloaded MySql community Server for windows 32bit (btw I have a 64bit windows). Than I unpacked zip archive in a folder without spaces and entered all previous commands in console. And FINALLY it all executed without errors.
Thanks to everyone who replied on my topic and thank you SGaist for all answers and patience! -
@SGaist I uninstalled mySql from my pc and than I downloaded MySql community Server for windows 32bit (btw I have a 64bit windows). Than I unpacked zip archive in a folder without spaces and entered all previous commands in console. And FINALLY it all executed without errors.
Thanks to everyone who replied on my topic and thank you SGaist for all answers and patience! -
Hi,
As an alternative, you can download the 5.7.1 source for Windows from here and check with that one.
-
@Saad02 which link are you referring to ?
-
wrote on 8 Jul 2023, 09:59 last edited by
@SGaist This one-
http://download.qt.io/official_releases/qt/5.7/5.7.1/single/qt-everywhere-opensource-src-5.7.1.zip
It's in the here quote above.Actually I have mysql folder but there is CMakeLists instead of qt project file (.pro)
I tried with cmake too. And here is the result-
https://forum.qt.io/topic/146382/how-to-create-qt-6-5-mysql-driver-with-cmake?_=1688809685576 -
@SGaist This one-
http://download.qt.io/official_releases/qt/5.7/5.7.1/single/qt-everywhere-opensource-src-5.7.1.zip
It's in the here quote above.Actually I have mysql folder but there is CMakeLists instead of qt project file (.pro)
I tried with cmake too. And here is the result-
https://forum.qt.io/topic/146382/how-to-create-qt-6-5-mysql-driver-with-cmake?_=1688809685576@Saad02 there was an issue with the archive at some points and this version of Qt is available in a different subfolder.
You seem to be following Qt 6 instructions to build for Qt 5. It won't work as Qt 6 is using cmake and Qt 5 is using qmake.