raspberry-pi-cross-compilers icon indicating copy to clipboard operation
raspberry-pi-cross-compilers copied to clipboard

Cross compile error with Raspberry Pi4 OS Bullseye

Open PaulPaulaner opened this issue 2 years ago • 1 comments

Hi, I'm following the step-by-step instructions for cross compiling Qt for Raspberry Pi4.

I set up a Raspberry Pi 4 with 32bit Raspberry Pi OS Bullseye. Also I set up a virtual machine with Ubuntu 21.10 as host to cross compile.

On the Pi 4 I can't enable GL (FAKE KMS) with sudo raspi-config (there is no Advanced Options -> A8 GL Driver -> G2 GL (Fake KMS) available). Also the directory /opt/vc is not available.

On the host PC, after the build configure, EGLFS Raspberry Pi is set to yes.

My configure: CROSS_COMPILER_LOCATION=/home/.../rpi4-qt/tools/cross-pi-gcc-10.2.0-2

../qt-everywhere-src-5.15.2/configure -release -opengl es2 -eglfs -device linux-rasp-pi4-v3d-g++ -device-option CROSS_COMPILE=$(echo $CROSS_COMPILER_LOCATION)/bin/arm-linux-gnueabihf- -sysroot ~/rpi4-qt/sysroot/ -prefix /usr/local/qt5.15 -extprefix ~/rpi4-qt/qt5.15 -opensource -confirm-license -skip qtscript -skip qtwayland -skip qtwebengine -nomake tests -make libs -pkg-config -no-gbm -no-use-gold-linker -v -recheck -L$HOME/rpi4-qt/sysroot/usr/lib/arm-linux-gnueabihf -I$HOME/rpi4-qt/sysroot/usr/include/arm-linux-gnueabihf

I find the issue from WalterPrech, but I can't find and change the configure.json file.

Thank you for helping hand!!

