Getting error Qtwebengine module Build Install for cross compiling
-
Hi
I am using cross compile qt 5.9 ,raspi3 as target machine and ubuntu as host machine while building webengine module I am getting following error. followed same procedure for other modules as explained in PI2EGLFS https://wiki.qt.io/RaspberryPi2EGLFS and its working fine. I want to run Webbrowser minimal example but getting error while installing webengine module.
Thank you for your time .
hardik@hardik-VirtualBox:~/raspi/qtwebengine$ ~/raspi/qt5/bin/qmake -r
Running configuration tests...
Done running configuration tests.Configure summary:
Qt WebEngine:
Embedded build ......................... yes
Pepper Plugins ......................... no
Printing and PDF ....................... no
Proprietary Codecs ..................... no
Spellchecker ........................... yes
WebRTC ................................. no
Using system ninja ..................... no
ALSA ................................... yes
PulseAudio ............................. yes
System libraries:
ICU .................................. no
libwebp and libwebpdemux ............. no
Opus ................................. no
ffmpeg ............................... noQt 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.Running configure tests
Checking for alsa... yes
Checking for khr... yes
Checking for libvpx... no
Checking for snappy... no
Checking for srtp... yes
Checking for winversion... no
Project MESSAGE: PKG_CONFIG_LIBDIR automatically set to /home/hardik/raspi/sysroot/usr/lib/pkgconfig:/home/hardik/raspi/sysroot/usr/share/pkgconfig:/home/hardik/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig
Project MESSAGE: PKG_CONFIG_SYSROOT_DIR automatically set to /home/hardik/raspi/sysroot
System libxml2 is not configured with ICU. Using Chromium's copy.
System protobuf not found. Using Chromium's copy.
Compatible system libvpx not found. Using Chromium's copy.
System snappy not found. Using Chromium's copy.
System library dependencies:
Optional system libraries used ..... minizip zlib libevent jsoncpp libsrtp
Optional bundled libraries used .... libwebp opus ffmpeg icu protobuf libvpx snappy
Configurable features:
Proprietary codecs (H264, MP3) ..... Not enabled (Default, enable with -proprietary-codecs)
Geolocation ........................ Enabled
Certificate handling ............... Using system NSS
Reading /home/hardik/raspi/qtwebengine/src/src.pro
Reading /home/hardik/raspi/qtwebengine/src/buildtools/buildtools.pro
Reading /home/hardik/raspi/qtwebengine/src/buildtools/ninja.pro
bootstrapping ninja...
warning: A compatible version of re2c (>= 0.11.3) was not found; changes to src/*.in.cc will not affect your build.
wrote build.ninja.
bootstrap complete. rebuilding...
[25/25] LINK ninja
Reading /home/hardik/raspi/qtwebengine/src/buildtools/gn.pro
Building gn manually in a temporary directory for bootstrapping...
ninja: Entering directory `/home/hardik/raspi/qtwebengine/src/3rdparty/chromium/tools/gn/out/Release'
[330/330] LINK gn
Building gn using itself to out/Release...
ERROR at //BUILD.gn:74:1: Can't load input file.
group("gn_all") {
^----------------
Unable to load:
/home/hardik/raspi/qtwebengine/src/toolchain/BUILD.gn
I also checked in the secondary tree for:
/home/hardik/raspi/qtwebengine/src/toolchain/BUILD.gn
Command '['/home/hardik/raspi/qtwebengine/src/3rdparty/chromium/tools/gn/out/Release/gn', 'gen', '/home/hardik/raspi/qtwebengine/src/3rdparty/chromium/tools/gn/out/Release', '--args=use_qt=true is_component_build=false is_shared=true enable_media_router=false enable_nacl=false enable_remoting=false enable_web_speech=false use_experimental_allocator_shim=false use_allocator="none" v8_use_external_startup_data=false treat_warnings_as_errors=false enable_basic_printing=false enable_print_preview=false enable_pdf=false enable_plugins=false enable_widevine=false enable_spellcheck=true enable_webrtc=false symbol_level=0 remove_webcore_debug_symbols=true remove_v8base_debug_symbols=true use_cups=false use_gconf=false use_gio=false use_gnome_keyring=false use_kerberos=false linux_use_bundled_binutils=false use_nss_certs=true use_openssl_certs=false is_clang=false custom_toolchain="/home/hardik/raspi/qtwebengine/src/toolchain:host" host_cpu="x64" use_glib=false use_system_libffi=false is_desktop_linux=false use_gold=false use_ozone=true use_sysroot=false enable_session_service=false enable_notifications=false ozone_auto_platforms=false ozone_platform_headless=true ozone_platform_external=true ozone_platform="qt" toolkit_views=false is_debug=false', '--script-executable=/usr/bin/python2']' returned non-zero exit status 1
Project ERROR: GN build error! -
Hi,
Any suggestions about this error?hardik@hardik-VirtualBox:~/raspi/qtwebengine$ ~/raspi/qt5/bin/qmake -r
Running configuration tests...
Done running configuration tests.Configure summary:
Qt WebEngine:
Embedded build ......................... yes
Pepper Plugins ......................... no
Printing and PDF ....................... no
Proprietary Codecs ..................... no
Spellchecker ........................... yes
WebRTC ................................. no
Using system ninja ..................... no
ALSA ................................... yes
PulseAudio ............................. yes
System libraries:
ICU .................................. no
libwebp and libwebpdemux ............. no
Opus ................................. no
ffmpeg ............................... noQt 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.Reading /home/hardik/raspi/qtwebengine/src/src.pro
Reading /home/hardik/raspi/qtwebengine/src/buildtools/buildtools.pro
Reading /home/hardik/raspi/qtwebengine/src/buildtools/ninja.pro
Reading /home/hardik/raspi/qtwebengine/src/buildtools/gn.pro
Reading /home/hardik/raspi/qtwebengine/src/buildtools/configure_host.pro
Reading /home/hardik/raspi/qtwebengine/src/buildtools/configure_target.pro
Reading /home/hardik/raspi/qtwebengine/src/core/core.pro
Reading /home/hardik/raspi/qtwebengine/src/core/core_headers.pro
Project MESSAGE: perl -w /home/hardik/raspi/qt5/bin/syncqt.pl -module QtWebEngineCore -version 5.9.1 -outdir /home/hardik/raspi/qtwebengine /home/hardik/raspi/qtwebengine
<srcbase> = /home/hardik/raspi/qtwebengine
<outbase> = /home/hardik/raspi/qtwebengine
Reading /home/hardik/raspi/qtwebengine/src/core/core_generator.pro
Reading /home/hardik/raspi/qtwebengine/src/core/gn_run.pro
Project MESSAGE: PKG_CONFIG_LIBDIR automatically set to /home/hardik/raspi/sysroot/usr/lib/pkgconfig:/home/hardik/raspi/sysroot/usr/share/pkgconfig:/home/hardik/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig
Project MESSAGE: PKG_CONFIG_SYSROOT_DIR automatically set to /home/hardik/raspi/sysroot
Project MESSAGE: Running: /home/hardik/raspi/qtwebengine/src/3rdparty/chromium/tools/gn/out/Release/gn gen /home/hardik/raspi/qtwebengine/src/core/Release --script-executable=/usr/bin/python2 --args='use_qt=true is_component_build=false is_shared=true enable_media_router=false enable_nacl=false enable_remoting=false enable_web_speech=false use_experimental_allocator_shim=false use_allocator="none" v8_use_external_startup_data=false treat_warnings_as_errors=false enable_basic_printing=false enable_print_preview=false enable_pdf=false enable_plugins=false enable_widevine=false enable_spellcheck=true enable_webrtc=false symbol_level=0 remove_webcore_debug_symbols=true remove_v8base_debug_symbols=true use_cups=false use_gconf=false use_gio=false use_gnome_keyring=false use_kerberos=false linux_use_bundled_binutils=false use_nss_certs=true use_openssl_certs=false is_clang=false target_sysroot="/home/hardik/raspi/sysroot" arm_tune="cortex-a53" arm_float_abi="hard" arm_version=8 arm_use_neon=true custom_toolchain="/home/hardik/raspi/qtwebengine/src/toolchain:target" host_toolchain="/home/hardik/raspi/qtwebengine/src/toolchain:host" v8_snapshot_toolchain="/home/hardik/raspi/qtwebengine/src/toolchain:v8_snapshot" target_cpu="arm" pkg_config="/home/hardik/raspi/qtwebengine/src/core/pkg-config_wrapper.sh" use_system_zlib=true use_system_minizip=true use_system_libpng=true use_system_libjpeg=true use_pulseaudio=true use_alsa=true use_system_libffi=true use_xscrnsaver=false use_system_libevent=true is_desktop_linux=false use_gold=false use_ozone=true use_sysroot=false enable_session_service=false enable_notifications=false ozone_auto_platforms=false ozone_platform_headless=true ozone_platform_external=true ozone_platform="qt" toolkit_views=false is_debug=false qtwebengine_target="/home/hardik/raspi/qtwebengine/src/core/Release:QtWebEngineCore"' --root=/home/hardik/raspi/qtwebengine/src/3rdparty/chromium
Done. Made 5311 targets from 1113 files in 21157ms
Reading /home/hardik/raspi/qtwebengine/src/core/api/core_api.pro
Reading /home/hardik/raspi/qtwebengine/src/core/core_module.pro
Project MESSAGE: perl -w /home/hardik/raspi/qt5/bin/syncqt.pl -module QtWebEngineCore -version 5.9.1 -outdir /home/hardik/raspi/qtwebengine /home/hardik/raspi/qtwebengine
<srcbase> = /home/hardik/raspi/qtwebengine
<outbase> = /home/hardik/raspi/qtwebengine
Reading /home/hardik/raspi/qtwebengine/src/process/process.pro
Reading /home/hardik/raspi/qtwebengine/src/webengine/webengine.pro
Project MESSAGE: perl -w /home/hardik/raspi/qt5/bin/syncqt.pl -module QtWebEngine -version 5.9.1 -outdir /home/hardik/raspi/qtwebengine /home/hardik/raspi/qtwebengine
<srcbase> = /home/hardik/raspi/qtwebengine
<outbase> = /home/hardik/raspi/qtwebengine
Reading /home/hardik/raspi/qtwebengine/src/webengine/plugin/plugin.pro
Reading /home/hardik/raspi/qtwebengine/src/plugins/plugins.pro
Reading /home/hardik/raspi/qtwebengine/src/webengine/ui/ui.pro
Reading /home/hardik/raspi/qtwebengine/src/webengine/ui2/ui2.pro
Reading /home/hardik/raspi/qtwebengine/src/webenginewidgets/webenginewidgets.pro
Project MESSAGE: perl -w /home/hardik/raspi/qt5/bin/syncqt.pl -module QtWebEngineWidgets -version 5.9.1 -outdir /home/hardik/raspi/qtwebengine /home/hardik/raspi/qtwebengine
<srcbase> = /home/hardik/raspi/qtwebengine
<outbase> = /home/hardik/raspi/qtwebengine
Reading /home/hardik/raspi/qtwebengine/examples/examples.pro
Reading /home/hardik/raspi/qtwebengine/examples/webengine/webengine.pro
Reading /home/hardik/raspi/qtwebengine/examples/webengine/customdialogs/customdialogs.pro
Reading /home/hardik/raspi/qtwebengine/examples/webengine/minimal/minimal.pro
Reading /home/hardik/raspi/qtwebengine/examples/webengine/quicknanobrowser/quicknanobrowser.pro
Reading /home/hardik/raspi/qtwebengine/examples/webenginewidgets/webenginewidgets.pro
Reading /home/hardik/raspi/qtwebengine/examples/webenginewidgets/minimal/minimal.pro
Reading /home/hardik/raspi/qtwebengine/examples/webenginewidgets/contentmanipulation/contentmanipulation.pro
Reading /home/hardik/raspi/qtwebengine/examples/webenginewidgets/cookiebrowser/cookiebrowser.pro
Reading /home/hardik/raspi/qtwebengine/examples/webenginewidgets/demobrowser/demobrowser.pro
Reading /home/hardik/raspi/qtwebengine/examples/webenginewidgets/html2pdf/html2pdf.pro
Reading /home/hardik/raspi/qtwebengine/examples/webenginewidgets/markdowneditor/markdowneditor.pro
Reading /home/hardik/raspi/qtwebengine/examples/webenginewidgets/simplebrowser/simplebrowser.pro
Reading /home/hardik/raspi/qtwebengine/examples/webenginewidgets/videoplayer/videoplayer.pro
Reading /home/hardik/raspi/qtwebengine/examples/webenginewidgets/maps/maps.pro
Reading /home/hardik/raspi/qtwebengine/tests/tests.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/auto.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/quick/quick.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/quick/inspectorserver/inspectorserver.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/quick/publicapi/publicapi.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/quick/qquickwebenginedefaultsurfaceformat/qquickwebenginedefaultsurfaceformat.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/quick/qquickwebengineview/qquickwebengineview.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/widgets/widgets.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/widgets/qwebengineaccessibility/qwebengineaccessibility.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/widgets/qwebenginedefaultsurfaceformat/qwebenginedefaultsurfaceformat.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/widgets/qwebenginefaviconmanager/qwebenginefaviconmanager.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/widgets/qwebenginepage/qwebenginepage.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/widgets/qwebenginehistory/qwebenginehistory.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/widgets/qwebenginehistoryinterface/qwebenginehistoryinterface.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/widgets/qwebengineinspector/qwebengineinspector.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/widgets/qwebengineprofile/qwebengineprofile.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/widgets/qwebenginescript/qwebenginescript.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/widgets/qwebenginesettings/qwebenginesettings.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/widgets/qwebengineview/qwebengineview.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/core/core.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/core/qwebenginecookiestore/qwebenginecookiestore.pro
Reading /home/hardik/raspi/qtwebengine/tests/auto/core/qwebengineurlrequestinterceptor/qwebengineurlrequestinterceptor.pro
Reading /home/hardik/raspi/qtwebengine/tests/quicktestbrowser/quicktestbrowser.pro
hardik@hardik-VirtualBox:~/raspi/qtwebengine$ make
cd src/ && ( test -e Makefile || /home/hardik/raspi/qt5/bin/qmake -o Makefile /home/hardik/raspi/qtwebengine/src/src.pro ) && make -f Makefile
make[1]: Entering directory '/home/hardik/raspi/qtwebengine/src'
cd buildtools/ && ( test -e Makefile || /home/hardik/raspi/qt5/bin/qmake -o Makefile /home/hardik/raspi/qtwebengine/src/buildtools/buildtools.pro ) && make -f Makefile
make[2]: Entering directory '/home/hardik/raspi/qtwebengine/src/buildtools'
( test -e Makefile.ninja || /home/hardik/raspi/qt5/bin/qmake -o Makefile.ninja /home/hardik/raspi/qtwebengine/src/buildtools/ninja.pro ) && make -f Makefile.ninja
make[3]: Entering directory '/home/hardik/raspi/qtwebengine/src/buildtools'
make[3]: Nothing to be done for 'first'.
make[3]: Leaving directory '/home/hardik/raspi/qtwebengine/src/buildtools'
( test -e Makefile.configure_host || /home/hardik/raspi/qt5/bin/qmake -o Makefile.configure_host /home/hardik/raspi/qtwebengine/src/buildtools/configure_host.pro ) && make -f Makefile.configure_host
make[3]: Entering directory '/home/hardik/raspi/qtwebengine/src/buildtools'
make[3]: Nothing to be done for 'first'.
make[3]: Leaving directory '/home/hardik/raspi/qtwebengine/src/buildtools'
( test -e Makefile.configure_target || /home/hardik/raspi/qt5/bin/qmake -o Makefile.configure_target /home/hardik/raspi/qtwebengine/src/buildtools/configure_target.pro ) && make -f Makefile.configure_target
make[3]: Entering directory '/home/hardik/raspi/qtwebengine/src/buildtools'
make[3]: Nothing to be done for 'first'.
make[3]: Leaving directory '/home/hardik/raspi/qtwebengine/src/buildtools'
( test -e Makefile.gn || /home/hardik/raspi/qt5/bin/qmake -o Makefile.gn /home/hardik/raspi/qtwebengine/src/buildtools/gn.pro ) && make -f Makefile.gn
make[3]: Entering directory '/home/hardik/raspi/qtwebengine/src/buildtools'
make[3]: Nothing to be done for 'first'.
make[3]: Leaving directory '/home/hardik/raspi/qtwebengine/src/buildtools'
make[2]: Leaving directory '/home/hardik/raspi/qtwebengine/src/buildtools'
cd core/ && ( test -e Makefile || /home/hardik/raspi/qt5/bin/qmake -o Makefile /home/hardik/raspi/qtwebengine/src/core/core.pro ) && make -f Makefile
make[2]: Entering directory '/home/hardik/raspi/qtwebengine/src/core'
( test -e Makefile.core_headers || /home/hardik/raspi/qt5/bin/qmake -o Makefile.core_headers /home/hardik/raspi/qtwebengine/src/core/core_headers.pro ) && make -f Makefile.core_headers
make[3]: Entering directory '/home/hardik/raspi/qtwebengine/src/core'
make[3]: Nothing to be done for 'first'.
make[3]: Leaving directory '/home/hardik/raspi/qtwebengine/src/core'
( test -e Makefile.core_generator || /home/hardik/raspi/qt5/bin/qmake -o Makefile.core_generator /home/hardik/raspi/qtwebengine/src/core/core_generator.pro ) && make -f Makefile.core_generator
make[3]: Entering directory '/home/hardik/raspi/qtwebengine/src/core'
make[3]: Nothing to be done for 'first'.
make[3]: Leaving directory '/home/hardik/raspi/qtwebengine/src/core'
( test -e Makefile.gn_run || /home/hardik/raspi/qt5/bin/qmake -o Makefile.gn_run /home/hardik/raspi/qtwebengine/src/core/gn_run.pro ) && make -f Makefile.gn_run
make[3]: Entering directory '/home/hardik/raspi/qtwebengine/src/core'
/home/hardik/raspi/qtwebengine/src/3rdparty/ninja/ninja -C /home/hardik/raspi/qtwebengine/src/core/Release QtWebEngineCore
ninja: Entering directory `/home/hardik/raspi/qtwebengine/src/core/Release'
[6/16530] ACTION //third_party/WebKit/Source/core:make_core_generated_css_value_keywords(/home/hardik/raspi/qtwebengine/src/toolchain:target)
FAILED: gen/blink/core/CSSValueKeywords.cpp gen/blink/core/CSSValueKeywords.h
/usr/bin/python2 ../../3rdparty/chromium/third_party/WebKit/Source/build/scripts/make_css_value_keywords.py ../../3rdparty/chromium/third_party/WebKit/Source/core/css/CSSValueKeywords.in ../../3rdparty/chromium/third_party/WebKit/Source/core/css/SVGCSSValueKeywords.in --output_dir gen/blink/core --gperf gperf
Traceback (most recent call last):
File "../../3rdparty/chromium/third_party/WebKit/Source/build/scripts/make_css_value_keywords.py", line 177, in <module>
in_generator.Maker(CSSValueKeywordsWriter).main(sys.argv)
File "/home/hardik/raspi/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/build/scripts/in_generator.py", line 108, in main
writer.write_files(options.output_dir)
File "/home/hardik/raspi/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/build/scripts/in_generator.py", line 60, in write_files
self._write_file_if_changed(output_dir, generator(), file_name)
File "../../3rdparty/chromium/third_party/WebKit/Source/build/scripts/make_css_value_keywords.py", line 172, in generate_implementation
gperf = subprocess.Popen(gperf_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, universal_newlines=True)
File "/usr/lib/python2.7/subprocess.py", line 711, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
[8/16530] ACTION //third_party/WebKit/Source/bindings/core/v8:generate_bindings_core_v8_interfaces(/home/hardik/raspi/qtwebengine/src/toolchain:target)
ninja: build stopped: subcommand failed.
Makefile.gn_run:368: recipe for target 'run_ninja' failed
make[3]: *** [run_ninja] Error 1
make[3]: Leaving directory '/home/hardik/raspi/qtwebengine/src/core'
Makefile:80: recipe for target 'sub-gn_run-pro-make_first' failed
make[2]: *** [sub-gn_run-pro-make_first] Error 2
make[2]: Leaving directory '/home/hardik/raspi/qtwebengine/src/core'
Makefile:77: recipe for target 'sub-core-make_first' failed
make[1]: *** [sub-core-make_first] Error 2
make[1]: Leaving directory '/home/hardik/raspi/qtwebengine/src'
Makefile:46: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 2 -
Hi,
You can try asking on the interest mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented.
-
Hi ,
@zhouyy Thank You... But I have already installed those packages on raspberry pi and synced everything backed to ubuntu ...then also there was a problem....
@SGaist Thank you for your feedback...I managed to Successfully cross compile Qtwebengine on qt 5.9.2 How did I solved it .... see below ........
I was trying to cross compile Qtwebengine module for Raspberry Pi 3 (raspbian jessie ) in Ubuntu (running on virtualbox on my windows 10 pc ).
I found this git https://github.com/Kukkimonsuta/rpi-buildqt/tree/dev.It was very helpful.
Problem was I did not know that i have to install gperf flex bison ...... packages also in Ubuntu ..after following Git link guide I installed those packages to ubuntu and that problem was solved (Note that I did not used those scripts provided in that link just followed https://wiki.qt.io/RaspberryPi2EGLFS for make and install).But when I build minimal browser example of QtWebengine module in Qt Creator and run it on raspberry pi There was error
Failed to load =/opt/vc/lib/libEGL.so.1: =/opt/vc/lib/libEGL.so.1: [1134:1166:0703/191218.017264:ERROR:gl_surface_qt.cpp(661)] Requested OpenGL implementation is not supported. Implementation: 0 ...
it was trying to load the libs at =/... instead of /...
It can be work around by doing a stupid below command .......be sure you are in in root directory
ln -s / =Later author of that git link mentioned that "it was due to it was caused by custom discovery of the path because the library is loaded runtime ant it is fixed in his git dev branch ". but I have not used those script so I faced this issue. See conversation here https://github.com/Kukkimonsuta/rpi-buildqt/issues/12
Thank you All.