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. Rasp Pi Cross Compiling not working as expected
QtWS25 Last Chance

Rasp Pi Cross Compiling not working as expected

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 263 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.
  • R Offline
    R Offline
    RickyMarquez
    wrote on last edited by
    #1

    Hi!

    I'm developing an application with Qt for Rasp Pi. At the moment I'm cross-compiling it from a Linux machine to the raspberry Pi but I found a strange issue. When I deploy the application from the Linux machine into the Raspberry Pi, it starts the application and it behaves the way I expect it to behave. However when I open the deployed application using just the Raspberry Pi the behaviour changes considerably, some dialogs appear behind other dialogs when they should appear on top of them, warnings look a little different, etc.

    Is there an explanation behind this and how can I make the application work the same way it works when I deploy?

    Thank you so much in advance!

    Pablo J. RoginaP 1 Reply Last reply
    0
    • R RickyMarquez

      Hi!

      I'm developing an application with Qt for Rasp Pi. At the moment I'm cross-compiling it from a Linux machine to the raspberry Pi but I found a strange issue. When I deploy the application from the Linux machine into the Raspberry Pi, it starts the application and it behaves the way I expect it to behave. However when I open the deployed application using just the Raspberry Pi the behaviour changes considerably, some dialogs appear behind other dialogs when they should appear on top of them, warnings look a little different, etc.

      Is there an explanation behind this and how can I make the application work the same way it works when I deploy?

      Thank you so much in advance!

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @RickyMarquez said in Rasp Pi Cross Compiling not working as expected:

      When I deploy the application from the Linux machine into the Raspberry Pi, it starts the application and it behaves the way I expect

      Please explain this a little bit more.
      Are you deploying and running the application from Qt Creator on Linux?

      I open the deployed application using just the Raspberry Pi the behaviour changes considerably

      Again, please explain a little bit more.
      How are you starting your application? from command line?
      Is it using X11 or EGLFS or Wayland?

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      R 1 Reply Last reply
      0
      • Pablo J. RoginaP Pablo J. Rogina

        @RickyMarquez said in Rasp Pi Cross Compiling not working as expected:

        When I deploy the application from the Linux machine into the Raspberry Pi, it starts the application and it behaves the way I expect

        Please explain this a little bit more.
        Are you deploying and running the application from Qt Creator on Linux?

        I open the deployed application using just the Raspberry Pi the behaviour changes considerably

        Again, please explain a little bit more.
        How are you starting your application? from command line?
        Is it using X11 or EGLFS or Wayland?

        R Offline
        R Offline
        RickyMarquez
        wrote on last edited by
        #3

        @Pablo-J-Rogina said in Rasp Pi Cross Compiling not working as expected:

        Please explain this a little bit more.
        Are you deploying and running the application from Qt Creator on Linux?

        I'm deploying the application from QtCreator on Linux and running it on the Raspberry Pi. The main issue is based on a numeric keyboard I designed to allow input from users using a touchscreen, the keyboard is a dialog that appears on top of the parent when a textedit is focused. This stops working when I follow these steps:

        • Cross compile and deploy from the Linux computer to Raspberry Pi.
        • The application automatically starts on the Raspberry Pi.
        • I test the application without closing it. (works as expected)
        • Reset the raspberry Pi and re-open the application directly on the Pi.
        • The application behaves differently, the dialog is shown behind the parent dialog and not in front.
        • Other smaller issues appear, p.e. the design of the warnings dialogs are different.

        I'll upload pictures later today showing the issue.

        Again, please explain a little bit more.
        How are you starting your application? from command line?
        Is it using X11 or EGLFS or Wayland?

        I'm a noob regarding these issuses. I've followed these tutorial:
        https://wiki.qt.io/RaspberryPi2EGLFS
        https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/

        So I guess it is EGLFS.

        Again, Thank you!

        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