如何在VS2015中使用PostgreSQL插件静态编译Qt 5.8

编程入门 行业动态 更新时间:2024-10-27 03:34:08
本文介绍了如何在VS2015中使用PostgreSQL插件静态编译Qt 5.8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

任何有想法在Windows上通过PostgreSQL支持静态编译Qt 5.8 Open Source的人都可以.我尝试了我所知道的所有选项,包括以下内容.我在Windows 10 x64上使用qt 5.8来源.

Can anybody who may have any idea compiling Qt 5.8 Open Source statically with PostgreSQL support on Windows. I tried all the options known to me including the below. I'm using qt 5.8 sources on Windows 10 x64.

configure -opensource -confirm-license -debug-and-release -static -platform win32-msvc2015 -nomake examples -nomake tests -sql-psql PSQL_LIBS="C:\PSQL\9.6\lib\libpq.lib" -I C:\PSQL\9.6\include\libpq -I C:\PSQL\9.6\include -L C:\PSQL\9.6\lib\libpq.lib

运行上面的配置后,我似乎得到以下信息:

After running the config above, I seem to be getting the below:

注意:使用静态链接将禁止动态使用加载的插件.确保导入所有需要的静态插件,或将所需的模块编译到库中.错误:功能"sql-psql"已启用,但前提条件"libs.psql"失败.检查config.log以获取详细信息.

Note: Using static linking will disable the use of dynamically loaded plugins. Make sure to import all needed static plugins, or compile needed modules into the library. ERROR: Feature 'sql-psql' was enabled, but the pre-condition 'libs.psql' failed. Check config.log for details.

我在这里想念东西吗?

推荐答案

在构建Qt 5.9.1时对我有用

That worked for me while building Qt 5.9.1

configure -prefix <your parameters> ^ PSQL_LIBS="D:\PostgreSQL\9.6\lib\libpq.lib" ^ -I D:\PostgreSQL\9.6\include ^ -L D:\PostgreSQL\9.6\lib

更多推荐

如何在VS2015中使用PostgreSQL插件静态编译Qt 5.8

本文发布于:2023-10-19 19:13:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1508495.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:静态   插件   如何在   Qt   PostgreSQL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!