5 linux rasp pi3 vc4 g++ X11 EGLFS
Mehran Dehghanian edited this page 4 years ago

Dependencies:

sudo apt-get update
sudo apt-get build-dep qt4-x11
sudo apt-get build-dep libqt5gui5
sudo apt-get install libudev-dev libinput-dev libts-dev libxcb-xinerama0-dev libxcb-xinerama0

sudo apt-get install libegl1-mesa-dev libgbm-dev libgles2-mesa-dev mesa-common-dev
# OpenGL EGL support
sudo apt-get install mesa-utils libegl1-mesa libegl1-mesa-dev libgbm-dev libgbm1 libgl1-mesa-dev libgl1-mesa-dri libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev 


Configuration (vc4):

../configure -release -nomake tests -nomake examples -skip wayland -skip qtscript -skip qtwebengine -device linux-rasp-pi3-vc4-g++ -device-option CROSS_COMPILE=/media/mehran/extra3/Qt5Pi3X11/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot /media/mehran/extra3/Qt5Pi3X11/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix /media/mehran/extra3/Qt5Pi3X11/raspi/qt5pi -hostprefix /media/mehran/extra3/Qt5Pi3X11/raspi/qt5 -v -no-use-gold-linker

Configuration (xcb + old eglfs method):

../configure -release -opengl es2 -make libs -nomake tests -nomake examples -skip wayland -skip qtscript -skip qtwebengine -skip location -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=/media/mehran/extra3/Qt5Pi3X11/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot /media/mehran/extra3/Qt5Pi3X11/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix /media/mehran/extra3/Qt5Pi3X11/raspi/qt5pi -hostprefix /media/mehran/extra3/Qt5Pi3X11/raspi/qt5 -v -no-use-gold-linker

sources:

https://www.raspberrypi.org/forums/viewtopic.php?t=272855

https://wiki.qt.io/RaspberryPi2EGLFS

https://stackoverflow.com/questions/59607191/qt-eglfs-backend-with-mesa-driver-without-x11-xorg

https://www.tal.org/tutorials/building-qt-512-raspberry-pi