Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
03-03-2012 11:01 AM
I've found out that when I do Export->Release build I get signed bar file - good, but when I deploy it manually to Playbook it refuses to start. Apparently the problem is that Qt app need arguments "-platform blackberry" to run properly. When I packaged and sign the same app from command line using blackberry-nativepackager with -arg -platform -arg blackberry I was able to start this signed application on Playbook.
1) When I build Device-Relase and once Run it from NDK it is pushed to Playbook and stays there. Then I can easily click on the icon and start the app. How does the app know about -platform blackberry (which I specified when I ran the project in 'Arguments' section.
2) Why 1) does not happen with signed app?
3) What/where should I specify in NDK to be able to Export->Release Qt application?
PS: by the way the same question about env variable LD_LIBRARY_PATH - how is it set up when the app runs? the same for all apps or there is flexibility to modify this var?
Solved! Go to Solution.
03-04-2012 11:40 AM
In all cases, the "-platform blackberry" part goes into the MANIFEST.MF file as part of the invocation of the main executable.
The problem with the Export Release wizard is that you have to tell it to pass those arguments along to the packager in some fashion.
You can do that in the final page of the wizard in the Packaging Settings -> Advanced tab by using "-arg -platform -arg blackberry".
03-04-2012 12:30 PM
I was stupid enough to hit Finish on the first screen of Export->Release Build instead of hitting Next when we have 'Advanced' options. Looks like it's what I am looking for. Will test with the next release as I opted to use command line tools to create 'relase' with needed arguments for uploading to appworld.