* Qt build error for Debug and Release mode
[not found] <9BACABF0C6B14A4D8C33B42A795119BE1BA55B7D@POCITMSEXMB05.LntUniverse.com>
@ 2013-06-18 14:28 ` Navani Srivastava
2013-06-18 15:27 ` Marc Ferland
2013-06-18 16:15 ` Navani Srivastava
0 siblings, 2 replies; 5+ messages in thread
From: Navani Srivastava @ 2013-06-18 14:28 UTC (permalink / raw)
To: yocto@yoctoproject.org; +Cc: navani.srivastava@lnties.com
[-- Attachment #1: Type: text/plain, Size: 522 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 577 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Qt build error for Debug and Release mode
2013-06-18 14:28 ` Qt build error for Debug and Release mode Navani Srivastava
@ 2013-06-18 15:27 ` Marc Ferland
2013-06-18 16:15 ` Navani Srivastava
1 sibling, 0 replies; 5+ messages in thread
From: Marc Ferland @ 2013-06-18 15:27 UTC (permalink / raw)
To: yocto
Navani Srivastava <navani.srivastava@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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Qt build error for Debug and Release mode
2013-06-18 14:28 ` Qt build error for Debug and Release mode Navani Srivastava
2013-06-18 15:27 ` Marc Ferland
@ 2013-06-18 16:15 ` Navani Srivastava
2013-06-18 20:41 ` Khem Raj
1 sibling, 1 reply; 5+ messages in thread
From: Navani Srivastava @ 2013-06-18 16:15 UTC (permalink / raw)
To: yocto@yoctoproject.org; +Cc: navani.srivastava@lnties.com
[-- Attachment #1: Type: text/plain, Size: 522 bytes --]
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.
Any fix for this?
Thanks and Regards
Navani Kamal Srivastava
[-- Attachment #2: Type: text/html, Size: 687 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Qt build error for Debug and Release mode
2013-06-18 16:15 ` Navani Srivastava
@ 2013-06-18 20:41 ` Khem Raj
2013-06-19 17:12 ` Navani Srivastava
0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2013-06-18 20:41 UTC (permalink / raw)
To: Navani Srivastava; +Cc: yocto@yoctoproject.org, navani.srivastava@lnties.com
[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]
On Jun 18, 2013, at 9:15 AM, Navani Srivastava <navani.srivastava@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
[-- Attachment #2: Type: text/html, Size: 1832 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Qt build error for Debug and Release mode
2013-06-18 20:41 ` Khem Raj
@ 2013-06-19 17:12 ` Navani Srivastava
0 siblings, 0 replies; 5+ messages in thread
From: Navani Srivastava @ 2013-06-19 17:12 UTC (permalink / raw)
To: Khem Raj; +Cc: yocto@yoctoproject.org, navani.srivastava@lnties.com
[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]
It Worked :)
Thanks
On Wed, Jun 19, 2013 at 2:11 AM, Khem Raj <raj.khem@gmail.com> wrote:
>
> On Jun 18, 2013, at 9:15 AM, Navani Srivastava <
> navani.srivastava@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
>
>
>
[-- Attachment #2: Type: text/html, Size: 2159 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-06-19 17:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <9BACABF0C6B14A4D8C33B42A795119BE1BA55B7D@POCITMSEXMB05.LntUniverse.com>
2013-06-18 14:28 ` Qt build error for Debug and Release mode Navani Srivastava
2013-06-18 15:27 ` Marc Ferland
2013-06-18 16:15 ` Navani Srivastava
2013-06-18 20:41 ` Khem Raj
2013-06-19 17:12 ` Navani Srivastava
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.