1. gpl4all's Avatar
    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 (but any Linux distro will do just fine)
    • All required development tools and development libraries installed
    • BlackBerry Native SDK installed


    Installation of nodejs & 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.

    source: BlackBerry Developer Support Forum post
    Refayah likes this.
    12-27-13 05:49 PM
  2. Lendo's Avatar
    Thanks, this is awesome.
    gpl4all likes this.
    12-27-13 08:06 PM
  3. gpl4all's Avatar
    i manage to fixed, build, and packaged latest bbUI samples from bbUI git to run (initially broken and still som WW 1.0 codes inside the original package.
    and it's all done by using Cordova 3.3.0 CLI only for Linux, no WebWorks command.

    here is the bar: https://www.dropbox.com/s/zhq1018b2l4mc1o/bb10app.bar
    and here is the hacked source: https://www.dropbox.com/s/2yup010lth...bUIsamples.zip

    feel free to build try run and build.
    Refayah likes this.
    12-29-13 07:34 AM
  4. Refayah's Avatar
    Hells yes. Thanks so much!

    Posted via CB10
    01-12-14 09:29 PM
  5. Anusha Chinni's Avatar
    Hi,

    I have developed the sample app by following the same steps as above and it was successful and generated a .bar file. But how can i deploy this bar file in blackberry10 simulator without command line. Can you please help me

    Many Thanks
    09-28-14 10:30 PM

Similar Threads

  1. BB10 Outlook Sync
    By inalambrico in forum Community Reviews
    Replies: 2
    Last Post: 01-13-14, 12:29 AM
  2. Procedure to upgrade the Media Card?
    By pgodden in forum BlackBerry 10 OS
    Replies: 7
    Last Post: 12-29-13, 02:29 AM
  3. CrackBerry Asks: Would you want the ability to theme BlackBerry 10?
    By CrackBerry News in forum CrackBerry.com News Discussion & Contests
    Replies: 1
    Last Post: 12-27-13, 05:29 PM
  4. How to change vibrate settings
    By jason9900 in forum General BlackBerry News, Discussion & Rumors
    Replies: 2
    Last Post: 12-27-13, 03:07 PM
  5. Sweet free puzzle fun with Pot the Ball for BlackBerry 10
    By CrackBerry News in forum CrackBerry.com News Discussion & Contests
    Replies: 0
    Last Post: 12-27-13, 02:40 PM
LINK TO POST COPIED TO CLIPBOARD