Solved Building Qt from source, qtwebengine missing
-
anyway I can remove enginio from the build? why is it still in the all module if obsolete?
I would like to call make only once from the top qt source, and everything be built.
I did not have that problem building on macOS -
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 ?
-
Yes I have all I need, I previously built it sucessfully.
Would this command works?perl ./init-repository --module-subset=all,-enginio
I just need standard qt module and qtwebengine modules -
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.
-
I am a newbie when I need to diverge from the steps.
How can I build qtwebengine separatly? I have already done nmake and nmake install,
I am in the qt5 source folder of qtwebengine
ThanksD:\qt5\qtwebengine>
-
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 ?
-
I use the latest tag available, v5.11.0-alpha1
Needed the latest chromium available.git clone https://code.qt.io/qt/qt5.git
cd qt5
git checkout v5.11.0-alpha1Just wish there was a flag -subset=default with qtwebengine
-
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 :)
-
found out why QtWebengine was not being built, it require MSVC2017 to be built, yet the configure and make command do not give any feedback if you use MSVC2015, then the binary are just not there.
Solved -
Thanks for sharing !
I just checked the documentation snapshot and indeed the specs have been bumped to VS2017 only.