-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No QtWebEngineProcess executable bundled #112
Comments
There is a webengine deployer available. However, for Qt 6, it is not used yet. PRs welcome testing and enabling this deployer. |
Thanks @TheAssassin : I forked, patched simply as you suggested here, and rebuilt - see builds here. When I build the app locally (with Qt 6.3.0 installed from aqtinstall), QtWebEngineProcess executable is now being deployed together with various other resources. However I still get the error
on running the appimage, and no web content rendered in the webview. I also have my app building in CI, for Windows, Mac, Android, iOS and Linux. For some reason, Unfortunately I am severely limited on time on this project, and current project scope means I have precious little time for debugging this issue now, as I am building for 5 platforms, and only Linux is presenting this issue. Any further help is super welcome. |
Update: the webengine deployer seems to be running fine (in theory) with Qt 6.3.0. https://github.com/koord-live/koord-realtime/runs/6795585080 Still no WebView plugin though :)
@TheAssassin Can you see anything in the job run which looks suspicious? AFAICT this should be working now. |
WebView plugin is related to QML, isn't it? The QML deployer indeed deploys Unfortunately, I have zero experience with webviews in Qt in general, and don't really use QML. Could you provide the file tree of the deployed Windows setup? Maybe that gives us some hints on what we need to change. In case it deploys a |
I posted the full Windows build log here: https://gist.github.com/danryu/4df440fc3365b97413c3329da5b566d6 You can see all the files included from line 7631 onwards. I hope this is good enough? (As it happens, I have to copy the actual QtWebEngineProcess.exe manually, as that itself doesn't seem to get picked up.) The bit of Powershell script which runs the windeployqt command is as such:
|
I could imagine that a) the plugin lib cannot be found/loaded The question is which one it is. Running |
Thanks, I'd be very grateful for any update on this. |
@danryu I've downloaded your version of the AppImage fork, and for me, it worked fine - the AppImage has a libexec and a resources folder, and the resulting AppImage runs OK (with regards to this concern). I've a brand new installation of Ubuntu 22 (as of 4 days ago), and a brand new installation of Qt (not the Ubuntu bundled version). I've created the AppImage with the version 6.2.4 LTS.
|
Thanks @trumpton, that sounds promising. I wonder if libnss has anything to do with my missing Webview plugin issue. |
@danryu mind to file a PR? We can work on the fix then and merge it upstream eventually. |
@danryu - I suspect libnss is not your issue here. When I ran your linuxdeploy version of the app, my program started up; did not complain about WebView; showed my app; tried to show a web page; shut down because of the libnss problem. Once I removed the libnss files from the AppImage, the program worked with the OS installed ones. |
@TheAssassin PR here: #113 @trumpton Thanks for the libnss tips. Yes, if the WebView/WebEngine combo is working for you on Linux - and actually rendering web content - then that shows the webengine deployer is fully operational. |
Building an app with Qt 6.2.4 (installed via apt) on Ubuntu 22.04.
The app includes a single webview QML type, for which I need webengine to display the content.
If I set
QML_SOURCES_PATHS
to the directory containing the qml files, it doesn't seem to pick it up.If I manually copy the qml file into APPDIR, it does get picked up.
See the full build log here: https://gist.github.com/danryu/489f5307972c803b5364f8002d14d362
The apps builds and runs otherwise OK, but when executed produces the error:
As expected, the webview just shows a white frame and doesn't render any content.
So I believe I just need
QT_DIR/gcc_64/libexec/QtWebEngineProcess
to be bundled, and it should work.How can I do this?
I tried each of the following without effect.
The text was updated successfully, but these errors were encountered: