Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Help:when I cross_compile Qt5.15.2 with Raspberry pi4 , build qtwebengine occur the errror



  • when I cross_compile Qt5.15.2 with Raspberry pi4 , build qtwebengine occur the errror:
    [9326/20587] /usr/bin/python2 ../../3rdparty/chromium/tools/grit/grit.py -i ../../3rdparty/chromium/ui/webui/resources/webui_resources.grd build -o gen/ui/resources --depdir . --depfile gen/ui/resources/webui_resources_grd_grit.d --write-only-new=1 --depend-on-stamp -D scale_factors=2x -D _chromium -E CHROMIUM_BUILD=chromium -D use_aura -D use_nss_certs -D use_ozone -t linux2 -D optimize_webui=false -E root_gen_dir=gen -f gen/tools/gritsettings/default_resource_ids --assert-file-list obj/ui/resources/webui_resources_grd_expected_outputs.txt
    [9327/20587] /usr/bin/python2 ../../3rdparty/chromium/mojo/public/tools/bindings/mojom_bindings_generator.py --use_bundled_pylibs -o gen generate -d ../../3rdparty/chromium/ -I ../../3rdparty/chromium/ --bytecode_path gen/mojo/public/tools/bindings --filelist=__services_viz_public_mojom_mojom_shared__generator__home_abc_raspi_qt-everywhere-src-5.15.2_qtwebengine_src_toolchain_target__rule..rsp --generate_non_variant_code -g c++
    [9328/20587] /usr/bin/python2 ../../3rdparty/chromium/mojo/public/tools/bindings/mojom_bindings_generator.py --use_bundled_pylibs -o gen generate -d ../../3rdparty/chromium/ -I ../../3rdparty/chromium/ --bytecode_path gen/mojo/public/tools/bindings --filelist=__services_viz_public_mojom_mojom__generator__home_abc_raspi_qt-everywhere-src-5.15.2_qtwebengine_src_toolchain_target__rule..rsp -g c++ --typemap gen/services/viz/public/mojom/mojom__type_mappings --scrambled_message_id_salt_path ../../3rdparty/chromium/chrome/VERSION
    [9329/20587] /usr/bin/python2 ../../3rdparty/chromium/mojo/public/tools/mojom/mojom_parser.py --input-root /home/abc/raspi/qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/ --input-root /home/abc/raspi/qt-everywhere-src-5.15.2/qtwebengine/src/core/release/gen --output-root /home/abc/raspi/qt-everywhere-src-5.15.2/qtwebengine/src/core/release/gen --mojom-file-list=__services_network_public_mojom_mojom__parser__home_abc_raspi_qt-everywhere-src-5.15.2_qtwebengine_src_toolchain_target__rule..rsp --enable-feature is_ct_supported --enable-feature needs_crypt_config --enable-feature is_posix --enable-feature is_linux
    ninja: build stopped: subcommand failed.
    Makefile.gn_run:1139: recipe for target 'run_ninja' failed
    make[4]: *** [run_ninja] Error 1
    make[4]: Leaving directory '/home/abc/raspi/qt-everywhere-src-5.15.2/qtwebengine/src/core'
    Makefile:82: recipe for target 'sub-gn_run-pro-make_first' failed
    make[3]: *** [sub-gn_run-pro-make_first] Error 2
    make[3]: Leaving directory '/home/abc/raspi/qt-everywhere-src-5.15.2/qtwebengine/src/core'
    Makefile:78: recipe for target 'sub-core-make_first' failed
    make[2]: *** [sub-core-make_first] Error 2
    make[2]: Leaving directory '/home/abc/raspi/qt-everywhere-src-5.15.2/qtwebengine/src'
    Makefile:48: recipe for target 'sub-src-make_first' failed
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory '/home/abc/raspi/qt-everywhere-src-5.15.2/qtwebengine'
    Makefile:1060: recipe for target 'module-qtwebengine-make_first' failed
    make: *** [module-qtwebengine-make_first] Error 2

    configure for example:
    ./configure -release -opengl es2 -device linux-rasp-pi4-v3d-g++ -device-option CROSS_COMPILE=~/raspi/cross-compile-tool/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -reduce-exports -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5pi-host -no-use-gold-linker -skip qtwayland -nomake examples -nomake tests -v

    what can I do for next step?


  • Lifetime Qt Champion


Log in to reply