<div>Looking fairly promising so far. Image size down from 280Mb to 90Mb and only Qt related stuff now seems to be in /usr/lib/</div><div><br></div><div>The font&#39;s seem to be missing though -</div><div>QFontDatabase: Cannot find font directory /usr/lib/fonts - is Qt installed correctly?</div>
<div><br></div><div>We won&#39;t need all the fonts in any case but would you expect them to have been pulled in automatically ?</div><div><br></div><div>Here&#39;s what I now have in /usr/lib/libQt*</div><div><br></div><div>
<div>-rwxr-xr-x root       root          3157228 ./usr/lib/libQtCoreE.so.4.8.0  </div><div>-rwxr-xr-x root       root           481476 ./usr/lib/libQtDBusE.so.4.8.0  </div><div>-rwxr-xr-x root       root          3571644 ./usr/lib/libQtDeclarativeE.so.4.8.0  </div>
<div>-rwxr-xr-x root       root          9643544 ./usr/lib/libQtGuiE.so.4.8.0  </div><div>-rwxr-xr-x root       root          1231712 ./usr/lib/libQtNetworkE.so.4.8.0  </div><div>-rwxr-xr-x root       root          2507000 ./usr/lib/libQtScriptE.so.4.8.0  </div>
<div>-rwxr-xr-x root       root           217564 ./usr/lib/libQtSqlE.so.4.8.0  </div><div>-rwxr-xr-x root       root           247056 ./usr/lib/libQtXmlE.so.4.8.0  </div><div>-rwxr-xr-x root       root          4412572 ./usr/lib/libQtXmlPatternsE.so.4.8.0  </div>
</div><div><br></div><div>Total approx 25Mb there.</div><div><br></div><div>Pretty sure I need the first 3, but not sure about the rest. Does that look about right to you size wise ? We&#39;re just trying to tie down flash sizes at the moment and want to get a fairly accurate estimate for Qt.</div>
<div><br></div><div>I guess also at some point we might want to switch to Qt5. Is that comparable in size ?</div><div><br></div><br><br><div class="gmail_quote">On 10 June 2013 13:17, Paul Eggleton <span dir="ltr">&lt;<a href="mailto:paul.eggleton@linux.intel.com" target="_blank">paul.eggleton@linux.intel.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Monday 10 June 2013 12:19:48 John Stirling wrote:<br>
&gt; The Qt application (qtui) is compiled and has some C++, some QML and needs<br>
&gt; to use dbus. I am kicking it off via &#39;./qtui -qws&#39;.<br>
&gt;<br>
&gt; So basically if I had this -<br>
&gt;<br>
&gt; IMAGE_INSTALL += &quot; \<br>
&gt; qt4-embedded \<br>
&gt; qtui \<br>
&gt; &quot;<br>
&gt;<br>
&gt; You suggest just cutting it down to<br>
&gt;<br>
&gt; IMAGE_INSTALL += &quot; \<br>
&gt; qtui \<br>
&gt; &quot;<br>
&gt; and it should work itself out ?<br>
<br>
</div>Apart from plugins and anything else that your application doesn&#39;t get<br>
directly linked to, yes.<br>
<div class="im"><br>
&gt; I am not entirely sure on the &#39;inherit qt4e&#39; line.<br>
<br>
</div>You do want this here, yes.<br>
<div class="im"><br>
&gt; SRC_URI = &quot;git://${SOURCE_REPO}/git/${PN}.git;protocol=ssh;tag=${PV}&quot;<br>
<br>
</div>I think you probably should specify SRCREV here, even if it&#39;s SRCREV =<br>
&quot;${AUTOREV}&quot; to build the latest version on the specified branch. For tags that<br>
won&#39;t change, typically we recommend that you specify the full sha1 hash in<br>
SRCREV and then the system knows it doesn&#39;t need to query the git server to<br>
get the current hash corresponding to the tag.<br>
<div class="im"><br>
&gt; PROVIDES = &quot;${PN}_${PV}&quot;<br>
<br>
</div>This should not be necessary.<br>
<br>
&gt; DEPENDS = &quot;qt4-embedded&quot;<br>
<br>
This is already done for you by inheriting qt4e.<br>
<br>
&gt; RPROVIDES = &quot;qtui_${PV}&quot;<br>
<br>
This should not be necessary either.<br>
<br>
&gt; PACKAGES=&quot;${PN}&quot;<br>
<br>
Unless you have a good reason to do this I would recommend not doing so; the<br>
standard package splitting should work for most situations and for those where<br>
it needs to be tweaked slightly that can be done fairly easily.<br>
<div class="im"><br>
&gt; FILES_${PN} += &quot;/root/qtui /usr/share/reciva/qml/qtui<br>
&gt; ${sysconfdir}/dbus-1/system.d/&quot;<br>
<br>
</div>Typically you would install binaries such as this to ${bindir} rather than<br>
/root.<br>
<div class="HOEnZb"><div class="h5"><br>
Cheers,<br>
Paul<br>
<br>
--<br>
<br>
Paul Eggleton<br>
Intel Open Source Technology Centre<br>
</div></div></blockquote></div><br>