Unsolved Error Run on Remote Device
-
Hi,
I want to execute a qt application from Ubuntu (ubuntu-17.04-desktop-amd64) to raspberry pi3 (Raspbian).
I add "Generic Linux Device" (Device test successfully).
But when I run application, I have this errors:bash: /home/pi/Test: cannot execute binary file: Exec format error bash: /home/pi/Test: Success Application finished with exit code 126
-
Hi,
Did you check the architecture of your application/Qt version used ?
What do you have if you call
file name_of_your_application
? -
Hi SGaist,
I want to execute a qt application from Ubuntu (ubuntu-18.04-desktop-amd64) to raspberry pi3 (Raspbian).
I add "Generic Linux Device" (Device test successfully).
But when I run application, I have this errors:bash: /home/pi/Test: cannot execute binary file: Exec format error
Application finished with exit code 126Can you please suggest on this ?
file Test ---> shows below message
Test: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=9ba1ba8adb378c2a30e8c683174bb8a5f5d65beb, not stripped -
Likely because you used your desktop Qt version to build your application. You have to use a cross-compiled version of Qt for the RPi3 to build an application that will run on that device.
-
@shivaVMC Raspberry Pi has an ARM CPU not x86. You need to cross compile Qt and your app for ARM.
Take a look at https://medium.com/@au42/the-useful-raspberrypi-cross-compile-guide-ea56054de187 -
@SGaist
Thanks for quick responses.
From https://wiki.qt.io/RaspberryPi2EGLFS#Step_by_step When I run
cd qtbase_5.10/examples/opengl/qopenglwidget
~/raspi/qt5/bin/qmakeI dont find qmake file in ~/raspi/qt5/bin/ directory except fixqt4headers.pl syncqt.pl
I renamed qtbase to qtbase_5.10(Any Issue on renaming,)
-
@shivaVMC Did you cross compile Qt for RPi?
-