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
Regular Contributor
prathipa84
Posts: 55
Registered: ‎03-14-2012
My Device: RDJ21WW

Unable to release application on target

Hello, 

 

With the new Gold SDK, building and launching te application with the Device-Release, we are unable to launch the application and got the error as "Unable to release application on target"

 

What to do for this problem?? Can u help me to solve from this abouve issue?

 

Thanks..

Retired
kizkasen
Posts: 54
Registered: ‎06-26-2012
My Device: BlackBerry Bold 9900

Re: Unable to release application on target

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

Have you done this:
     - Update the main() declaration in the main.cpp file:
                        int main(int argc, char **argv)
                        Add the Q_DECL_EXPORT symbol before the declaration:

Same issue as http://208.74.204.192/t5/Cascades-Development/app-migrated-to-GOLD-release-but-fails-to-launch-on-de...

 

 

Regular Contributor
prathipa84
Posts: 55
Registered: ‎03-14-2012
My Device: RDJ21WW

Re: Unable to release application on target

Hello,

 

I have given the macro Q_DECL_EXPORT before the declaration of main  and also added the 

 

device {
CONFIG(release, debug|release) {
DESTDIR = o.le-v7
TEMPLATE=lib
QMAKE_CXX_FLAGS += -fvisible
}
CONFIG(debug, debug|release) {
DESTDIR = o.le-v7-g
}
}

 

Stll i cant able to release the application for device-release  target....

 

Thanks

Developer
jasoncheung
Posts: 67
Registered: ‎09-01-2012
My Device: Dev Alpha

Re: Unable to release application on target

I tried all that stuff to migrate my project to the GOLD SDK and I could never build my DEVICE-RELEASE properly.

 

What I did in the end was create new workspace, create a new project and then just copy all my source back in and reconfigure the PRO and Bar-Description file.....

Regular Visitor
weetit
Posts: 1
Registered: ‎01-20-2013
My Device: BBx

Re: Unable to release application on target

For my case, it is an error that found only when QT is trying to compile moc file. 

Eclipse has never showed any error message in this step. 

 

So, I compile it in commandline then error message pop up. And I just fix it.

New Contributor
NNirav
Posts: 3
Registered: ‎01-21-2013
My Device: blackberry curve

Re: Unable to release application on target

Hello ,
From my perspective why don't you try to refresh the SDK.From the QNX momentics IDE click on the update native sdk button.
Then restart the IDE.May be it will help
Developer
StevenKader
Posts: 645
Registered: ‎02-03-2010
My Device: Z10 LE

Re: Unable to release application on target

I found this really good tutorial that may help you :

 

http://www.bbcascades.com/index.php/how-to-s/articles/31-exporting-bar-file-from-cascades-ide


Steven Kader at JaredCo
   Follow me on Twitter    |     Mipixi.com :  Web App for Photo Sharing
Contributor
Sri_yk
Posts: 11
Registered: ‎08-27-2011
My Device: Blackberry Torch

Re: Unable to release application on target

[ Edited ]

Hi,

 

        I think u have already done what ever is mentioned on below link

 

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

 

        Just cross check if you are pointing to correct asset path in the   bar-descriptor.xml file

 

       <configuration name="Device-Release">
       <entryPointType>Qnx/Cascades</entryPointType>
       <platformArchitecture>armle-v7</platformArchitecture>
       <asset path="arm/o.le-v7/lib***ur app**.so" entry="true" type="Qnx/Elf">****urappname**</asset>
    </configuration>

 

Regards,

-Sri...

 

Note: Mark your post as solved, if this helps you