How to Build the MySQL plugin for Qt Using MySQL Server 8.0?
-
-
I'm new to QT. I tried to Installing QMYSQL driver by using MySQL Server8.0. But I'm unable to build the MySQL plugin for Qt. I tried many ways and that thing does not help to me. I followed this link. And results like this
How can I solve this?
-
@Malibob In one of the MySQL threads in this forum I saw exactly this compiler error, so please search.
-
@Malibob Your MYSQL_LIBDIR is wrong: it should be lib64 not ib64. Also add a space between MYSQL_INCDIR and MYSQL_LIBDIR.
-
@Malibob Best would be to reinstall the Qt source code because you did in-source build. After you have clean source code tree do out-of-source build:
- Create a build directory outside of the Qt source code
- Go to this directory and call qmake
-
@Malibob Best would be to reinstall the Qt source code because you did in-source build. After you have clean source code tree do out-of-source build:
- Create a build directory outside of the Qt source code
- Go to this directory and call qmake
-
You need to use c connector. Substitute Sqldriver folder from Qt download according to your version , and follow the indication from the page https://www.google.com/url?sa=t&source=web&rct=j&url=https://doc.qt.io/qt-5/sql-driver.html&ved=2ahUKEwiKhrSL1s_pAhVDb60KHStrCXsQFjAAegQIAhAC&usg=AOvVaw27LJuH0fzvO_OMjwMPCwYW. With this steps I build the drive.