简体   繁体   English

使用Postgresql部署Qt App

[英]Deploy Qt App using Postgresql

I want to deploy my desktop app built using Qt 5.4.0 MinGw and PostgreSQL 9.4 as database, to another computer, here is the file in my executable folder: 我想将使用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            

the problem is I got this error: Driver not loaded when connecting to the database. 问题是我收到此错误:连接数据库时未加载驱动程序。 I have tried to copy the folder plugins\\sqldrivers to my app dir but i still got the same error. 我试图将文件夹plugins \\ sqldrivers复制到我的应用程序目录中,但是仍然遇到相同的错误。

Did you copy \\plugins\\sqldrivers or just \\sqldrivers ? 您复制\\plugins\\sqldrivers还是仅复制\\sqldrivers It should be just \\sqldrivers in the application installation directory. 它应该只是应用程序安装目录中的\\sqldrivers

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM