Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Unable to run cross compiled GUI applications RPI
Forum Updated to NodeBB v4.3 + New Features

Unable to run cross compiled GUI applications RPI

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 462 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Omni_Philm
    wrote on last edited by
    #1

    Hello all,
    title says it all. Basically, I am setting up my Qt desktop environment to perform remote debugging on my RPI. I am going to assume that we are famaliar with the process of setting up cross compiling. Although, if you are interested in knowing my steps, feel free to ask and I will share with you my process.

    I build Qt on my desktop for the RPI using the following command:

    /root/qt-everywhere-opensource-src-5.9.5/configure -opengl es2  -device linux-rasp-pi3-vc4-g++ -device-option CROSS_COMPILE=/opt/qt5pi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot /home/phillip/sysroot -prefix /usr/local/qt5pi -opensource -confirm-license -skip qtscript -skip qtwebengine -nomake examples -make libs -pkg-config -no-use-gold-linker -skip qtwebengine -v
    

    I am able to cross-compile and run Qt applications from my desktop on the RPI. I also know that I setup my Qt desktop environment correctly for remote debugging on the Pi.

    THe issue is when I compile a GUI application. Basically, I get an error stating "Could not find DRM Device"

    I looked through the config.summary file and found that EGLFS Raspberry Pi was set to no. I then tried re-running the config file with the following options:

    /root/qt-everywhere-opensource-src-5.9.5/configure -opengl es2 -eglfs -device linux-rasp-pi3-vc4-g++ -device-option CROSS_COMPILE=/opt/qt5pi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot /home/phillip/sysroot -prefix /usr/local/qt5pi -opensource -confirm-license -skip qtscript -skip qtwebengine -nomake examples -make libs -pkg-config -no-use-gold-linker -skip qtwebengine -v
    

    However, the option is still not set.

    So now, I am wondering a couple of questions:

    1. Is EGLFS needed to run GUI applications on the Pi?
      1a) If so, what are the correct config settings to enable EGLFS?
    2. Are my config settings correct to run GUI Applications?

    I should note that I am running the RPI 3B+
    Thank you all and any help is appreciated.

    1 Reply Last reply
    0
    • O Offline
      O Offline
      Omni_Philm
      wrote on last edited by
      #2

      Ok so after some trial and error, I used this configuration in order to build with EGLFS:

      /root/qt-everywhere-opensource-src-5.9.5/configure -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=/opt/qt5pi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot /home/phillip/sysroot -prefix /usr/local/qt5pi -opensource -confirm-license -skip qtscript -skip qtwebengine -nomake examples -make libs -pkg-config -no-use-gold-linker -skip qtwebengine -v
      

      After rebuilding Qt for RPI, editing some missing references in the project, I was able to debug the program on my RPI from the Desktop.

      However, now I am getting an interface with no font and I lost touchscreen support.

      Any thoughts?

      jsulmJ 1 Reply Last reply
      0
      • O Omni_Philm

        Ok so after some trial and error, I used this configuration in order to build with EGLFS:

        /root/qt-everywhere-opensource-src-5.9.5/configure -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=/opt/qt5pi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot /home/phillip/sysroot -prefix /usr/local/qt5pi -opensource -confirm-license -skip qtscript -skip qtwebengine -nomake examples -make libs -pkg-config -no-use-gold-linker -skip qtwebengine -v
        

        After rebuilding Qt for RPI, editing some missing references in the project, I was able to debug the program on my RPI from the Desktop.

        However, now I am getting an interface with no font and I lost touchscreen support.

        Any thoughts?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Omni_Philm said in Unable to run cross compiled GUI applications RPI:

        qt-everywhere-opensource-src-5.9.5

        Why don't you try with a more recent version?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • M Offline
          M Offline
          maxwell31
          wrote on last edited by
          #4

          Which Raspian are you using?

          1 Reply Last reply
          0
          • O Offline
            O Offline
            Omni_Philm
            wrote on last edited by
            #5

            Some good news, I fixed the fonts by manually creating the font folder and transferring the fonts to the RPI.

            In regards to the touchscreen, I ended up observing that the touchscreen worked on the application for the most part. When I use the touchscreen on the app, the touch event occurs in a different location on the interface from where I touched. I want to think that it is a calibration issue but when I exit the application, touchscreen events work as intended. Could it be an issue with EGLFS?

            I am still wondering if I need EGLFS to run or if there is a second option that I can explore.

            Anyways, I am running v4.19.83-v7+

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved