任何有想法在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
发布评论