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
javayoung
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
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
javayoung
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900

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
javayoung
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900

Re: The simulator issue

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




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

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!