issue for SDK to develop Qt application

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

issue for SDK to develop Qt application

1,653 Views
leavs
Contributor IV

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? 

Labels (1)
0 Kudos
Reply
4 Replies

1,470 Views
leavs
Contributor IV

Does everyone can help me for this problem?

0 Kudos
Reply

1,470 Views
gusarambula
NXP TechSupport
NXP TechSupport

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,

0 Kudos
Reply

1,470 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Leavs Lee,

I asked for help and the following steps should aid you:

  1. Run the below application from the terminal : 
    user@user-desktop:~/HelloWorld$ "source /opt/fsl-imx-x11/3.14.52-1.1.1/environment-setup-cortexa7hf-vfp-neon-poky-linux-gnueabi"
  2. Used below sample code snippet by the name of main.cpp
    "

    #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();
    }
    "

  3. Enter the below command to generate the pro file for compiling main.cpp
    user@user-desktop:~/HelloWorld$ qmake -project
  4. Enter the below command to generate the Makefile for Release version
    user@user-desktop:~/HelloWorld$ qmake
                                                      OR
    Enter the below command to generate the Makefile for Debug version
    user@user-desktop:~/HelloWorld$ qmake CONFIG+=debug
  5. Run make command to compile the QT Application.
    user@user-desktop:~/HelloWorld$  make

    You will see the qt application for debug and release version with huge size difference.
Regards,
Gustavo
0 Kudos
Reply

1,470 Views
leavs
Contributor IV

Thanks for your help, but the result is same, the size of debug version and release version is same.

0 Kudos
Reply