Unsolved Project ERROR: -- running gyp_qtwebengine failed --
-
Hi
I have successfully built Qt 5.8 for my Raspberry Pi 3 both native on the Pi and with Cross-Compiling following the well-known ELGFS tutorial ( https://wiki.qt.io/RaspberryPi2EGLFS ).
However, this has been without QtWebEngine to save time and size. I have now realised that I need QtWebEngine, but when I try to build it I get the following error:
QtWebEngineCore: created fwd-include header(s) for <srcbase>/src/core/api/ { qtwebenginecoreglobal.h (1), qtwebenginecoreglobal_p.h (1), qwebenginecallback.h (2), qwebenginecallback_p.h (1), qwebenginecookiestore.h (2), qwebenginecookiestore_p.h (1), qwebengineurlrequestinfo.h (2), qwebengineurlrequestinfo_p.h (1), qwebengineurlrequestinterceptor.h (2), qwebengineurlrequestjob.h (2), qwebengineurlschemehandler.h (2) } QtWebEngineCore: created version header QtWebEngineCore: created master header QtWebEngineCore: created headers.pri file make[4]: Entering directory '/home/pi/qt5/qtwebengine/src/core' make[4]: Nothing to be done for 'first'. make[4]: Leaving directory '/home/pi/qt5/qtwebengine/src/core' ( test -e Makefile.gyp_configure_host || /home/pi/qt5/qtbase/bin/qmake -o Makefile.gyp_configure_host /home/pi/qt5/qtwebengine/src/core/gyp_configure_host.pro ) && make -f Makefile.gyp_configure_host make[4]: Entering directory '/home/pi/qt5/qtwebengine/src/core' make[4]: Nothing to be done for 'first'. make[4]: Leaving directory '/home/pi/qt5/qtwebengine/src/core' ( test -e Makefile.core_gyp_generator || /home/pi/qt5/qtbase/bin/qmake -o Makefile.core_gyp_generator /home/pi/qt5/qtwebengine/src/core/core_gyp_generator.pro ) && make -f Makefile.core_gyp_generator make[4]: Entering directory '/home/pi/qt5/qtwebengine/src/core' make[4]: Nothing to be done for 'first'. make[4]: Leaving directory '/home/pi/qt5/qtwebengine/src/core' ( test -e Makefile.gyp_configure_target || /home/pi/qt5/qtbase/bin/qmake -o Makefile.gyp_configure_target /home/pi/qt5/qtwebengine/src/core/gyp_configure_target.pro ) && make -f Makefile.gyp_configure_target make[4]: Entering directory '/home/pi/qt5/qtwebengine/src/core' make[4]: Nothing to be done for 'first'. make[4]: Leaving directory '/home/pi/qt5/qtwebengine/src/core' ( test -e Makefile.gyp_run || /home/pi/qt5/qtbase/bin/qmake -o Makefile.gyp_run /home/pi/qt5/qtwebengine/src/core/gyp_run.pro ) && make -f Makefile.gyp_run Project MESSAGE: PKG_CONFIG_LIBDIR automatically set to //usr/lib/pkgconfig://usr/share/pkgconfig://usr/lib/arm-linux-gnueabihf/pkgconfig Project MESSAGE: PKG_CONFIG_SYSROOT_DIR automatically set to / Project MESSAGE: Running gyp_qtwebengine "/home/pi/qt5/qtwebengine/src/core" -D qt_cross_compile=1 -D os_posix=1 -D qt_os="embedded_linux" -I config/embedded_linux.gypi -D pkg-config="/home/pi/qt5/qtwebengine/src/core/pkg-config_wrapper.sh 2> /dev/null" -D use_qt=1 -D v8_use_external_startup_data=0 -D enable_web_speech=0 -D enable_extensions=0 -D linux_use_bundled_gold=0 -D linux_use_bundled_binutils=0 -D linux_use_gold_flags=0 -D toolkit_uses_gtk=0 -D use_ash=0 -D use_aura=1 -D use_cairo=0 -D use_clipboard_aurax11=0 -D use_cups=0 -D use_gconf=0 -D use_gio=0 -D use_gnome_keyring=0 -D use_kerberos=0 -D use_pango=0 -D use_openssl=1 -D use_allocator=none -D use_experimental_allocator_shim=0 -D use_nss_certs=0 -D use_nss_verifier=0 -D use_openssl_certs=1 -D use_system_zlib=1 -D use_system_libjpeg=1 -D use_pulseaudio=1 -D use_alsa=1 -D use_system_libevent=1 -D use_system_libwebp=1 -D use_system_libsrtp=1 -D use_system_libxml=1 -D use_system_jsoncpp=1 -D use_system_opus=1 -D clang=0 -D desktop_linux=0 -D disable_nacl=1 -D embedded=1 -D enable_autofill_dialog=0 -D enable_automation=0 -D enable_basic_printing=0 -D enable_captive_portal_detection=0 -D enable_extensions=0 -D enable_google_now=0 -D enable_language_detection=0 -D enable_managed_users=0 -D enable_pdf=0 -D enable_plugin_installation=0 -D enable_plugins=0 -D enable_print_preview=0 -D enable_session_service=0 -D enable_task_manager=0 -D enable_themes=0 -D enable_webrtc=0 -D gtest_target_type=none -D host_clang=0 -D notifications=0 -D ozone_auto_platforms=0 -D ozone_platform_dri=0 -D ozone_platform_test=0 -D p2p_apis=0 -D safe_browsing=0 -D toolkit_views=1 -D use_custom_freetype=0 -D use_libpci=0 -D use_ozone=1 -D use_system_fontconfig=1 -D use_x11=0 -D v8_use_snapshot=false -D want_separate_host_toolset=1 -D angle_enable_gl=0 -D qtwe_process_name_debug=QtWebEngineProcess -D qtwe_process_name_release=QtWebEngineProcess -D disable_glibcxx_debug=1 -D remove_webcore_debug_symbols=1 -D remove_v8base_debug_symbols=1 -D disable_fatal_linker_warnings=1 -D sysroot="/" -D CXX="/usr/bin/g++" -D target_arch=arm -D arm_arch="armv8-a" -D arm_tune="cortex-a53" -D arm_float_abi="hard" -D arm_version="8" -D arm_fpu="crypto-neon-fp-armv8" -D arm_neon=1 -D release_optimize=s -D debug_optimize=s -D win_release_Optimization=1 -D release_unwind_tables=0 -D enable_spellcheck=1. using python: /usr/bin/python version: 2.7.9 Using extra options found in /home/pi/qt5/qtwebengine/src/core/qtwebengine_extras.gypi Using extra options found in /home/pi/qt5/qtwebengine/src/core/qmake_extras.gypi Using extra options found in /home/pi/qt5/qtwebengine/src/core/qtwebengine_extras.gypi Using extra options found in /home/pi/qt5/qtwebengine/src/core/qmake_extras.gypi Updating projects from gyp files... gyp: name 'arm_thumb' is not defined while evaluating condition 'arm_thumb==1' in /home/pi/qt5/qtwebengine/src/core/core_generated.gyp gyp: name 'arm_thumb' is not defined while evaluating condition 'arm_thumb==1' in /home/pi/qt5/qtwebengine/src/core/resources/resources.gyp Project ERROR: -- running gyp_qtwebengine failed -- Makefile:116: recipe for target 'sub-gyp_run-pro-make_first' failed make[3]: *** [sub-gyp_run-pro-make_first] Error 3 make[3]: Leaving directory '/home/pi/qt5/qtwebengine/src/core' Makefile:49: recipe for target 'sub-core-make_first' failed make[2]: *** [sub-core-make_first] Error 2 make[2]: Leaving directory '/home/pi/qt5/qtwebengine/src' Makefile:44: recipe for target 'sub-src-make_first' failed make[1]: *** [sub-src-make_first] Error 2 make[1]: Leaving directory '/home/pi/qt5/qtwebengine' Makefile:863: recipe for target 'module-qtwebengine-make_first' failed make: *** [module-qtwebengine-make_first] Error 2 make: *** Waiting for unfinished jobs....
As you can see, this output is from building it natively, but I get the same "gyp: name 'arm_thumb' is not defined while evaluating condition 'arm_thumb==1' (...)" when cross-compiling on an Ubuntu x64 VM.
Searching for this error, I found this thread: https://forum.qt.io/topic/77843/how-to-build-qt-for-raspberry-pi3/18 , but none of the actions taken there has helped.
Any help to understand this error is appreciated!
Edit: Bad output paste
-
Below is the output from make during the same error when cross-compiling (here compiled as a single job to prevent cluttering of the output from other threads)
cd qtwebengine/ && ( test -e Makefile || /home/jhbr/raspi/build/qt5.8/qtbase/bin/qmake -o Makefile /home/jhbr/raspi/src/qt5.8/qtwebengine/qtwebengine.pro -qtconf /home/jhbr/raspi/build/qt5.8/qtbase/bin/qt.conf -- -v -opensource -confirm-license -opengl es2 -no-opengles3 -device linux-rpi3-g++ -device-option CROSS_COMPILE=/home/jhbr/raspi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /home/jhbr/raspi/sysroot -prefix /usr/local/qt5.8 -extprefix /home/jhbr/raspi/install/qt5.8 -hostprefix /home/jhbr/raspi/install/qt5.8-host -release -make libs -skip qtserialbus -skip qtwayland -skip qtscript -no-pch -no-use-gold-linker ) && make -f Makefile Info: creating cache file /home/jhbr/raspi/build/qt5.8/qtwebengine/.qmake.cache Running configure tests Checking for alsa... yes Checking for khr... yes Checking for libvpx... no Checking for snappy... no Checking for srtp... yes Project MESSAGE: PKG_CONFIG_LIBDIR automatically set to /home/jhbr/raspi/sysroot/usr/lib/pkgconfig:/home/jhbr/raspi/sysroot/usr/share/pkgconfig:/home/jhbr/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig Project MESSAGE: PKG_CONFIG_SYSROOT_DIR automatically set to /home/jhbr/raspi/sysroot 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: ICU ................................ Using internal copy (Default, force system ICU with WEBENGINE_CONFIG+=use_system_icu) FFMPEG ............................. Using internal copy (Default, force system FFMPEG with WEBENGINE_CONFIG+=use_system_ffmpeg) Optional system libraries used ..... minizip zlib libwebp libwebpdemux libxslt libxml2 libevent jsoncpp opus libsrtp Optional bundled libraries used .... protobuf libvpx snappy icu ffmpeg Configurable features: Proprietary codecs (H264, MP3) ..... Not enabled (Default, enable with WEBENGINE_CONFIG+=use_proprietary_codecs) Geolocation ........................ Enabled Certificate handling ............... Using bundled BoringSSL make[1]: Entering directory '/home/jhbr/raspi/build/qt5.8/qtwebengine' cd src/ && ( test -e Makefile || /home/jhbr/raspi/build/qt5.8/qtbase/bin/qmake -o Makefile /home/jhbr/raspi/src/qt5.8/qtwebengine/src/src.pro -qtconf /home/jhbr/raspi/build/qt5.8/qtbase/bin/qt.conf -- -v -opensource -confirm-license -opengl es2 -no-opengles3 -device linux-rpi3-g++ -device-option CROSS_COMPILE=/home/jhbr/raspi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /home/jhbr/raspi/sysroot -prefix /usr/local/qt5.8 -extprefix /home/jhbr/raspi/install/qt5.8 -hostprefix /home/jhbr/raspi/install/qt5.8-host -release -make libs -skip qtserialbus -skip qtwayland -skip qtscript -no-pch -no-use-gold-linker ) && make -f Makefile make[2]: Entering directory '/home/jhbr/raspi/build/qt5.8/qtwebengine/src' cd core/ && ( test -e Makefile || /home/jhbr/raspi/build/qt5.8/qtbase/bin/qmake -o Makefile /home/jhbr/raspi/src/qt5.8/qtwebengine/src/core/core.pro -qtconf /home/jhbr/raspi/build/qt5.8/qtbase/bin/qt.conf -- -v -opensource -confirm-license -opengl es2 -no-opengles3 -device linux-rpi3-g++ -device-option CROSS_COMPILE=/home/jhbr/raspi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /home/jhbr/raspi/sysroot -prefix /usr/local/qt5.8 -extprefix /home/jhbr/raspi/install/qt5.8 -hostprefix /home/jhbr/raspi/install/qt5.8-host -release -make libs -skip qtserialbus -skip qtwayland -skip qtscript -no-pch -no-use-gold-linker ) && make -f Makefile make[3]: Entering directory '/home/jhbr/raspi/build/qt5.8/qtwebengine/src/core' ( test -e Makefile.core_headers || /home/jhbr/raspi/build/qt5.8/qtbase/bin/qmake -o Makefile.core_headers /home/jhbr/raspi/src/qt5.8/qtwebengine/src/core/core_headers.pro -qtconf /home/jhbr/raspi/build/qt5.8/qtbase/bin/qt.conf -- -v -opensource -confirm-license -opengl es2 -no-opengles3 -device linux-rpi3-g++ -device-option CROSS_COMPILE=/home/jhbr/raspi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /home/jhbr/raspi/sysroot -prefix /usr/local/qt5.8 -extprefix /home/jhbr/raspi/install/qt5.8 -hostprefix /home/jhbr/raspi/install/qt5.8-host -release -make libs -skip qtserialbus -skip qtwayland -skip qtscript -no-pch -no-use-gold-linker ) && make -f Makefile.core_headers make[4]: Entering directory '/home/jhbr/raspi/build/qt5.8/qtwebengine/src/core' make[4]: Nothing to be done for 'first'. make[4]: Leaving directory '/home/jhbr/raspi/build/qt5.8/qtwebengine/src/core' ( test -e Makefile.core_gyp_generator || /home/jhbr/raspi/build/qt5.8/qtbase/bin/qmake -o Makefile.core_gyp_generator /home/jhbr/raspi/src/qt5.8/qtwebengine/src/core/core_gyp_generator.pro -qtconf /home/jhbr/raspi/build/qt5.8/qtbase/bin/qt.conf -- -v -opensource -confirm-license -opengl es2 -no-opengles3 -device linux-rpi3-g++ -device-option CROSS_COMPILE=/home/jhbr/raspi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /home/jhbr/raspi/sysroot -prefix /usr/local/qt5.8 -extprefix /home/jhbr/raspi/install/qt5.8 -hostprefix /home/jhbr/raspi/install/qt5.8-host -release -make libs -skip qtserialbus -skip qtwayland -skip qtscript -no-pch -no-use-gold-linker ) && make -f Makefile.core_gyp_generator make[4]: Entering directory '/home/jhbr/raspi/build/qt5.8/qtwebengine/src/core' make[4]: Nothing to be done for 'first'. make[4]: Leaving directory '/home/jhbr/raspi/build/qt5.8/qtwebengine/src/core' ( test -e Makefile.gyp_configure_host || /home/jhbr/raspi/build/qt5.8/qtbase/bin/qmake -o Makefile.gyp_configure_host /home/jhbr/raspi/src/qt5.8/qtwebengine/src/core/gyp_configure_host.pro -qtconf /home/jhbr/raspi/build/qt5.8/qtbase/bin/qt.conf -- -v -opensource -confirm-license -opengl es2 -no-opengles3 -device linux-rpi3-g++ -device-option CROSS_COMPILE=/home/jhbr/raspi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /home/jhbr/raspi/sysroot -prefix /usr/local/qt5.8 -extprefix /home/jhbr/raspi/install/qt5.8 -hostprefix /home/jhbr/raspi/install/qt5.8-host -release -make libs -skip qtserialbus -skip qtwayland -skip qtscript -no-pch -no-use-gold-linker ) && make -f Makefile.gyp_configure_host make[4]: Entering directory '/home/jhbr/raspi/build/qt5.8/qtwebengine/src/core' make[4]: Nothing to be done for 'first'. make[4]: Leaving directory '/home/jhbr/raspi/build/qt5.8/qtwebengine/src/core' ( test -e Makefile.gyp_configure_target || /home/jhbr/raspi/build/qt5.8/qtbase/bin/qmake -o Makefile.gyp_configure_target /home/jhbr/raspi/src/qt5.8/qtwebengine/src/core/gyp_configure_target.pro -qtconf /home/jhbr/raspi/build/qt5.8/qtbase/bin/qt.conf -- -v -opensource -confirm-license -opengl es2 -no-opengles3 -device linux-rpi3-g++ -device-option CROSS_COMPILE=/home/jhbr/raspi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /home/jhbr/raspi/sysroot -prefix /usr/local/qt5.8 -extprefix /home/jhbr/raspi/install/qt5.8 -hostprefix /home/jhbr/raspi/install/qt5.8-host -release -make libs -skip qtserialbus -skip qtwayland -skip qtscript -no-pch -no-use-gold-linker ) && make -f Makefile.gyp_configure_target make[4]: Entering directory '/home/jhbr/raspi/build/qt5.8/qtwebengine/src/core' make[4]: Nothing to be done for 'first'. make[4]: Leaving directory '/home/jhbr/raspi/build/qt5.8/qtwebengine/src/core' ( test -e Makefile.gyp_run || /home/jhbr/raspi/build/qt5.8/qtbase/bin/qmake -o Makefile.gyp_run /home/jhbr/raspi/src/qt5.8/qtwebengine/src/core/gyp_run.pro -qtconf /home/jhbr/raspi/build/qt5.8/qtbase/bin/qt.conf -- -v -opensource -confirm-license -opengl es2 -no-opengles3 -device linux-rpi3-g++ -device-option CROSS_COMPILE=/home/jhbr/raspi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /home/jhbr/raspi/sysroot -prefix /usr/local/qt5.8 -extprefix /home/jhbr/raspi/install/qt5.8 -hostprefix /home/jhbr/raspi/install/qt5.8-host -release -make libs -skip qtserialbus -skip qtwayland -skip qtscript -no-pch -no-use-gold-linker ) && make -f Makefile.gyp_run Project MESSAGE: PKG_CONFIG_LIBDIR automatically set to /home/jhbr/raspi/sysroot/usr/lib/pkgconfig:/home/jhbr/raspi/sysroot/usr/share/pkgconfig:/home/jhbr/raspi/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig Project MESSAGE: PKG_CONFIG_SYSROOT_DIR automatically set to /home/jhbr/raspi/sysroot Project MESSAGE: Running gyp_qtwebengine "/home/jhbr/raspi/build/qt5.8/qtwebengine/src/core" -D qt_cross_compile=1 -D os_posix=1 -D qt_os="embedded_linux" -I config/embedded_linux.gypi -D pkg-config="/home/jhbr/raspi/build/qt5.8/qtwebengine/src/core/pkg-config_wrapper.sh 2> /dev/null" -D use_qt=1 -D v8_use_external_startup_data=0 -D enable_web_speech=0 -D enable_extensions=0 -D linux_use_bundled_gold=0 -D linux_use_bundled_binutils=0 -D linux_use_gold_flags=0 -D toolkit_uses_gtk=0 -D use_ash=0 -D use_aura=1 -D use_cairo=0 -D use_clipboard_aurax11=0 -D use_cups=0 -D use_gconf=0 -D use_gio=0 -D use_gnome_keyring=0 -D use_kerberos=0 -D use_pango=0 -D use_openssl=1 -D use_nss_certs=0 -D use_nss_verifier=0 -D use_openssl_certs=1 -D use_system_zlib=1 -D use_system_libpng=1 -D use_system_libjpeg=1 -D use_pulseaudio=1 -D use_alsa=1 -D use_system_libevent=1 -D use_system_libwebp=1 -D use_system_libsrtp=1 -D use_system_libxml=1 -D use_system_jsoncpp=1 -D use_system_opus=1 -D clang=0 -D desktop_linux=0 -D disable_nacl=1 -D embedded=1 -D enable_autofill_dialog=0 -D enable_automation=0 -D enable_basic_printing=0 -D enable_captive_portal_detection=0 -D enable_extensions=0 -D enable_google_now=0 -D enable_language_detection=0 -D enable_managed_users=0 -D enable_pdf=0 -D enable_plugin_installation=0 -D enable_plugins=0 -D enable_print_preview=0 -D enable_session_service=0 -D enable_task_manager=0 -D enable_themes=0 -D enable_webrtc=0 -D gtest_target_type=none -D host_clang=0 -D notifications=0 -D ozone_auto_platforms=0 -D ozone_platform_dri=0 -D ozone_platform_test=0 -D p2p_apis=0 -D safe_browsing=0 -D toolkit_views=1 -D use_custom_freetype=0 -D use_libpci=0 -D use_ozone=1 -D use_system_fontconfig=1 -D use_x11=0 -D v8_use_snapshot=false -D want_separate_host_toolset=1 -D angle_enable_gl=0 -D qtwe_process_name_debug=QtWebEngineProcess -D qtwe_process_name_release=QtWebEngineProcess -D disable_glibcxx_debug=1 -D remove_webcore_debug_symbols=1 -D remove_v8base_debug_symbols=1 -D disable_fatal_linker_warnings=1 -D sysroot="/home/jhbr/raspi/sysroot" -D CXX="/home/jhbr/raspi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-g++" -D target_arch=arm -D arm_arch="armv8-a" -D arm_tune="cortex-a53" -D arm_float_abi="hard" -D arm_version="8" -D arm_fpu="crypto-neon-fp-armv8" -D arm_neon=1 -D release_optimize=s -D debug_optimize=s -D release_unwind_tables=0 -D enable_spellcheck=1. using python: /usr/bin/python version: 2.7.12 Using extra options found in /home/jhbr/raspi/src/qt5.8/qtwebengine/src/core/qtwebengine_extras.gypi Using extra options found in /home/jhbr/raspi/build/qt5.8/qtwebengine/src/core/qmake_extras.gypi Updating projects from gyp files... gyp: name 'arm_thumb' is not defined while evaluating condition 'arm_thumb==1' in /home/jhbr/raspi/src/qt5.8/qtwebengine/src/core/resources/resources.gyp gyp: name 'arm_thumb' is not defined while evaluating condition 'arm_thumb==1' in /home/jhbr/raspi/build/qt5.8/qtwebengine/src/core/core_generated.gyp Project ERROR: -- running gyp_qtwebengine failed -- Makefile:116: recipe for target 'sub-gyp_run-pro-make_first' failed make[3]: *** [sub-gyp_run-pro-make_first] Error 3 make[3]: Leaving directory '/home/jhbr/raspi/build/qt5.8/qtwebengine/src/core' Makefile:49: recipe for target 'sub-core-make_first' failed make[2]: *** [sub-core-make_first] Error 2 make[2]: Leaving directory '/home/jhbr/raspi/build/qt5.8/qtwebengine/src' Makefile:44: recipe for target 'sub-src-make_first' failed make[1]: *** [sub-src-make_first] Error 2 make[1]: Leaving directory '/home/jhbr/raspi/build/qt5.8/qtwebengine' Makefile:834: recipe for target 'module-qtwebengine-make_first' failed make: *** [module-qtwebengine-make_first] Error 2