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

Web and WebWorks Development

Reply
Developer
Posts: 68
Registered: ‎01-23-2012
My Device: Z10, Q10 & Playbook 64Gb

short guide for Linux developers: using installing cordova 3.2.0-0.4.0 to develop BB10 WebWorks application

This short guide for Linux developers only, might be applicable to Mac with some adjustment [please figure it out yourself]

 

Background:

  • BlackBerry did not support Linux for WebWorks SDK 2 (at least in Beta release)
  • WebWorks SDK 2 Beta using cordova 2.0
  • Linux Hack of WebWorks SDK 2 Beta by BadToyz working find but also using cordova 2.0
  • Latest available cordova version is 3.3.0

So, i decided to try another approach to develop BB10 WebWorks application by abandon BlackBerry WebWorks SDK 2 beta and try to use cordova 3.2.0

 

Reference:

Requirements/Environment:

  • Debian/Linux Wheezy 64
  • All required development tools and development libraries installed
  • BlackBerry Native SDK installed

Installation of nodejs & cordova

  1. Download nodejs from http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gz
  2. Extract nodejs and change dir to nodejs source directory
  3. Compile & install nodejs: ./configure --prefix=/usr ; make -j8 ; make install
  4. Install cordova: npm install -g cordova

Create first dummy project:

  1. Create workspace directory:
    mkdir /usr/src/webworks
  2. Change directory to workspace:
    cd /usr/src/webworks
  3. Create project:
    cordova create hello gpl4all.cordova.hello "Hello Cordova" ; cd hello
  4. Add target device:
    ./platforms/blackberry10/cordova/target add z10 192.168.1.32 -t device -p 82828282 --pin 24242424 (this step is only needed to be done when creating first project, next project will be using same target for me, in this case named: z10)
  5. Add blackberry10 platform to project:cordova platform add blackberry10
  6. Add plugins to project if necessary:
    for plugins in com.blackberry.app com.blackberry.utils org.apache.cordova.geolocation ; do cordova plugin add $plugins ; done
  7. Build project:
    cordova build release -k 82828282
  8. Install application to device:
    ./platforms/blackberry10/cordova/run -d run blackberry10 --target=z10 --devicepass 24242424 --keystorepass 82828282

 

The first project is woks well and i tried to build and install some of WebWorks sample all working as expected, no different behaviour compare to one build and deploy with Linux Hack of WebWorks SDK 2 Beta by BadToyz which is actually BlackBerry WebWorks 2.0 beta modified to help Linux developers.

 

 

Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: short guide for Linux developers: using installing cordova 3.2.0-0.4.0 to develop BB10 WebWorks application

Nice post.  Thanks!

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Highlighted
Developer
Posts: 25
Registered: ‎12-09-2012
My Device: Z10
My Carrier: Congstar Germany

Re: short guide for Linux developers: using installing cordova 3.2.0-0.4.0 to develop BB10 WebWorks application

Hey,

cool thing!

Will report any issues (if any) on Ubuntu 12.04!

BlackBerry Development Advisor
Posts: 757
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: short guide for Linux developers: using installing cordova 3.2.0-0.4.0 to develop BB10 WebWorks application

Awesome, thanks for taking the time to write that up Smiley Happy