Cross compiled application exits with exit code 1 at startup on embedded device
-
Hello everybody.
I cross compiled QT 5.6.0 for ARM (Xilinx zynq70z0) with the following configuration:
./configure -prefix /usr/local/xilinxconf
-device linux-arm-xilinx-zynq-g++
-device-option CROSS_COMPILE=arm-xilinx-linux-gnueabi-
-releaseI 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:
#include <QCoreApplication>
#include <QDebug>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug() << "Hello world!" << endl;
return a.exec();
}
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? -
If you have ldd on your target you can check with
ldd EXE_NAME
whether all libs are there.
-
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?