无法使用 webkit 编译静态 qt 项目 [英] Can't compile static qt project with webkit
问题描述
大家好,我编译了 qt 静态构建,一切正常.但是当我尝试编译包含以下内容的 qt 项目时:
Hi All I compiled qt static build and everything works fine. But when I am trying to compile qt project which includes:
QT += webkitwidgets
我有一个错误:
error: Unknown module(s) in QT: webkitwidgets
是否可以用webkit编译静态qt项目?
is it possible to compile static qt project with webkit?
推荐答案
Webkit 不是在静态 Qt 版本中构建的.无法在静态 Qt 构建中使用 webkit 模块.
Webkit is not built in static Qt builds. It is not possible to use the webkit module in a static Qt build.
也不可能从动态构建中使用 webkit 模块 dll,因为它需要与 Qt 链接,并且您的静态链接的可执行文件不会导出任何 Qt 符号.它当然可以,但那是完全不同的蠕虫罐头.
It is also not possible to use the webkit module dll from a dynamic build, because it needs to link with Qt, and your statically linked executable doesn't export any Qt symbols. It of course could, but that's a whole different can of worms.
这篇关于无法使用 webkit 编译静态 qt 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!