无法使用 webkit 编译静态 qt 项目

编程入门 行业动态 更新时间:2024-10-27 01:20:58
本文介绍了无法使用 webkit 编译静态 qt 项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好,我编译了 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 项目

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

发布评论

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

>www.elefans.com

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