为qt-Windows构建QMYSQL插件时出错

时间:2012-07-24 15:08:17

标签: mysql windows qt window

我正在为qt构建Qmysql插件,当我运行qmake命令时出现错误。当我运行此命令qmake -o Makefile "INCLUDEPATH+=C:/Progra~1/MySQL/MySQLS~1.0/include" "LIBS+=C:/Progra~1/MySQL/MySQLS~1.0/lib/opt/liblibmysql.a" mysql.pro时,我收到错误Cannot find file: mysql.pro。请帮忙。

1 个答案:

答案 0 :(得分:0)

检查源树,确保dir mysql.pro中有%QTDIR%/src/plugins/sqldrivers/mysql

cd到%QTDIR%/src/plugins/sqldrivers/mysql,然后重试。