"Cannot find file: mysql.pro" while building MySQL driver in Qt
-
-
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.
-
@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 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.