![]() Check if directory structure contains lib folder with libmysql.lib and libmysql.dll, and include folder with mysql.h header. I prefer Program Files (x86) or Program Files and MySQL folder. Preparationĭownload MySQL Connector/C version 6.1.11 here as a ZIP archive (32 or 64-bit corresponding to your Qt) and extract wherever you want. Next instructions allowed me to create driver that flawless works with 5.7.23 and 8.0.19 MySQL versions. ![]() ![]() So, that guide will be very similar to current official documentation but I want to keep it for myself (in case they change it again) and make a several my own additions. Documentation about building MySQL driver constantly changes from one Qt release to another and never worked for me but now. I want to take your attention that I don’t know how everything exactly works and only want share my experience building and maintain Qt applications that use MySQL. You can download them and extract manually or via installer here.Įven if possibility exists to build driver against libraries and headers that MySQL Server installation provides that is incorrect in context of Qt and will lead to not working driver across different MySQL Server versions. How to build universal MySQL driver for Qt 5.x.x on Windows using MSVCĪs a prerequisite you must have Qt sources of version and architecture you want to build driver against.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |