使用Postgresql部署Qt App

时间:2015-07-03 11:00:19

标签: c++ qt postgresql dll

我想将使用Qt 5.4.0 MinGw和PostgreSQL 9.4构建的桌面应用程序部署为另一台计算机,这是我的可执行文件夹中的文件:

icudt53.dll
icuin53.dll           
icuuc53.dll           
libgcc_s_dw2-1.dll
libintl-8.dll         
libstdc++-6.dll       
libwinpthread-1.dll
Qt5Core.dll           
Qt5Gui.dll
Qt5PrintSupport.dll   
Qt5Script.dll         
Qt5Sql.dll
Qt5Widgets.dll        
Qt5Xml.dll            

问题是我收到此错误:连接到数据库时未加载驱动程序。我试图将文件夹plugins \ sqldrivers复制到我的应用程序目录但我仍然有同样的错误。

1 个答案:

答案 0 :(得分:0)

您是否复制了\plugins\sqldrivers\sqldrivers?它应该只是应用程序安装目录中的\sqldrivers