Re: [yocto] Qt build error for Debug and Release mode

2013-06-19 Thread Navani Srivastava
It Worked :)
Thanks


On Wed, Jun 19, 2013 at 2:11 AM, Khem Raj raj.k...@gmail.com wrote:


 On Jun 18, 2013, at 9:15 AM, Navani Srivastava 
 navani.srivast...@gmail.com wrote:

 Hi,

 I am using poky-danny (Poky-8.0). I am facing problem in building Qt
 application.

 When we are building Qt application with “qmake CONFIG+=debug  make” it
 appends “-g” to build the application in debug mode but when we are
 building application in release mode by issuing following command  “qmake
 CONFIG+=release  make”, then also it appends “-g” to it.

 So building Qt application in release mode also results in debug mode
 output.


 While it will be stripped in the end and won't make much difference as far
 as the packages are concerned it probably coming from
 SELECTED_OPTIMIZATION variable which cmake is using to construct the
 release cflags

 You can set DEBUG_FLAGS =  in your local.conf and it will not show up

 Any fix for this?

 Thanks and Regards
 Navani Kamal Srivastava

 ___
 yocto mailing list
 yocto@yoctoproject.org
 https://lists.yoctoproject.org/listinfo/yocto



___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Qt build error for Debug and Release mode

2013-06-18 Thread Navani Srivastava
Hi,

I am using poky-danny (Poky-8.0). I am facing problem in building Qt
application.

 When we are building Qt application with “qmake CONFIG+=debug  make” it
appends “-g” to build the application in debug mode but when we are
building application in release mode by issuing following command  “qmake
CONFIG+=debug  make”, then also it appends “-g” to it.

So building Qt application in release mode also results in debug mode
output.

Any fix for this?

 Thanks and Regards
Navani Kamal Srivastava
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Qt build error for Debug and Release mode

2013-06-18 Thread Marc Ferland
Navani Srivastava navani.srivast...@gmail.com writes:

 Hi,

 I am using poky-danny (Poky-8.0). I am facing problem in building Qt
 application.

  When we are building Qt application with “qmake CONFIG+=debug 
 make” it appends “-g” to build the application in debug mode but when
 we are building application in release mode by issuing following
 command  “qmake CONFIG+=debug  make”, then also it appends “-g” to
 it.

 So building Qt application in release mode also results in debug mode
 output.

 Any fix for this?

You could override the OE_QMAKE_CFLAGS env variable like this:
OE_QMAKE_CFLAGS=-O2 -pipe -feliminate-unused-debug-types make

If you look in the Makefile generated by qmake you should see something
like:

CFLAGS = -pipe -pipe $(OE_QMAKE_CFLAGS) -O2 

This OE_QMAKE_CFLAGS variable is evaluated by make from the
environment. Also look at your environment-setup-* file from the
SDK, this is where all OE_QMAKE variables are sourced from.

Marc
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto