【问题标题】:What leads to "Could not find QtWebEngineProcess" error?是什么导致“找不到 QtWebEngineProcess”错误?
【发布时间】:2020-12-13 19:18:31
【问题描述】:

我正在尝试将 WebKit (Qt5.5.1) 插件移植到 WebEngine (Qt5.11.3) 中,如下所述:https://doc.qt.io/qt-5/qtwebenginewidgets-qtwebkitportingguide.html 在 Ubuntu 18.04 中构建和运行时出现以下错误:

QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled

然后

Could not find QtWebEngineProcess

我不确定第一个是否与第二个有关,但第二个会导致崩溃。

编辑: 我将 QtWebEngineProcess 从Qt/libexec dir 放入二进制目录,现在第二个错误更改为:

WebEngineContext used before initialize() or OpenGL context creation failed.

仍然崩溃。

【问题讨论】:

标签: c++ qt linker qt5 qtwebengine


【解决方案1】:

问题在于缺少的依赖文件。

我们的cmake 构建仅将自动确定的依赖项 (libs) 从 Qt 文件夹复制到 app 文件夹。但是对于完整的部署,QtWebEngine 应用程序需要很少的非库依赖项,例如 QtWebEngineProcess 可执行文件 xcbglintegrations 插件(第一个错误)和 WebEngine 资源。这条指令https://doc.qt.io/qt-5/qtwebengine-deploying.html有大部分细节。

它适用于 Qt5.12.9。使用 Qt5.11.3 我仍然遇到了一些问题。

【讨论】:

    猜你喜欢
    • 2019-06-08
    • 1970-01-01
    • 2014-06-14
    • 1970-01-01
    • 2017-05-19
    • 1970-01-01
    • 1970-01-01
    • 2014-03-23
    • 1970-01-01
    相关资源
    最近更新 更多