All of lore.kernel.org
 help / color / mirror / Atom feed
* Recipe for a toolchain with static qt build
@ 2015-04-14 10:40 Isaac Nickaein
  2015-04-14 11:43 ` Otavio Salvador
  0 siblings, 1 reply; 3+ messages in thread
From: Isaac Nickaein @ 2015-04-14 10:40 UTC (permalink / raw)
  To: meta-freescale

Hi,

I've successfully built a toolchain with Qt support using:

bitbake meta-toolchain-qte

And cross-compiled a Qt program. Thanks Yocto for that!


As the built Qt is static, I currently have to copy Qt library
dependencies (e.g. libQtGuiE.so) to the rootfs by hand (is there a
better way?)

Is there any meta-toolchain recipe for Qt static build? I hope that
help me to save a little more space, since the linker will remove
unnecessary codes from each library.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Recipe for a toolchain with static qt build
  2015-04-14 10:40 Recipe for a toolchain with static qt build Isaac Nickaein
@ 2015-04-14 11:43 ` Otavio Salvador
  2015-04-14 15:33   ` Isaac Nickaein
  0 siblings, 1 reply; 3+ messages in thread
From: Otavio Salvador @ 2015-04-14 11:43 UTC (permalink / raw)
  To: Isaac Nickaein; +Cc: meta-freescale

On Tue, Apr 14, 2015 at 7:40 AM, Isaac Nickaein <nickaein.i@gmail.com> wrote:
> Hi,
>
> I've successfully built a toolchain with Qt support using:
>
> bitbake meta-toolchain-qte
>
> And cross-compiled a Qt program. Thanks Yocto for that!
>
>
> As the built Qt is static, I currently have to copy Qt library
> dependencies (e.g. libQtGuiE.so) to the rootfs by hand (is there a
> better way?)
>
> Is there any meta-toolchain recipe for Qt static build? I hope that
> help me to save a little more space, since the linker will remove
> unnecessary codes from each library.

I am not following your view here. What are you intending to accomplish?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Recipe for a toolchain with static qt build
  2015-04-14 11:43 ` Otavio Salvador
@ 2015-04-14 15:33   ` Isaac Nickaein
  0 siblings, 0 replies; 3+ messages in thread
From: Isaac Nickaein @ 2015-04-14 15:33 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale

I am looking for a way to reduce size of my Qt application binary.
Statically compiling the program will result an overall smaller
output.

For instance, I have to copy the whole QtGui.so, QtNetwork.so, etc,
even when I am using very small part of them. However, in static
compilation the linker can eliminate unnecessary codes from the
output.

I am also curios that how it can/should be done to best honest,


On Tue, Apr 14, 2015 at 4:13 PM, Otavio Salvador
<otavio@ossystems.com.br> wrote:
> On Tue, Apr 14, 2015 at 7:40 AM, Isaac Nickaein <nickaein.i@gmail.com> wrote:
>> Hi,
>>
>> I've successfully built a toolchain with Qt support using:
>>
>> bitbake meta-toolchain-qte
>>
>> And cross-compiled a Qt program. Thanks Yocto for that!
>>
>>
>> As the built Qt is static, I currently have to copy Qt library
>> dependencies (e.g. libQtGuiE.so) to the rootfs by hand (is there a
>> better way?)
>>
>> Is there any meta-toolchain recipe for Qt static build? I hope that
>> help me to save a little more space, since the linker will remove
>> unnecessary codes from each library.
>
> I am not following your view here. What are you intending to accomplish?
>
> --
> Otavio Salvador                             O.S. Systems
> http://www.ossystems.com.br        http://code.ossystems.com.br
> Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-14 15:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-14 10:40 Recipe for a toolchain with static qt build Isaac Nickaein
2015-04-14 11:43 ` Otavio Salvador
2015-04-14 15:33   ` Isaac Nickaein

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.