• 4820阅读
  • 2回复

windows下qt连接mysql [复制链接]

上一主题 下一主题
离线weixj2003ld
 

只看楼主 倒序阅读 楼主  发表于: 2006-07-17
环境配置:
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的错误?
不知道错在哪里,或少什么步骤?谢谢!
[ 此贴被XChinux在2006-07-17 23:48重新编辑 ]
离线weixj2003ld

只看该作者 1楼 发表于: 2006-07-17
没人回答?
离线janusle

只看该作者 2楼 发表于: 2006-07-26
回答是在Win还是不要用QT,那是折磨自己。因为环境极难配置。
快速回复
限100 字节
 
上一个 下一个