Installing QtWebengineView on Ubuntu: “A suitable version of dbus could not be found. QtWebEngine will not be built.”

I am trying to install QtWebEngineView on ubuntu with the proprietary codecs.

Running:

➜  qtwebengine git:(c3c37b4e) ✗ /usr/local/Qt-5.12.1/bin/qmake -r -Wall -- -proprietary-codecs -ffmpeg                                WARNING: /home/akiva/Programming/qt5/qtwebengine/configure.pri:94: Unescaped backslashes are deprecated WARNING: /home/akiva/Programming/qt5/qtwebengine/configure.pri:94: Unescaped backslashes are deprecated  Running configuration tests... Done running configuration tests.  Configure summary:  Qt WebEngine:   Embedded build ......................... no   Full debug information ................. no   Pepper Plugins ......................... yes   Printing and PDF ....................... yes   Proprietary Codecs ..................... yes   Spellchecker ........................... yes   Native Spellchecker .................... no   WebRTC ................................. yes   Use System Ninja ....................... yes   Geolocation ............................ yes   WebChannel support ..................... yes   Use v8 snapshot ........................ yes   Kerberos Authentication ................ no   Support qpa-xcb ........................ yes   Use ALSA ............................... yes   Use PulseAudio ......................... yes   Optional system libraries used:     re2 .................................. no     icu .................................. no     libwebp, libwebpmux and libwebpdemux . yes     opus ................................. yes     ffmpeg ............................... yes     libvpx ............................... no     snappy ............................... no     glib ................................. yes     zlib ................................. yes     minizip .............................. yes     libevent ............................. yes     jsoncpp .............................. yes     protobuf ............................. no     libxml2 and libxslt .................. no     lcms2 ................................ no     png .................................. no     JPEG ................................. no     harfbuzz ............................. yes     freetype ............................. no   Required system libraries:     fontconfig ........................... yes     dbus ................................. no     nss .................................. yes     khr .................................. yes     glibc ................................ yes   Required system libraries for qpa-xcb:     x11 .................................. yes     libdrm ............................... yes     xcomposite ........................... yes     xcursor .............................. yes     xi ................................... yes     xtst ................................. yes  Qt is now configured for building. Just run 'make'. Once everything is built, you must run 'make install'. Qt will be installed into '/usr/local/Qt-5.12.1'.  Prior to reconfiguration, make sure you remove any leftovers from the previous build.  WARNING: /usr/local/Qt-5.12.1/mkspecs/features/qt_parts.prf:17: Feature qt_build_config already included WARNING: /usr/local/Qt-5.12.1/mkspecs/features/configure.prf:5: Feature configure_base already included WARNING: /home/akiva/Programming/qt5/qtwebengine/mkspecs/features/configure.prf:3: Feature functions already included WARNING: /home/akiva/Programming/qt5/qtwebengine/mkspecs/features/platform.prf:32: Excess colon in front of opening brace. WARNING: /home/akiva/Programming/qt5/qtwebengine/mkspecs/features/platform.prf:56: Excess colon in front of opening brace. WARNING: /home/akiva/Programming/qt5/qtwebengine/mkspecs/features/platform.prf:168: Stray AND operator in front of AND operator.  A suitable version of dbus could not be found. QtWebEngine will not be built.  

Dbus is installed, but how do I get the required version? Do I need to update to 19.04?

Gentoo / Emerging the latest version of qtwebengine fails

Command: emerge qtwebengine

COMMON_FLAGS="-march=native -O2 -pipe" MAKEOPTS="-j3" USE="-bindist" 

RAM: 4 Gb

I have tried removing -pipe, and setting -j1, and also adding -jumbo-build to USE flags, but not the both at the same time. dmesg | grep oom returns nothing

x86_64-pc-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus compilation terminated. 

some random gibberish

ninja: build stopped: subcommand failed. make[3]: *** [Makefile.gn_run:510: run_ninja] Error 1 make[3]: Leaving directory '/var/tmp/portage/dev-qt/qtwebengine-5.11.3/work/qtwebengine-everywhere-src-5.11.3/src/core' make[2]: *** [Makefile:80: sub-gn_run-pro-make_first] Error 2 make[2]: Leaving directory '/var/tmp/portage/dev-qt/qtwebengine-5.11.3/work/qtwebengine-everywhere-src-5.11.3/src/core' make[1]: *** [Makefile:79: sub-core-make_first] Error 2 make[1]: Leaving directory '/var/tmp/portage/dev-qt/qtwebengine-5.11.3/work/qtwebengine-everywhere-src-5.11.3/src' make: *** [Makefile:47: sub-src-make_first] Error 2  [31;01m*[0m ERROR: dev-qt/qtwebengine-5.11.3::gentoo failed (compile phase):  [31;01m*[0m   emake failed  [31;01m*[0m   [31;01m*[0m If you need support, post the output of `emerge --info '=dev-qt/qtwebengine-5.11.3::gentoo'`,  [31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-qt/qtwebengine-5.11.3::gentoo'`.  [31;01m*[0m The complete build log is located at '/var/tmp/portage/dev-qt/qtwebengine-5.11.3/temp/build.log'.  [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-qt/qtwebengine-5.11.3/temp/environment'.  [31;01m*[0m Working directory: '/var/tmp/portage/dev-qt/qtwebengine-5.11.3/work/qtwebengine-everywhere-src-5.11.3'  [31;01m*[0m S: '/var/tmp/portage/dev-qt/qtwebengine-5.11.3/work/qtwebengine-everywhere-src-5.11.3'