Cross compiled application exits with exit code 1 at startup on embedded device
I cross compiled QT 5.6.0 for ARM (Xilinx zynq70z0) with the following configuration:
./configure -prefix /usr/local/xilinxconf
I configured QTCreator on my PC for targeting the just cross-compiled QT version and then I am deploying a simple test program to my embedded device:
int main(int argc, char *argv)
QCoreApplication a(argc, argv);
qDebug() << "Hello world!" << endl;
At run-time the application immediately exits with code 1 (QTCreator application output says “Application finished with exit code 1”). Even attaching the debugger (GDB) I was not able to get any further information. I tried to “strace” my application, but even in this case I can’t find the reason for the application abort…
Can somebody tell me why my application exits with error?
How do you deploy your application?
Do you have all needed libraries on the target?
@jsulm I think I have put all the needed libraries on the device /usr/local/xilinxembedded/lib , the same path as my PC.
If you have ldd on your target you can check with
whether all libs are there.
@jsulm Thanks for reply.
I have execude the ldd command and it says : not a dynamic executable.
Hi and welcome to devnet,
Are you sure you are building your application with the Qt version you cross-compiled ?
@Jerry-Jin Did you execute ldd on the target?
@SGaist Yes,I am sure.
What about the call to ldd that @jsulm asked ?