The output where gmake stop's. gmake[7]: *** [Makefile:1266: .obj/qeglfsbrcmintegration.o] Fehler 1 gmake[7]: Verzeichnis „/home/.../rpi4-qt/build/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_brcm“ wird verlassen gmake[6]: *** [Makefile:126: sub-eglfs_brcm-make_first] Fehler 2 gmake[6]: *** Auf noch nicht beendete Prozesse wird gewartet … /home/.../rpi4-qt/tools/cross-pi-gcc-10.2.0-2/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/home/.../rpi4-qt/sysroot/ -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -Wno-format-overflow -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_EGLFS_KMS_SUPPORT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_EGL_NO_X11 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_EGLFSDEVICEINTEGRATION_LIB -DQT_EVENTDISPATCHER_SUPPORT_LIB -DQT_SERVICE_SUPPORT_LIB -DQT_THEME_SUPPORT_LIB -DQT_FONTDATABASE_SUPPORT_LIB -DQT_FB_SUPPORT_LIB -DQT_EGL_SUPPORT_LIB -DQT_INPUT_SUPPORT_LIB -DQT_XKBCOMMON_SUPPORT_LIB -DQT_PLATFORMCOMPOSITOR_SUPPORT_LIB -DQT_VULKAN_SUPPORT_LIB -DQT_KMS_SUPPORT_LIB -DQT_GUI_LIB -DQT_DEVICEDISCOVERY_SUPPORT_LIB -DQT_EDID_SUPPORT_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_support -I. -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/src/plugins/platforms/eglfs/api -I/home/.../rpi4-qt/sysroot//opt/vc/include -I/home/.../rpi4-qt/sysroot//opt/vc/include/interface/vcos/pthreads -I/home/.../rpi4-qt/sysroot//opt/vc/include/interface/vmcs_host/linux -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtEglFSDeviceIntegration -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtEglFSDeviceIntegration/5.15.2 -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtEglFSDeviceIntegration/5.15.2/QtEglFSDeviceIntegration -I../../../../../../include -I../../../../../../include/QtEglFSDeviceIntegration -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtEventDispatcherSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtEventDispatcherSupport/5.15.2 -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtEventDispatcherSupport/5.15.2/QtEventDispatcherSupport -I../../../../../../include/QtEventDispatcherSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtServiceSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtServiceSupport/5.15.2 -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtServiceSupport/5.15.2/QtServiceSupport -I../../../../../../include/QtServiceSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtThemeSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtThemeSupport/5.15.2 -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtThemeSupport/5.15.2/QtThemeSupport -I../../../../../../include/QtThemeSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtFontDatabaseSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtFontDatabaseSupport/5.15.2 -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtFontDatabaseSupport/5.15.2/QtFontDatabaseSupport -I../../../../../../include/QtFontDatabaseSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtFbSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtFbSupport/5.15.2 -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtFbSupport/5.15.2/QtFbSupport -I../../../../../../include/QtFbSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtEglSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtEglSupport/5.15.2 -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtEglSupport/5.15.2/QtEglSupport -I../../../../../../include/QtEglSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtInputSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtInputSupport/5.15.2 -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtInputSupport/5.15.2/QtInputSupport -I../../../../../../include/QtInputSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtXkbCommonSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtXkbCommonSupport/5.15.2 -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtXkbCommonSupport/5.15.2/QtXkbCommonSupport -I../../../../../../include/QtXkbCommonSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtPlatformCompositorSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtPlatformCompositorSupport/5.15.2 -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtPlatformCompositorSupport/5.15.2/QtPlatformCompositorSupport -I../../../../../../include/QtPlatformCompositorSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtVulkanSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtVulkanSupport/5.15.2 -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtVulkanSupport/5.15.2/QtVulkanSupport -I../../../../../../include/QtVulkanSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtKmsSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtKmsSupport/5.15.2 -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtKmsSupport/5.15.2/QtKmsSupport -I../../../../../../include/QtKmsSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtGui/5.15.2 -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtGui/5.15.2/QtGui -I../../../../../../include/QtGui/5.15.2 -I../../../../../../include/QtGui/5.15.2/QtGui -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtGui -I../../../../../../include/QtGui -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtDeviceDiscoverySupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtDeviceDiscoverySupport/5.15.2 -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtDeviceDiscoverySupport/5.15.2/QtDeviceDiscoverySupport -I../../../../../../include/QtDeviceDiscoverySupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtEdidSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtEdidSupport/5.15.2 -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtEdidSupport/5.15.2/QtEdidSupport -I../../../../../../include/QtEdidSupport -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtCore/5.15.2 -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtCore/5.15.2/QtCore -I../../../../../../include/QtCore/5.15.2 -I../../../../../../include/QtCore/5.15.2/QtCore -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtDBus -I../../../../../../include/QtDBus -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/include/QtCore -I../../../../../../include/QtCore -I.moc -I/home/.../rpi4-qt/sysroot//opt/vc/include -I/home/.../rpi4-qt/sysroot//opt/vc/include/interface/vcos/pthreads -I/home/.../rpi4-qt/sysroot//opt/vc/include/interface/vmcs_host/linux -I/home/.../rpi4-qt/sysroot/usr/include/libdrm -I/home/.../rpi4-qt/sysroot/usr/include/arm-linux-gnueabihf -I/home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/mkspecs/devices/linux-rasp-pi-g++ -o .obj/qeglfskmseventreader.o /home/.../rpi4-qt/qt-everywhere-src-5.15.2/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_support/qeglfskmseventreader.cpp rm -f libqeglfs-x11-integration.so /home/.../rpi4-qt/tools/cross-pi-gcc-10.2.0-2/bin/arm-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/home/.../rpi4-qt/sysroot/ -Wl,--no-undefined -Wl,-O1 -Wl,-z,origin -Wl,-rpath,$ORIGIN/../../lib -Wl,-rpath-link,/home/.../rpi4-qt/sysroot/opt/vc/lib -Wl,-rpath-link,/home/.../rpi4-qt/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/home/.../rpi4-qt/sysroot/lib/arm-linux-gnueabihf -shared -o libqeglfs-x11-integration.so .obj/qeglfsx11main.o .obj/qeglfsx11integration.o -L/home/.../rpi4-qt/sysroot//opt/vc/lib -L/home/.../rpi4-qt/sysroot/usr/lib/arm-linux-gnueabihf /home/.../rpi4-qt/build/qtbase/lib/libQt5EglFSDeviceIntegration.so /home/.../rpi4-qt/build/qtbase/lib/libQt5EventDispatcherSupport.a -L/home/.../rpi4-qt/sysroot//usr/lib/arm-linux-gnueabihf -lgthread-2.0 -lglib-2.0 /home/.../rpi4-qt/build/qtbase/lib/libQt5ServiceSupport.a /home/.../rpi4-qt/build/qtbase/lib/libQt5ThemeSupport.a /home/.../rpi4-qt/build/qtbase/lib/libQt5FontDatabaseSupport.a -lfontconfig -lfreetype -lz /home/.../rpi4-qt/build/qtbase/lib/libQt5FbSupport.a /home/.../rpi4-qt/build/qtbase/lib/libQt5EglSupport.a -lEGL /home/.../rpi4-qt/build/qtbase/lib/libQt5InputSupport.a -lmtdev -linput /home/.../rpi4-qt/build/qtbase/lib/libQt5XkbCommonSupport.a /home/.../rpi4-qt/build/qtbase/lib/libQt5PlatformCompositorSupport.a /home/.../rpi4-qt/build/qtbase/lib/libQt5VulkanSupport.a /home/.../rpi4-qt/build/qtbase/lib/libQt5Gui.so /home/.../rpi4-qt/build/qtbase/lib/libQt5DeviceDiscoverySupport.a -ludev /home/.../rpi4-qt/build/qtbase/lib/libQt5DBus.so /home/.../rpi4-qt/build/qtbase/lib/libQt5Core.so -lGLESv2 -lpthread -lX11-xcb -lxcb -lXext -lX11 -lm -ldl -lxkbcommon -lEGL
mv -f libqeglfs-x11-integration.so ../../../../../../plugins/egldeviceintegrations/libqeglfs-x11-integration.so gmake[7]: Verzeichnis „/home/.../rpi4-qt/build/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_x11“ wird verlassen rm -f libQt5EglFsKmsSupport.so.5.15.2 libQt5EglFsKmsSupport.so libQt5EglFsKmsSupport.so.5 libQt5EglFsKmsSupport.so.5.15 /home/.../rpi4-qt/tools/cross-pi-gcc-10.2.0-2/bin/arm-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/home/.../rpi4-qt/sysroot/ -Wl,--no-undefined -Wl,--version-script,QtEglFsKmsSupport.version -Wl,-O1 -Wl,-z,origin -Wl,-rpath,$ORIGIN -Wl,-rpath-link,/home/.../rpi4-qt/sysroot/opt/vc/lib -Wl,-rpath-link,/home/.../rpi4-qt/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/home/.../rpi4-qt/sysroot/lib/arm-linux-gnueabihf -shared -Wl,-soname,libQt5EglFsKmsSupport.so.5 -o libQt5EglFsKmsSupport.so.5.15.2 .obj/qeglfskmsintegration.o .obj/qeglfskmsdevice.o .obj/qeglfskmsscreen.o .obj/qeglfskmseventreader.o -L/home/.../rpi4-qt/sysroot//opt/vc/lib -L/home/.../rpi4-qt/sysroot/usr/lib/arm-linux-gnueabihf /home/.../rpi4-qt/build/qtbase/lib/libQt5EglFSDeviceIntegration.so /home/.../rpi4-qt/build/qtbase/lib/libQt5EventDispatcherSupport.a -L/home/.../rpi4-qt/sysroot//usr/lib/arm-linux-gnueabihf -lgthread-2.0 -lglib-2.0 /home/.../rpi4-qt/build/qtbase/lib/libQt5ServiceSupport.a /home/.../rpi4-qt/build/qtbase/lib/libQt5ThemeSupport.a /home/.../rpi4-qt/build/qtbase/lib/libQt5FontDatabaseSupport.a -lfontconfig -lfreetype -lz /home/.../rpi4-qt/build/qtbase/lib/libQt5FbSupport.a /home/.../rpi4-qt/build/qtbase/lib/libQt5EglSupport.a -lEGL -lXext -lX11 -lm /home/.../rpi4-qt/build/qtbase/lib/libQt5InputSupport.a -lmtdev -linput /home/.../rpi4-qt/build/qtbase/lib/libQt5XkbCommonSupport.a /home/.../rpi4-qt/build/qtbase/lib/libQt5PlatformCompositorSupport.a /home/.../rpi4-qt/build/qtbase/lib/libQt5VulkanSupport.a /home/.../rpi4-qt/build/qtbase/lib/libQt5KmsSupport.a -lGLESv2 /home/.../rpi4-qt/build/qtbase/lib/libQt5Gui.so /home/.../rpi4-qt/build/qtbase/lib/libQt5DeviceDiscoverySupport.a -ludev /home/.../rpi4-qt/build/qtbase/lib/libQt5EdidSupport.a /home/.../rpi4-qt/build/qtbase/lib/libQt5DBus.so /home/.../rpi4-qt/build/qtbase/lib/libQt5Core.so -lpthread -ldrm -ldl -lxkbcommon -lEGL -lGLESv2
ln -s libQt5EglFsKmsSupport.so.5.15.2 libQt5EglFsKmsSupport.so ln -s libQt5EglFsKmsSupport.so.5.15.2 libQt5EglFsKmsSupport.so.5 ln -s libQt5EglFsKmsSupport.so.5.15.2 libQt5EglFsKmsSupport.so.5.15 rm -f ../../../../../../lib/libQt5EglFsKmsSupport.so.5.15.2 mv -f libQt5EglFsKmsSupport.so.5.15.2 ../../../../../../lib/libQt5EglFsKmsSupport.so.5.15.2 rm -f ../../../../../../lib/libQt5EglFsKmsSupport.so rm -f ../../../../../../lib/libQt5EglFsKmsSupport.so.5 rm -f ../../../../../../lib/libQt5EglFsKmsSupport.so.5.15 mv -f libQt5EglFsKmsSupport.so ../../../../../../lib/libQt5EglFsKmsSupport.so mv -f libQt5EglFsKmsSupport.so.5 ../../../../../../lib/libQt5EglFsKmsSupport.so.5 mv -f libQt5EglFsKmsSupport.so.5.15 ../../../../../../lib/libQt5EglFsKmsSupport.so.5.15 gmake[7]: Verzeichnis „/home/.../rpi4-qt/build/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_support“ wird verlassen gmake[6]: Verzeichnis „/home/.../rpi4-qt/build/qtbase/src/plugins/platforms/eglfs/deviceintegration“ wird verlassen gmake[5]: *** [Makefile:107: sub-deviceintegration-make_first-ordered] Fehler 2 gmake[5]: Verzeichnis „/home/.../rpi4-qt/build/qtbase/src/plugins/platforms/eglfs“ wird verlassen gmake[4]: *** [Makefile:128: sub-eglfs-make_first] Fehler 2 gmake[4]: Verzeichnis „/home/.../rpi4-qt/build/qtbase/src/plugins/platforms“ wird verlassen gmake[3]: *** [Makefile:105: sub-platforms-make_first] Fehler 2 gmake[3]: Verzeichnis „/home/.../rpi4-qt/build/qtbase/src/plugins“ wird verlassen gmake[2]: *** [Makefile:723: sub-plugins-make_first] Fehler 2 gmake[2]: Verzeichnis „/home/.../rpi4-qt/build/qtbase/src“ wird verlassen gmake[1]: *** [Makefile:51: sub-src-make_first] Fehler 2 gmake[1]: Verzeichnis „/home/.../rpi4-qt/build/qtbase“ wird verlassen gmake: *** [Makefile:85: module-qtbase-make_first] Fehler 2

PaulPaulaner avatar Apr 12 '22 14:04 PaulPaulaner

I guess we need additional instructions for pi 4 since FAKE KMS might be no longer available for the same. I'll try to arrange pi4(unfortunately don't have it right now) from somewhere and work on this issue as soon as possible.

abhiTronix avatar Apr 12 '22 14:04 abhiTronix