Unsolved Debian Jessie and Variscite imx6 "Application finieshed with exit code 126"
-
Hello everyone, I do not have much experience in it, work qt 5.7.0 in Debian jessie and I like to run the application in the varix imx6, but I show an error "Application finieshed with exit code 126", could someone tell me, ¿ which is the error ???, thanks regards.
This is my configuraction:
QT versions: /opt/Qt5.7.0/5.7/gcc_64/bin/qmake
Compilers: /opt/poky/1.6.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++
Debuggers: /opt/poky/1.6.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb
-
Hi and welcome to devnet,
What are you doing with your application when that error happens ?
-
This error display me, when run the application, I display this message in the tab Application Output, thanks regards.
the error is:
sh: /opt/sample/bin/sample: can not execute binary file: Exec format error.
sh: /opt/sample/bin/sample: Success
Application finished with code 126.this is image : https://drive.google.com/file/d/0B66wEl1-cjbOa20yOUxtUmR0NVk/view?usp=sharing
-
Are you trying to execute a cross-compiled application on your desktop machine ?
-
Is correct, i trying to execute a cross-complied application bettween Debian Jessie(Desktop) and Variscite imx6(Embedded)
right now i am work and moment of run, this window https://drive.google.com/file/d/0B66wEl1-cjbOODgxb3Y4MUtlZEE/view?usp=sharing
-
@Alexandder666 You cannot execute an ARM binary on your x86 machine. You either execute it on your target device, or you switch to your desktop Qt Kit, build your app using it and then you can execute it on your machine.
-
I work in Debian Jessie x64 machine and target device is a variscite imx6, in the moment to run the application, i show this windows https://drive.google.com/file/d/0B66wEl1-cjbOODgxb3Y4MUtlZEE/view?usp=sharing, regards.
this is my configuration in Debian Jessie Qt 5.7.0:
-
Kits: https://drive.google.com/file/d/0B66wEl1-cjbOa2JfSnBxS3FwMzA/view?usp=sharing, in this window, display symbol of error, which could be the error??
-
Qt Versions: https://drive.google.com/file/d/0B66wEl1-cjbOczFabUNFYmRrWkk/view?usp=sharing
-
Compilers: https://drive.google.com/file/d/0B66wEl1-cjbOMllQTzFSSDFacVk/view?usp=sharing
-
Debugers: https://drive.google.com/file/d/0B66wEl1-cjbOQkRvOXhvNFBqWmM/view?usp=sharing
-
-
Did you first cross-compile Qt ?
Currently it looks like you are trying to use a pre-built x86_64 version of Qt to build your application for ARM.
If you want more details about the error, just move the mouse cursor over the red triangle and wait a few seconds.
-
Yes is my firts cross-compiled, the error display: The compiler "GCC Yocto"(arm-linux-generic-elf-32bit) cannot produce code for the Qt version "Qt 5.7.0 GCC 64bit" (x86-linux-generic-elf-64bit).
I need installer most libraries or how can solve this error?? thanks, regards.
-
You need to first cross-compile Qt itself. Changing the compiler like you do won't influence the fact that you have a library for x86_64 and that you are trying to build an application with an ARM compiler.
However, IIRC, yocto provides already a recipe to build Qt 5.
-
How I can compile qt itself??, you could provide some links, for introduction of Qt cross-compiled, and that operative system you recommend for work cross-compiled?
-
Please do a bit of research, the first answer for a google query of
Qt imx6
returns this page.Depending on your product the manufacturer might even provide something.
When targeting a Linux device, using a desktop Linux is usually the easiest.
-
Ok thank you very much for help me, i will have to study about this, regards.