Building Qt from source, qtwebengine missing
-
I just rebuild with Windows 10SDK installed and got same issue.
Is there a list of the possible value of --module-subset flag? Just to make sure I am using the right one.
--module-subset=default,qtwebengineI would except the build to fail if it can not build qtwebengine?
Just tried again and I just have in my build bin directory
QtwebChannel.dll
Qt5widget.dll
Qt5Webview.dlledit: just saw the init file, ill try with "all" flag, result`:
Project ERROR: D:/qt5/qtenginio/examples/enginio/widgets/image-gallery-cpp/image-gallery-cpp.pro is lacking an install target.
-
No need to build enginio. It's been obsoleted since a long time.
You can however try to build the module directly. Make a build folder and call qmake /path/to/qtwebengine from there.
-
Yes you can. It might be the module subset that still includes it.
It was just to determine whether you have something missing in order to build qtwebengine. Do you have all the needed tools installed on your Windows machine ?
-
Then I would still recommend to try to build the module independently to at least know if there's something that might have gone wrong during the configure step.
-
mkdir D:\build_qtwebengine cd D:\build_qtwebengine \path\to\qmake.exe D:\qt5\qtwebengine jom.exe jom.exe install
-
Looking good but the step remove that flag "Proprietary Codecs " that I had set up previously when configuring at the qt5 root folder. Anyway to redo that step?
Why is running nmake on qt5 source root not building qtwebengine? I am a bit confuse.
ThanksD:\build_qtwebengine>D:\qt5.11.0_alpha\bin\qmake.exe D:\qt5\qtwebengine
Running configuration tests...
Done running configuration tests.Configure summary:
Qt WebEngine:
Embedded build ......................... no
Pepper Plugins ......................... yes
Printing and PDF ....................... yes
Proprietary Codecs ..................... no
Spellchecker ........................... yes
Native Spellchecker .................... no
WebRTC ................................. yes
Use System Ninja ....................... no
Geolocation ............................ yes
Use v8 snapshot ........................ yesQt is now configured for building. Just run 'nmake'.
Once everything is built, Qt is installed.
You should NOT run 'nmake install'.
Note that this build cannot be deployed to other machines or devices.Trying to understand init repository help:
would this be possible?
perl ./init-repository --module-subset=all,-qtenginio
Will try..*--module-subset=<module1>,<module2>... Only initialize the specified subset of modules given as the argument. Specified modules must already exist in .gitmodules. The string "all" results in cloning all known modules. The strings "essential", "addon", "preview", "deprecated", "obsolete", and "ignore" refer to classes of modules; "default" maps to "essential,addon,preview,deprecated", which corresponds with the set of maintained modules and is also the default set. Module names may be prefixed with a dash to exclude them from a bigger set, e.g. "all,-ignore".*
-
Here is my latest try with
perl ./init-repository --module-subset=all,-qtenginiographicsitems\qdeclarativetextinput.cpp(517): error C2039: 'setCursorBlinkPeriod': is not a member of 'QWidgetLineControl' d:\qt5\qtbase\include\qtwidgets\5.11.0\qtwidgets\private\../../../../../src/widgets/widgets/qwidgetlinecontrol_p.h(82): note: see declaration of 'QWidgetLineControl' qdeclarativetext.cpp qdeclarativetextedit.cpp
now trying with:
perl ./init-repository --module-subset=all,-qtenginio,-qtquick1,-qtquickcontrols2 -
Strange, did you try with the sources of the latest beta release rather than a clone ?
-
-
Since it seems to cause you trouble, don't use subset and just delete the modules you don't use or use the -skip option of configure.
-
Thanks SGaist, our champion,
Finally, I just removed qtenginio from the makefile and rebuilt.Maybe removing qtenginio from the build would be good, since it fail to build by default on windows.
Cheers,
Maxfor the other, step used to build from scratch :
{code}
git clone https://code.qt.io/qt/qt5.git
cd qt5
git checkout v5.11.0-beta4
perl ./init-repository --module-subset=all
configure -opensource -confirm-license -release -webengine-pepper-plugins -webengine-proprietary-codecs ....etc
--remove module not wanted; all occurence of -qtenginio inside file Makefile
nmake
nmake install
{code} -
Great !
Thanks for the feedback :)
-
Thanks for sharing !
I just checked the documentation snapshot and indeed the specs have been bumped to VS2017 only.