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
rcmaniac25
Posts: 1,804
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.2174, Z10 (STL100-3)-10.3.0.700 Dev OS, Z30 (STA100-5)-10.3.0.700 Dev OS, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Building PlayBook OS 2.0 apps within BlackBerry 10 NDK

[ Edited ]

I downloaded the BlackBerry 10 NDK (Beta) so I could work with Cascades. I know Cascades is not avaliable for BlackBerry PlayBook OS 2.0.

 

I got some errors telling me that the functions I was looking for were avaliable in a different library and to use that. I realized that BlackBerry 10 has a library called "libm" that it kept wanting me to use. I can't because it's not on the PlayBook.

 

I know that the NDK has an option to change which SDK I want to use.

 

I changed the SDK settings for the specified projects to use NDK 2.0 instead of NDK 10. The libm errors are now gone. But now when I try to compile I get the following error:

 

cc: spawn of C:\bbndk-2.0.0\host\win32\x86\usr\lib\gcc\i486-pc-nto-qnx8.0.0\4.6.3\cc1 failed: No such file or directory

 I know this library (minus the bbndk-2.0.0 portion) exists in the NDK beta, but in NDK 2.0 it is an older version.

 

How do I compile a PlayBook compatible app/library within the BlackBerry 10 NDK?

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Please use plain text.
Developer
streak81
Posts: 204
Registered: ‎08-09-2010
My Device: 9930, PlayBook
My Carrier: Verizon Wireless

Re: Building PlayBook OS 2.0 apps within BlackBerry 10 NDK

Hi RCManiac,

 

the documentation for setting up the environment says you need the dev alpha device (or simulator):
https://bdsc.webapps.blackberry.com/cascades/documentation/getting_started/setting_up.html

 

"Download and install the simulator

If you have a BlackBerry 10 Alpha device, you don't need a simulator. But if you don't have a device, you'll need the BlackBerry 10 Dev Alpha Simulator to test your applications."

 

my guess is we will need to wait to get a playbook dev os build that will support the new frameworks.

 

Please use plain text.
Developer
falo
Posts: 97
Registered: ‎05-12-2009
My Device: PlayBook
My Carrier: 3

Re: Building PlayBook OS 2.0 apps within BlackBerry 10 NDK

Unable to get time to play with this until the weekend :smileysad: [sadface offset by one of those evenings being a wander to the cinema to watch The Avengers]

So can we deploy from the Native SDK for tablets to the BB10 simulator or do we need to run two IDE installations in parallel?
-------
You can find me (sporadically) writing and developing at http://floor4.co.uk and gaming at http://uk-tf.co.uk
My Apps: Flip!
Please use plain text.
Developer
rcmaniac25
Posts: 1,804
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.2174, Z10 (STL100-3)-10.3.0.700 Dev OS, Z30 (STA100-5)-10.3.0.700 Dev OS, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: Building PlayBook OS 2.0 apps within BlackBerry 10 NDK

That may be true for the BlackBerry 10 SDK, but I can choose between the BlackBerry 10 SDK and the PlayBook 2.0 SDK.

It's a compiling/linking issue, if I can compile and link with the PlayBook 2.0 SDK then it should work on the current PlayBook.
---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Please use plain text.
Contributor
juergen0815
Posts: 30
Registered: ‎02-23-2012
My Device: PlayBook
My Carrier: Bell

Re: Building PlayBook OS 2.0 apps within BlackBerry 10 NDK

[ Edited ]
You have an i486-pc-nto-qnx8.0.0 compiler in your PB 2.0 SDK? I would be surprised. Either you copy this from the BB10 SDK or you have your QCC environments set wrong. I am sure PB OS is not QNX8.0 either...
Please use plain text.
Developer
rcmaniac25
Posts: 1,804
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.2174, Z10 (STL100-3)-10.3.0.700 Dev OS, Z30 (STA100-5)-10.3.0.700 Dev OS, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: Building PlayBook OS 2.0 apps within BlackBerry 10 NDK

Nope. That's the issue. The environmental variables for the BlackBerry 10 NDK point to the BB10 OS and compiler. This is the case even if I tell it to use the PlayBook 2.0 SDK (and thus, it "should" use that OS and compiler).
---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Please use plain text.
Contributor
juergen0815
Posts: 30
Registered: ‎02-23-2012
My Device: PlayBook
My Carrier: Bell

Re: Building PlayBook OS 2.0 apps within BlackBerry 10 NDK

your ndk points to bbndk 2.0, but your compiler is still set to bb10 ndk. I don't have access to my computer right now. I can try to take a look at this later.. must be some global environment vars which are not set right. Check QNX_TARGET and HOST...
Please use plain text.
Developer
rcmaniac25
Posts: 1,804
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.2174, Z10 (STL100-3)-10.3.0.700 Dev OS, Z30 (STA100-5)-10.3.0.700 Dev OS, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: Building PlayBook OS 2.0 apps within BlackBerry 10 NDK

Correct, I'm using the BB10 NDK, pointing my project to the PB2.0 NDK, but the variables are incorrect and point to the BB10 NDK, causing compile errors.
---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Please use plain text.
Contributor
juergen0815
Posts: 30
Registered: ‎02-23-2012
My Device: PlayBook
My Carrier: Bell

Re: Building PlayBook OS 2.0 apps within BlackBerry 10 NDK

Try this:
qcc -V4.4.2,gcc_ntoarmv7le_cpp -set-default

This will set the default compiler.
Please use plain text.
Developer
rcmaniac25
Posts: 1,804
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.2174, Z10 (STL100-3)-10.3.0.700 Dev OS, Z30 (STA100-5)-10.3.0.700 Dev OS, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: Building PlayBook OS 2.0 apps within BlackBerry 10 NDK

Where would set this (note: I am using a managed build, not make file).
---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Please use plain text.