Important: Please read the Qt Code of Conduct -

problem with cross compiling for raspberry pi 4

  • Hello, I am trying to cross compile Qt for my raspberry (I did it before and I had a problem with eglfs I couldn't execute project I got error and the system crashed ```

    Could not queue DRM page flip on screen HDMI (invalid argument)
    but when I use linuxfb it works 
    /Dashboard -platform linuxfb

    but this was not the only thing that forced me to do the cross compilation again I couldn't import QtQuick.Studio.Components 1.0
    couldn't debbug also :(

    So I am trying to do it again and to fix these problems
    I am going to follow this so here is the code

    ubuntu history
      sudo apt-get update
      sudo apt-get upgrade
      sudo bash
      apt-get install gcc git bison python gperf pkg-config
      apt install make
      apt install libclang-dev
      apt install build-essential
      mkdir /opt/qt5pi
      chown ulas:ulas /opt/qt5pi
      cd /opt/qt5pi/
      tar xf gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf.tar.xz 
      export PATH=$PATH:/opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin
      nano ~/.bashrc
      tar xf qt-everywhere-src-5.14.2.tar.xz 
      cat qt-everywhere-src-5.14.2/qtbase/mkspecs/linux-arm-gnueabi-g++/qmake.conf
      rsync -avz pi@ sysroot
      rsync -avz pi@ sysroot/usr
      rsync -avz pi@ sysroot
      rsync -avz pi@ sysroot/usr 
      rsync -avz pi@ sysroot/opt
      mv sysroot/usr/lib/arm-linux-gnueabihf/ sysroot/usr/lib/arm-linux-gnueabihf/
      ln -s sysroot/opt/vc/lib/ sysroot/usr/lib/arm-linux-gnueabihf/
      mv sysroot/usr/lib/arm-linux-gnueabihf/ sysroot/usr/lib/arm-linux-gnueabihf/
      ln -s sysroot/opt/vc/lib/ sysroot/usr/lib/arm-linux-gnueabihf/
      mv sysroot/usr/lib/arm-linux-gnueabihf/ sysroot/usr/lib/arm-linux-gnueabihf/
      ls sysroot/usr/lib/arm-linux-gnueabihf/
      ln -s sysroot/opt/vc/lib/ sysroot/usr/lib/arm-linux-gnueabihf/
      ln -s sysroot/opt/vc/lib/ sysroot/opt/vc/lib/
      ln -s sysroot/opt/vc/lib/ sysroot/opt/vc/lib/
      chmod +x 
      ./ sysroot
      mkdir qt5build
      cd qt5build/
      ../qt-everywhere-src-5.14.2/configure -opengl es2 -device linux-rasp-pi4-v3d-g++ -device-option CROSS_COMPILE=/opt/qt5pi/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /opt/qt5pi/sysroot -prefix /usr/local/qt5pi -opensource -confirm-license -skip qtscript -skip qtwayland -skip qtdatavis3d -nomake examples -make libs -pkg-config -no-use-gold-linker -v
      make -j8
      make install
      cd /opt/qt5pi/
      rsync -avz sysroot/usr/local/qt5pi pi@
      Raspberry pi history
    sudo vi /etc/apt/sources.list
    sudo apt update
    sudo apt full-upgrade
    sudo reboot
    sudo rpi-update
    sudo reboot
    sudo apt-get build-dep qt5-qmake
    sudo apt-get build-dep libqt5webengine-data
    sudo apt-get install libboost1.58-all-dev libudev-dev libinput-dev libts-dev libmtdev-dev libjpeg-dev libfontconfig1-dev 
    sudo apt-get install libssl-dev libdbus-1-dev libglib2.0-dev libxkbcommon-dev libegl1-mesa-dev libgbm-dev libgles2-mesa-dev mesa-common-dev
    sudo apt-get install libasound2-dev libpulse-dev gstreamer1.0-omx libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev  gstreamer1.0-alsa
    sudo apt-get install libvpx-dev libsrtp0-dev libsnappy-dev libnss3-dev
    sudo apt-get install "^libxcb.*"
    sudo apt-get install flex bison libxslt-dev ruby gperf libbz2-dev libcups2-dev libatkmm-1.6-dev libxi6 libxcomposite1
    sudo apt-get install libfreetype6-dev libicu-dev libsqlite3-dev libxslt1-dev libavcodec-dev libavformat-dev libswscale-dev 
    sudo apt-get install libgstreamer0.10-dev gstreamer-tools libraspberrypi-dev libx11-dev libglib2.0-dev 
    sudo apt-get install freetds-dev libsqlite0-dev libpq-dev libiodbc2-dev firebird-dev libjpeg9-dev libgst-dev libxext-dev libxcb1 libxcb1-dev libx11-xcb1 
    sudo apt-get install libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev 
    sudo apt-get install libxcb-sync1 libxcb-sync-dev libxcb-render-util0 libxcb-render-util0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev 
    sudo apt-get install libxcb-glx0-dev libxi-dev libdrm-dev libssl-dev libxcb-xinerama0 libxcb-xinerama0-dev
    sudo apt-get install libatspi-dev libssl-dev libxcursor-dev libxcomposite-dev libxdamage-dev libfontconfig1-dev 
    sudo apt-get install libxss-dev libxtst-dev libpci-dev libcap-dev libsrtp0-dev libxrandr-dev libnss3-dev libdirectfb-dev libaudio-dev
    sudo mkdir /usr/local/qt5pi
    sudo chown pi:pi /usr/local/qt5pi

    can someone tell me if theer is some missing dependencies because when I compiled qt I got this warning

    WARNING: Could not find all necessary libraries for qpa-xcb support in QtWebEngine.

    and eglfs for raspberry pi is not build
    Screenshot from 2020-12-21 15-04-25.png

    can someone please help it's been like 2 weeks that I am trying to make qt work correctly :(

    I am working with raspberry pi o lite so no desktop version