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


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.


Reply
Developer
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
My Carrier: All
Accepted Solution

Closed : The simulator issue

[ Edited ]

Right now, I met a problem that the simulator can not be used for the Cascade project while it is fine for Native SDK project. The IDE always report an error as “Selected binary and target do not match x86”. In target list, the simulator shows connected. I used auto discover to find the simulator.  I have to use device to debug the program now.

 

I am appreciated someone could help me out?

 

I found in there is nothing in the folder of "x86/o-g/" of my project while the setting of debug need to use the asset in that folder:

 <configuration id="com.qnx.qcc.toolChain.1953561384" name="Simulator-Debug">
       <platformArchitecture>x86</platformArchitecture>
       <asset path="x86/o-g/xxxxxx" entry="true" type="Qnx/Elf">xxxxxx</asset>
    </configuration>

 I think that it is the reason. But how can I output the class to the x86/o-g?




p(^_^)q
Good good study, day day up
Developer
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
My Carrier: All

Re: The simulator issue

I have found the solution by searching previous questions.

 

To run your app on the simulator:

- In the Project Explorer view, double-click on the bar-descriptor.xml file, then click the Set from Debug Token button to set author information for the app.

- Set the correct build configuration for the simulator first by right-clicking your project and selecting Build Configurations > Set Active > 4 Simulator-Debug.

- In the Project Explorer view, right-click the project and select Build Project.

- Right-click the project again and select Run As > BlackBerry C/C++ Application.




p(^_^)q
Good good study, day day up
Developer
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
My Carrier: All

Re: The simulator issue

The first step of "Set from debug token" fixed this issue.




p(^_^)q
Good good study, day day up
Highlighted
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: The simulator issue

Glad you found a solution. By the way, there's no need to edit the original post to say "Closed:", and in fact you wouldn't be able to do that after 24h anyway.

Just accepting that second post as a solution has marked the thread as being solved, and that's all you really should do. Thanks!

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!