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
Developer
djogon
Posts: 93
Registered: ‎10-29-2012
My Device: Z10
My Carrier: Various

app migrated to GOLD release, but fails to launch on device

I followed the instructions to update existing BETA 4 apps to the latest GOLD release from here

 

https://developer.blackberry.com/cascades/documentation/getting_started/tools/compiling.html

 

updated the .pro file, the main.cpp and the bar-descriptor.xml file appropriately.

 

However - the app fails to launch on the device when I build for Device-Release. Did not change the Device-Debug obviously and that works fine.

 

The error message is "Unable to release application on target"

 

Anyone has a clue what's wrong?

 

Please use plain text.
Developer
borceg
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: app migrated to GOLD release, but fails to launch on device

update your device/simulator.
Please use plain text.
Developer
djogon
Posts: 93
Registered: ‎10-29-2012
My Device: Z10
My Carrier: Various

Re: app migrated to GOLD release, but fails to launch on device

@borceg

 

Why should I update device/simulator? I am testing on the real device?

 

Please use plain text.
Developer
smiley
Posts: 1,449
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: app migrated to GOLD release, but fails to launch on device

Half of my apps don't work with the new OS update.  Arggg :Censored:

Please use plain text.
Developer
Ebscer
Posts: 856
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha
My Carrier: Verizon

Re: app migrated to GOLD release, but fails to launch on device

You may also have to change another line in the bar-descriptor.xml file

 

Find the line that looks like

<configuration id="com.qnx.qcc.toolChain.1120265426" name="Device-Release">
    <platformArchitecture>armle-v7</platformArchitecture>  
    <asset path="arm/o.le-v7/cascadescookbookqml" entry="true"
            type="Qnx/Elf">cascadescookbookqml</asset>
</configuration>

 and change it to

 

<configuration id="com.qnx.qcc.toolChain.1120265426" name="Device-Release">
    <entryPointType>Qnx/Cascades</entryPointType>
    <platformArchitecture>armle-v7</platformArchitecture>  
    <asset path="arm/o.le-v7/libcascadescookbookqml.so" entry="true"
            type="Qnx/Elf">cascadescookbookqml</asset>
</configuration>

 

check the /arm/o.le-v7/ folder to get the exact name of the .so file

 

Also be sure to clean before you build the project. This was able to get everything working for me even when skipping the new workspace steps.

 

With these steps the launch time of my apps was cut in half...


Read my thoughts on BlackBerry Development at news.ebscer.com
Please use plain text.
Developer
ekke
Posts: 1,460
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: app migrated to GOLD release, but fails to launch on device


Ebscer wrote:..... even when skipping the new workspace steps.

 

With these steps the launch time of my apps was cut in half...


I was always wondering why I should use another workspace - so it works without  for you

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Developer
djogon
Posts: 93
Registered: ‎10-29-2012
My Device: Z10
My Carrier: Various

Re: app migrated to GOLD release, but fails to launch on device

@Ebscer

 

using the full library name works - the question is why did RIM, in their instructions, provide wrong information. I don't see why would changing the workspace have anything to do with it.

 

I did create a new workspace and follow the exact instructions. The startup time is really amazing with this configuration though.

Please use plain text.
Contributor
xhotkey
Posts: 48
Registered: ‎09-19-2012
My Device: 9700
My Carrier: China mobile

Re: app migrated to GOLD release, but fails to launch on device

I have the same issue

Done as you said, modified file name to lib*.so, still not working.

Please use plain text.
Developer
djogon
Posts: 93
Registered: ‎10-29-2012
My Device: Z10
My Carrier: Various

Re: app migrated to GOLD release, but fails to launch on device

@xhotkey

Did you make sure you changed the .pro file at the appropriate place and added the export macro in main.cpp ?

 

Please use plain text.
Contributor
xhotkey
Posts: 48
Registered: ‎09-19-2012
My Device: 9700
My Carrier: China mobile

Re: app migrated to GOLD release, but fails to launch on device

I gave up and created a new project.

The pro file became simple:

 

CONFIG += qt warn_on cascades10

include(config.pri)

 

There's no these:

 

device {
    CONFIG(release, debug|release) {
        DESTDIR = o.le-v7
        TEMPLATE=lib
        QMAKE_CXX_FLAGS += -fvisible
    }
 
Anyway, it's running and fast!

 

Please use plain text.