Project ERROR: Unknown module(s) in QT: webenginewidgets in RPI4
-
Hello everyone,
I installed QT 5.11.3 in Raspberry Pi 4.
I used following commands to install QT on my RPIsudo apt-get install qt5-* sudo apt-get install libqt5* sudo apt-get install qtcreator
and i read somewhere in QT forum that by following above steps webengine module doesn't get installed. It has to be installed manually.
so what i did is i cloned qtwebengine module from here
git clone git://code.qt.io/qt/qtwebengine.git/
and gone(checkout) to branch with 5.11.3. But when i started
qmake -r
i get error like this:
Submodule qtwebengine-chromium does not exist. Run 'git submodule update --init'. QtWebEngine will not be built.
I tried updating it but it get stuck there.
can anyone guide me to the right path. the ultimate goal is to include webengine module in qt 5.11.3Thankyou!
-
@mvsri In Ubuntu there is libqt5webenginewidgets5 package. Check whether you have this package in Raspbian (I guess you're using Rasbian?).
-
@mvsri So, "sudo apt install libqt5webenginewidgets5" does not work?
"I tried updating it but it get stuck there" - you mean "git submodule update --init"? What exactly happens then?
-
@jsulm yes "sudo apt install libqt5webenginewidgets5" does not work.
and for your second question when i run "git submodule update --init" i get the following messageSubmodule 'src/3rdparty' (git://code.qt.io/qt/qtwebengine-chromium.git) registered for path 'src/3rdparty' Cloning into '/home/pi/qtwebengine/src/3rdparty'...
and nothing happens
-
@mvsri Chromium is quite big as far as I know, maybe you should wait a bit longer?
-
@jsulm right now what i'm trying to do is.
clone chromium from
git clone git://code.qt.io/qt/qtwebengine-chromium.git/
and try to build it from there for 5.11.3 version.
I don't know if it's right but i think it's worth a try. -
@jsulm i cloned the qtwebengine-chromium and now when i run
"qmake -r"
i am getting the following error
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 ....................... yes Geolocation ............................ no Use v8 snapshot ........................ yes Use ALSA ............................... yes Use PulseAudio ......................... yes Optional system libraries used: re2 .................................. no icu .................................. no libwebp, libwebpmux and libwebpdemux . no opus ................................. no ffmpeg ............................... no libvpx ............................... no snappy ............................... no libsrtp .............................. no glib ................................. yes zlib ................................. yes minizip .............................. no libevent ............................. no jsoncpp .............................. no protobuf ............................. no libxml2 and libxslt .................. yes lcms2 ................................ no png .................................. yes JPEG ................................. yes harfbuzz ............................. no freetype ............................. no Required system libraries: fontconfig ........................... no dbus ................................. yes nss .................................. yes khr .................................. yes glibc ................................ yes Required system libraries for qpa-xcb: libdrm ............................... yes xcomposite ........................... yes xcursor .............................. yes xi ................................... yes xrandr ............................... yes xtst ................................. yes Qt is now configured for building. Just run 'make'. Once everything is built, Qt is installed. You should NOT run 'make install'. Note that this build cannot be deployed to other machines or devices. Prior to reconfiguration, make sure you remove any leftovers from the previous build. A suitable version of fontconfig could not be found. QtWebEngine will not be built.
how to solve fontconfig error?
-
@mvsri said in Project ERROR: Unknown module(s) in QT: webenginewidgets in RPI4:
how to solve fontconfig error?
install fontconfig-dev package.
-
@mvsri Then check config.log file to see why fontconfig is set to "no"
-
@jsulm i checked in config.log and i found this
loaded result for library config.qtwebengine.libraries.webengine-fontconfig Trying source 0 (type pkgConfig) of library webengine-fontconfig ... + /usr/bin/arm-linux-gnueabihf-pkg-config --exists --silence-errors fontconfig pkg-config did not find package. => source produced no result. test config.qtwebengine.libraries.webengine-fontconfig FAILED
-
@mvsri To be sure: you're building on RaspberryPi and you installed fontconfig and fontconfig-dev there?
-
@jsulm yes i'm using rpi4 and i have installed fontconfig and fontconfig-dev and according to this https://doc.qt.io/qt-5/linux-requirements.html i also installed
libfontconfig1-dev
but still i'm getting the error
-
@jsulm in config cache file i found this
cache.webengine-fontconfig._KEYS_ = result msgs cache.webengine-fontconfig.result = false cache.webengine-fontconfig.msgs = "Trying source 0 (type pkgConfig) of library webengine-fontconfig ..." "+ /usr/bin/arm-linux-gnueabihf-pkg-config --exists --silence-errors fontconfig" "pkg-config did not find package." " => source produced no result."
can anyone tell me how to link fontconfig lib here.
-
@mvsri Sorry, I don't know why it doesn't work. Maybe somebody else can help.
-
@jsulm Hey there,
I'm trying to install QT 5.12.8 with qtwebengine following the steps from this link
https://www.tal.org/tutorials/building-qt-512-raspberry-piwhen i'm using
make
i get the following error
ninja: build stopped: subcommand failed. make[4]: *** [Makefile.gn_run:1087: run_ninja] Error 1 make[4]: Leaving directory '/home/pi/Desktop/qt-everywhere-src-5.12.8/qtwebengine/src/core' make[3]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 2 make[3]: Leaving directory '/home/pi/Desktop/qt-everywhere-src-5.12.8/qtwebengine/src/core' make[2]: *** [Makefile:81: sub-core-make_first] Error 2 make[2]: Leaving directory '/home/pi/Desktop/qt-everywhere-src-5.12.8/qtwebengine/src' make[1]: *** [Makefile:49: sub-src-make_first] Error 2 make[1]: Leaving directory '/home/pi/Desktop/qt-everywhere-src-5.12.8/qtwebengine' make: *** [Makefile:1005: module-qtwebengine-make_first] Error 2
Do you have any idea what could the problem be?
I also checked the file in path/home/pi/Desktop/qt-everywhere-src-5.12.8/qtwebengine/src/core/Makefile.gn_run
it is as follows
run_ninja: ninja -v -C /home/pi/Desktop/qt-everywhere-src-5.12.8/qtwebengine/src/core/release QtWebEngineCore
-
@mvsri said in Project ERROR: Unknown module(s) in QT: webenginewidgets in RPI4:
Do you have any idea what could the problem be?
You did not post the actual errors, those should be above what you posted.
1/23