Rasp Pi Cross Compiling not working as expected
-
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!
-
@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? -
@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!