安装postgreSQL,安装目录下的lib和bin添加到path

打开Qt安装目录,找到src\plugins\sqldrivers\psql
编辑psql.pro,添加
INCLUDEPATH += "E:/PostgreSQL/9.2/include"
LIBS += "E:/PostgreSQL/9.2/lib/libpq.lib"

编译完成后,放入plugins\sqldrivers目录

posted on 2014-04-26 14:27  淡菊  阅读(2604)  评论(1编辑  收藏  举报