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. error while runing an cross compiled application : Failed to upload file
Forum Updated to NodeBB v4.3 + New Features

error while runing an cross compiled application : Failed to upload file

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 3 Posters 637 Views 1 Watching
  • 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.
  • aminaA Offline
    aminaA Offline
    amina
    wrote on last edited by amina
    #1

    Hello,

    I cross compiled Qt5.14.2 for my raspberry pi 4 on my ubuntu 18.04

    everytime I run a program this error shows up but fortunately the executable is generated and the application works well , but I didn't understand what does it mean

    qtcreator.png

    can someone please explain to me.

    the os that I am working on it is a lite version so before cross compiling Qt I installed xorg and openbox
    sudo apt-get install --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox

    and the output of my configuration is

    X11 specific:
        XLib ................................. yes
        XCB Xlib ............................. yes
        EGL on X11 ........................... yes
    QPA backends:
      DirectFB ............................... no
      EGLFS .................................. yes
      EGLFS details:
        EGLFS OpenWFD ........................ no
        EGLFS i.Mx6 .......................... no
        EGLFS i.Mx6 Wayland .................. no
        EGLFS RCAR ........................... no
        EGLFS EGLDevice ...................... yes
        EGLFS GBM ............................ yes
        EGLFS VSP2 ........................... no
        EGLFS Mali ........................... no
        EGLFS Raspberry Pi ................... no
        EGLFS X11 ............................ yes
      LinuxFB ................................ yes
      VNC .................................... yes
    

    and but when I tried to execute the application it showed some errors abour DRM ..
    even after exporting these environment variables

    DISPLAY=:0
    QT_QPA_EGLFS_ALWAYS_SET_MODE=1
    QT_QPA_EGLFS_KMS_ATOMIC=1
    XDG_SESSION_TYPE=x11
    

    Thank you in advance

    J.HilkJ 1 Reply Last reply
    0
    • aminaA Offline
      aminaA Offline
      amina
      wrote on last edited by amina
      #5

      I just solved the two problems , I am going to post what I did it may help someone:

      so for the first problem you have to go to the .pro file and replace the target.path with something like that (for me it is /home/pi) else: unix:!android: target.path = /home/pi/$${TARGET}

      after that go to project -> run and in Deployment method add a method
      Projects.png

      and after that build and run your project and it will start working on your raspberry pi.
      I tested this on a Desktop version of OS to make it easier

      and for my lite version I just added a run environment variable QT_QPA_PLATFORM=linuxfb

      so now when running my application from qtcreator it actually lunches it on my raspberry using the framebuffer linuxfb. This is amazing! and now I can start a remote debug !!

      Thank you for helping

      1 Reply Last reply
      1
      • aminaA amina

        Hello,

        I cross compiled Qt5.14.2 for my raspberry pi 4 on my ubuntu 18.04

        everytime I run a program this error shows up but fortunately the executable is generated and the application works well , but I didn't understand what does it mean

        qtcreator.png

        can someone please explain to me.

        the os that I am working on it is a lite version so before cross compiling Qt I installed xorg and openbox
        sudo apt-get install --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox

        and the output of my configuration is

        X11 specific:
            XLib ................................. yes
            XCB Xlib ............................. yes
            EGL on X11 ........................... yes
        QPA backends:
          DirectFB ............................... no
          EGLFS .................................. yes
          EGLFS details:
            EGLFS OpenWFD ........................ no
            EGLFS i.Mx6 .......................... no
            EGLFS i.Mx6 Wayland .................. no
            EGLFS RCAR ........................... no
            EGLFS EGLDevice ...................... yes
            EGLFS GBM ............................ yes
            EGLFS VSP2 ........................... no
            EGLFS Mali ........................... no
            EGLFS Raspberry Pi ................... no
            EGLFS X11 ............................ yes
          LinuxFB ................................ yes
          VNC .................................... yes
        

        and but when I tried to execute the application it showed some errors abour DRM ..
        even after exporting these environment variables

        DISPLAY=:0
        QT_QPA_EGLFS_ALWAYS_SET_MODE=1
        QT_QPA_EGLFS_KMS_ATOMIC=1
        XDG_SESSION_TYPE=x11
        

        Thank you in advance

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #2

        @amina Well its kind of obvious, no ?

        Your project is a cross compiled or at the very least remote deployed, and your target refuses to accept files transferred via SFTP


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        aminaA 1 Reply Last reply
        3
        • J.HilkJ J.Hilk

          @amina Well its kind of obvious, no ?

          Your project is a cross compiled or at the very least remote deployed, and your target refuses to accept files transferred via SFTP

          aminaA Offline
          aminaA Offline
          amina
          wrote on last edited by
          #3

          @J-Hilk but how can I change this please? I am new to Qt..
          knowing that eglfs does not work on my raspberry do I have to use the framebuffer linuxfb when executing the application on the raspberry

          jsulmJ 1 Reply Last reply
          0
          • aminaA amina

            @J-Hilk but how can I change this please? I am new to Qt..
            knowing that eglfs does not work on my raspberry do I have to use the framebuffer linuxfb when executing the application on the raspberry

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

            @amina Your current problem is not related to framebuffer or eglfs. Your problem is that deployment to the device via SFTP does not work. You should first solve this.

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

            1 Reply Last reply
            0
            • aminaA Offline
              aminaA Offline
              amina
              wrote on last edited by amina
              #5

              I just solved the two problems , I am going to post what I did it may help someone:

              so for the first problem you have to go to the .pro file and replace the target.path with something like that (for me it is /home/pi) else: unix:!android: target.path = /home/pi/$${TARGET}

              after that go to project -> run and in Deployment method add a method
              Projects.png

              and after that build and run your project and it will start working on your raspberry pi.
              I tested this on a Desktop version of OS to make it easier

              and for my lite version I just added a run environment variable QT_QPA_PLATFORM=linuxfb

              so now when running my application from qtcreator it actually lunches it on my raspberry using the framebuffer linuxfb. This is amazing! and now I can start a remote debug !!

              Thank you for helping

              1 Reply Last reply
              1

              • Login

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