Webengine example fail with "Unknown module(s) in QT: webengine"
-
So you have it all working now ?
-
After some time I found this information, which does not seem to be published elsewhere:
"MSVC2013 is not supported anymore in Qt WebEngine"
Source: https://bugreports.qt.io/browse/QTBUG-56299And while I am at it (it took me some time to find this link):
https://www.visualstudio.com/downloads/#visual-studio-community-2015-with-update-3-free -
Project ERROR: Unknown module(s) in QT: webenginewidgets
Initial searching for a solution on the web shows this has been a problem for a number of years.
QTBUG-43614 webenginewidgets examples does not build on Windows
https://bugreports.qt.io/browse/QTBUG-43614
QTBUG-44108 webenginewidgets examples does not build on Windows (second try)
https://bugreports.qt.io/browse/QTBUG-44108Both of the above QTBUG items are marked as closed. Obviously they are not.
Yes..I have QT += webenginewidgets set in the .pro file.
Windows7 Pro SP1 32 bit OS. Creator4.2.0 Qt5.7.1. from this download..
qt-opensource-windows-x86-mingw530-5.7.1
The exact same project built on OSX using Creator4.2.0 Qt5.7.1. compiles and runs properly.
Do I need to download and install BS compilers from Microsoft to get this to work? If so, do I need a different Qt download in order to use the MSBS compilers??
Do I need to upgrade to a different OS..Win8 or Win10? Or Maybe Win7 Pro 64 bit??
Is there a solution for Windows7 Pro SP1 32 bit OS??
-
The QtWebEngine platform notes explain what is needed to build the module.
QtWebEngine is using the Chromium project as backend so it depends on what platform they support. If you would like to have a MinGW build of QtWebEngine then you should rather push this to the Chromium project.
On a side note, there's @Konstantin-Tokarev QtWebKit reboot project that might interest you.
-
Note that we provide QtWebKit TP5 binaries compatible with official Qt 5.8.0 MinGW build: https://github.com/annulen/webkit/releases/tag/qtwebkit-tp5
-
Thx for the reply. I made a mistake downloading the open source install.
I am now using: qt-unified-windows-x86-2.0.5-online.exe...and have a current Commercial License for Application Development..all handheld and desktop environments are covered.I tried installing Qt5.7.1 for MinGW but there were no QtWebEngine libraries.
I tried installing Qt5.7.1 for MSVC2015 and it had the QtWebEngine libraries, but no compiler.I am now re-installing 5.8, 5.7, and 5.6. Maybe one of those will have the libraries I need.
-
Thx for the heads up.
Are the 5.8/Webkit binaries also available for MacOS-clang64 environments?
-
@Konstantin-Tokarev
Thank you for all your work. its a huge task for a beginner to build webkit so your project
is very welcome. -
@mrjj As for these binary packages, credits go to CI infrastructure of The Qt Company, and personally to Simon Hausmann who helped a lot with integration of new QtWebKit's build system into Coin.
Also credits go to Vitaly Slobodin and other contributors of revived QtWebKit, who contributed lots of patches enhancing Windows and macOS support. Without them, it could happen that only Linux would be supported.
-
Qt 5.7.1 Reference Documentation
Contents
Functions
Detailed Description
QtWebView Namespace
The QtWebView namespace provides functions that makes it easier to set-up and use the WebView. More...
Header:
#include <QtWebView>
qmake:
QT += webviewDocs say it's there but it isn't. This is after a fresh install of 5.8,5.7 MinGW53_32 and 5.6 MinGW49_32
-
Do you know if the 5.8/Webkit binaries support a mix of HTML and JavaScript on the same page?
A real ancient version of WebKit I was using in Qt4.7.2 did not...which is what has prompted my attempted upgrade to Qt5x/WebEngine.
-
Like written in the documentation I linked, QtWebEngine is not available with MinGW for the reason I have already given.
As for Visual Studio, yes, it's up to you to install it. It has always been the case. Microsoft doesn't allow any third party to bundle its development suits.
-
@PSI_lbc said in Windows 7 Webengine example fail with "Unknown module(s) in QT: webengine":
Docs say it's there but it isn't. This is after a fresh install of 5.8,5.7 MinGW53_32 and 5.6 MinGW49_32
You need to install Qt 5.8.0 and extract QtWebKit binaries that you can download from link that I've posted above.
@PSI_lbc said in Windows 7 Webengine example fail with "Unknown module(s) in QT: webengine":
Do you know if the 5.8/Webkit binaries support a mix of HTML and JavaScript on the same page?
Of course, yes!
-
@xeoshow
Hi
I think its still alpha
https://github.com/annulen/webkit/releases -
@mrjj said in Windows 7 Webengine example fail with "Unknown module(s) in QT: webengine":
@xeoshow
Hi
I think its still alpha
https://github.com/annulen/webkit/releasesI am still using the qt 5.5.1 mingw version, and using the default webview in that QT version. One BIG problem I met is memory leak seems still in qt 5.5.1 mingw version ...
Is the memory leak problem resolved in the qtwebkit-tp5-qt58-mingw530-x86.zip or qtwebkit-5.212.0_alpha2-qt59-mingw530-x86.zip from https://github.com/annulen/webkit/releases ?
-
I just tried qt-opensource-windows-x86-mingw530-5.8.0.exe and qtwebkit-tp5-qt58-mingw530-x86.zip, For one of my project works well with qt 5.5.1 mingw, now got below error when compiling, anything I should modify? Or anything missing?
Thanks a lot!
Best regards, Jason
D:/Qt/Qt5.8.0/Tools/mingw530_32/bin/../lib/gcc/i686-w64-mingw32/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQt5WebKitWidgetsd D:/Qt/Qt5.8.0/Tools/mingw530_32/bin/../lib/gcc/i686-w64-mingw32/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQt5WebKitd collect2.exe: error: ld returned 1 exit status Makefile.Debug:77: recipe for target 'debug/xc-browser.exe' failed mingw32-make[1]: Leaving directory 'D:/gitrepository/xc/build-xc-browser-desktop-Desktop_Qt_5_8_0_MinGW_32bit-Debug' mingw32-make[1]: *** [debug/xc-browser.exe] Error 1 Makefile:34: recipe for target 'debug' failed mingw32-make: *** [debug] Error 2 13:35:42: Process"D:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe"exit,exit code 2 。 Error while building/deploying project xc-browser-desktop (kit: Desktop Qt 5.8.0 MinGW 32bit) When executing step "Make" 13:35:42: Elapsed time: 00:34.
-
What I am talking about the memory leak, is something as below:
https://forum.qt.io/topic/10832/memory-size-increases-per-page-load/13