nodegui / nodegui-plugin-webview

[WIP] A NodeGui plugin that adds webview support
29 stars 5 forks source link

Issues on linux #2

Closed elviosak closed 4 years ago

elviosak commented 4 years ago

@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:

updated nodegui version on package.json

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

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

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

copied libexec dir

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

a7ul commented 4 years ago

This is now fixed in the latest update. Although it doesnt mean its close to completion and there would be bugs.

But if you try it now. It should just work :) Closing this now.

a7ul commented 4 years ago

Thanks for checking this out!