Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Contributor
Amon001
Posts: 7
Registered: ‎12-20-2011
My Device: all
My Carrier: a lot's of them

Can't find the .bar after building my app with Cascades

Hello,

 

After making my app under linux with Cascades, I was able to build it and test it with the simulator.

However I am unable to find how to sign the application or how to get the ".bar" file. I can only find ".so" files located under the "arm" folder.

I already get the signing key and configure the IDE with the following documentation : http://developer.blackberry.com/cascades/documentation/getting_started/setting_up.html#setupsdk

but I was unable to find more documentation about the actual signing step.

 

Also I would also like to know how I can build and sign my app with a command line, so I can configure Hudson for continuous integration.

 

Thanks !

Please use plain text.
Developer
simon_hain
Posts: 15,874
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Can't find the .bar after building my app with Cascades

to get a signed bar file, go to the bar-descriptor and click the "export release build" button.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
New Contributor
Amon001
Posts: 7
Registered: ‎12-20-2011
My Device: all
My Carrier: a lot's of them

Re: Can't find the .bar after building my app with Cascades

Thanks it worked !

 

Now how can I do that with a command line please ?

Please use plain text.
Developer
Zmey
Posts: 1,510
Registered: ‎12-18-2012
My Device: PlayBook, Z10, DAC

Re: Can't find the .bar after building my app with Cascades

[ Edited ]

Hi!

 

Momentics uses .pro files, so it should be possible to build the project by calling qmake with proper parameters.

 

Check the console logs in Momentics to see which commands it's calling:

**** Build of configuration Device-Release for project Test ****

make Device-Release 
cd arm && /Applications/bbndk/host_10_0_9_534/darwin/x86/usr/bin/qmake -spec blackberry-armv7le-qcc ../Test.pro CONFIG+=debug_and_release CONFIG+=device

 

For BAR signing perhaps this thread can help:

http://supportforums.blackberry.com/t5/Native-Development/Can-t-remove-debug-mode-from-QtCreator/m-p...

and the script:

http://supportforums.blackberry.com/t5/Cascades-Development/AppWorld-application-icon-missing-on-con...

These are for Qt Creator, but I think similar approach should work for Momentics as well.

 

When creating AppWorld builds make sure that the BAR file wasn't built in development mode. To do this unpack the BAR with unzip utility and check that the following field is present and is set to 'false' in META-INF/MANIFEST.MF:

 

Application-Development-Mode: false

 

 


Andrey Fidrya, @zmeyc on twitter
Please use plain text.