I face one issue about using SDK built from yocto. I use the SDK to compile Qt applications, I found that the size of Debug version is similar to Release Version. Follow is my steps.
1. install SDK to /opt/fsl-imx-x11/3.14.52-1.1.1/
2. install Qt5.10.1 in Ubuntu16.04.
3. edit Qt5.10.1/Tools/QtCreator/bin/qtcreator.sh, add follow line in first line of this shell.
source /opt/fsl-imx-x11/3.14.52-1.1.1/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
4. run qtcreator
$ cd Qt5.10.1/Tools/QtCreator/bin/
$ ./qtcreator.sh
5. compile qt application.
I think the size of Release version is small then Debug version, but the result is that the size of Debug version is similar to Release Version. This is the issue.
I use other Qt kit to test, such as TI SDK or X86 toolschain, the result is right (size of release version is small more then debug version).
I think this issue comes from the SDK, does any one can check this issue?
Does everyone can help me for this problem?
Hello Leavs Lee,
I'm inquiring on what could be the reason behind this. Chances are the SDK contains all the debugging information regardless even when selecting the release profile.
I'll let you know of my findings.
Regards,
Hello Leavs Lee,
I asked for help and the following steps should aid you:
#include <qapplication.h>
#include <qpushbutton.h>
int main( int argc, char **argv )
{
QApplication a( argc, argv );
QPushButton hello( "Hello world!", 0 );
hello.resize( 100, 30 );
hello.show();
return a.exec();
}
"
Thanks for your help, but the result is same, the size of debug version and release version is same.