Skip to content

Issues on linux #2

@elviosak

Description

@elviosak

@master-atul are u currently working on this? if not at least this might serve as a future reference..
I have some issues trying this on linux, installed Qt5.13.0 and QT_INSTALL_DIR is set

Here are the issues and what i tried:

  • asks for checkIfNativeElement and QUrl

updated nodegui version on package.json

  • asks for libraries

corrected filenames on qtweb.cmake to "${QT_HOME_DIR}/lib/libQt5WebEngine.so" and "${QT_HOME_DIR}/lib/libQt5WebEngineWidgets.so"

  • Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication.

rebuilt qode adding this line before new QApplication: QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts,true);
then copied to to node_modules/@nodegui/qode/dist/1.0.6

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

copied manually (don't know how to change config files to include in plugin Release)
plugins/xcbglintegrations from gcc_64 to node_modules/@nodegui/qode/dist/1.0.6

  • Could not find QtWebEngineProcess

copied libexec dir

  • after that some errors about resources and translations

copied resources and translations/qtwebengine_locales

now the demo runs without warnings but webview doesn't show (it flashes image from some electron app i have running, not sure if its related) and only logs http://google.com/ Url from webview.

then i copied entire includes and lib folders from gcc_64 to node_modules/@nodegui/qode/dist/1.0.6 and it worked, tried copying only a few different modules but i couldn't figure out what was missing.

this is what it looks like without last step:
ksnip_20191217-203606

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions