07-23-2012 11:15 AM
Hi:
I had some problems when I use the qt for playbook SDK.
1.The applications that developed by qr creator is very very big.
The helloworld example is also 80.2M,
Why? I don't know that , I'm so confused.
2.How can I get the *.bar after I finished the application?
Who could tell me? Thanks a lot.
Solved! Go to Solution.
07-23-2012 11:47 AM
>1.The applications that developed by qr creator is very very big.
The helloworld example is also 80.2M,
Why? I don't know that , I'm so confused.
probably because you've included all possible Qt libraries, try to compile with only ones that you really need. For example if you don't use networking there is no reason to include QtNetwork library
>2.How can I get the *.bar after I finished the application?
Just deploy your app to sim/plabook and .bar file will be created for you.
07-23-2012 11:52 AM
thanks very much, let me have a try .
07-23-2012 12:12 PM
I‘m still confused , I haven't included the unuseful libraries , and I checked the application again and again, it also so big. Oh my god.
07-23-2012 12:26 PM
07-23-2012 01:45 PM
Are you building a debug load? If you are including all debug symbols, I expect it will be much larger than a stripped variant.
07-23-2012 05:06 PM - edited 07-24-2012 05:29 AM
Inside your project make new folder called "lib"
Inside that folder put libraries you use , in my Qt Quick projects there are: libQtCore.so.4,libQtDeclarative.so.4,libQtGui
libQtSql.so.4,libQtSvg.so.4,libQtXml.so.4,libQtXml
In your bar-descriptor.xml file replace this line:
<assetpath="%QT_INSTALL_LIBS%">lib</asset>
with
<assetpath="lib">lib</asset>
Now, your .bar file should be around 13MB which is Ok. Of course, put only libraries which you use inside "lib" folder.
07-23-2012 11:39 PM
I think your answer is great.
but I still have some problem.
1. I can't find where to make a new floder, I clicked the rightmouse, it had no.
2.So I make a floder called mylib in C:\ and replace the line with
<assetpath="lib">lib</asset>
and it can build.but when I deploy it, it said that:
java.lang.NullPointerException
at com.qnx.bbt.bar.BARPackager.addSourceRecursivelyWi
at com.qnx.bbt.bar.BARPackager.addSourceRecursivelyWi
at com.qnx.bbt.bar.BARPackager.addSourceRecursivelyWi
at com.qnx.bbt.bar.BARPackager.addProviderSourceFiles
at com.qnx.bbt.nativepackager.BarNativePackager.addPr
at com.qnx.bbt.packager.AbstractPackager.parseDescrip
at com.qnx.bbt.packager.AbstractPackager.doRun(Abstra
at com.qnx.bbt.packager.AbstractPackager.runPackager(
at com.qnx.bbt.nativepackager.BarNativePackager.main(
Error: null
11:37:49: 进程"D:\bbndk-2.1.0-beta1\host\win32\x86\usr\bin\bla
Error while building/deploying project test1 (target: QNX Arm)
When executing step 'Create Bar package'
Could you tell my why please? thanks.
07-24-2012 03:01 AM - edited 07-24-2012 03:10 AM
Make folder "lib" inside your project folder manually, with windows explorer.
You get that error, because your syntax is wrong, line startswith <assetpath.... and ends with <\asset> , thats no valid xml. Over there my syntax is wrong also, space get eaten when i copied. It should be
<asset path="lib">lib</asset>
This will work.
07-24-2012 03:26 AM