Enter the first command cd% QTDIR% \ src \ plugins \ sqldrivers \ mysql
Enter the second command : qmake "INCLUDEPATH + = C: \ MySQL \ include" "LIBS + = C: \ MySQL \ lib \ opt \ libmysql.lib"
mysql.pro
last input : mingw32-make, a few seconds after you press Enter after compilation
then the error. Beginners to do is follow the tutorial . This place is wrong. Installation is also installed in the C: \ MySQL does not change
------ Solution ------------------------------------ --------
qmake INCLUDEPATH + = "C: \ MySQL \ include" LIBS + = "C: \ MySQL \ lib \ opt \ libmysql.lib"
mysql.pro
------ Solution -------------------------------- ------------
MySQL driver plugin
go to this link to download the MySQL driver plug-in , you can skip the compilation step , download the plug directly into a specified directory tutorial
Note that the link Resources : There are four direct skip the compilation stage , the four drive plug- in tutorial said position, that folder sqldrivers file. Really easy to drive plug-ins do not compile a lot ! !
没有评论:
发表评论