标题:windows下qt连接mysql
作者:weixj2003ld
日期:2006-07-17 08:35
内容:
环境配置:
qt4.1 vc++6.0 mysql5.0.1
用assist的方法也做了,具体如下:
You need to get the MySQL installation files. Run SETUP.EXE and choose "Custom Install". Install the "Libs & Include Files" Module. Build the plugin as follows (here it is assumed that MySQL is installed in C:\MYSQL):
cd %QTDIR%\src\plugins\sqldrivers\mysql
qmake -o Makefile "INCLUDEPATH+=C:\MYSQL\INCLUDE" "LIBS+=C:\MYSQL\LIB\OPT\LIBMYSQL.LIB" mysql.pro
nmake
If you are not using a Microsoft compiler, replace nmake with make in the line above.
也没有提示错误,但是用程序测试一下,出现:
driver not loaded的错误?
不知道错在哪里,或少什么步骤?谢谢!
#1 [weixj2003ld 07-17 09:37]
没人回答?
#2 [janusle 07-26 15:57]
回答是在Win还是不要用QT,那是折磨自己。因为环境极难配置。