错误输出:
qmake -o Makefile "INCLUDEPATH+=C:\MySQL\include" "LIB+=C:\MySQL\lib\opt\libmysql.a" mysql.pro
运行后提示:WARNING: (internal):1: Unescaped backslashes are deprecated.WARNING:
(internal):1: Unescaped backslashes are deprecated.WARNING:
(internal):1: Unescaped backslashes are deprecated.
用记事本打开D:\Qt\2010.05\qt\src\plugins\sqldrivers\mysql\ mysql.pro文件,在第二行加入:INCLUDEPATH += "C:\Program Files\MySQL\MySQL Server 5.1\include"LIBS += "C:\Program Files\MySQL\MySQL Server 5.1\lib\opt\libmysql.lib"并保存
qmake -o Makefile mysql.pro 不是在dos的