Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14463] BlackBerry: CLI for native module support needs to load shared libraries

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-08-14T16:58:04.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 15 API, 2013 Sprint 15, Release 3.1.2, Release 3.2.0
ComponentsBlackBerry
Labelsblackberry-console, qe-3.1.2, qe-nfc, qe-testadded
ReporterRussell McMahon
AssigneePedro Enrique
Created2013-07-02T17:29:31.000+0000
Updated2013-12-03T20:06:16.000+0000

Description

Test: 1) After building the native modules, put shared library binaries in the modules folder of the project or SDK. The path should be .../modules/blackberry///lib/x86/.so and .../modules/blackberry//lib/arm/.so 2) After running "ti build" look into the application project folder under /Resources/modules, the MY_NATIVE_MODULE should exist.

Comments

  1. Russell McMahon 2013-07-25

    git pr: https://github.com/appcelerator/titanium_mobile_blackberry/pull/133
  2. Russell McMahon 2013-08-13

    Test by following the instructions below: Follow the instructions in TIMOB-14467 to create and build a native module. Copy the module folder to /modules/blackberry. Create a simple Titanium Studio project and edit tiapp.xml to reference the module you created. In the module folder is a simple example JavaScript file that you can replace the the contents of Studio generated app.js to test the module.
  3. Lokesh Choudhary 2013-08-13

    Adding the module in the project in studio & building from studio & CLI is throwing the following errors:
       Path to BlackBerry NDK is: /Applications/bbndk
       [INFO]  Searching for 1 Titanium Module
       [INFO]  Found Titanium module id=bbmodule version=latest platform=blackberry deploy-type=development
       [INFO]  Bundling Titanium Mobile Module bbmodule
       [Command] :source /Applications/bbndk/bbndk-env.sh && make TIAPP_NAME=testapp CPULIST=x86 BB_ROOT=/var/folders/35/nwgw558n55951fnpxmxkjqmr0000gp/T/113713-1163-buaf1y-testapp VARIANTLIST=g 
       
       events.js:72
               throw er; // Unhandled 'error' event
                     ^
       Error: ENOENT, open '/Users/lokeshchoudhary/Desktop/anvil/anvilsdk/modules/blackberry/bbmodule/1.0.0/arm/a.le-v7, x86/a-g/x86/a-g/liblibbbmodule.a.a'
       
    Reopening. Environment: Appcel Studio : 3.1.2.201308091728 Ti SDK : 3.1.2.v20130812225629 Mac OSX : 10.8.4 Alloy : 1.2.0-alpha6 CLI - 3.1.2-alpha win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88
  4. Russell McMahon 2013-08-14

    https://github.com/appcelerator/titanium_mobile_blackberry/pull/161
  5. Pedro Enrique 2013-08-14

    Back port to 3.1.x PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/162
  6. Lokesh Choudhary 2013-08-14

    Verified the fix & installing the app with module does not gives any errors & builds successfully. Thus closing. Environment: Appcel Studio : 3.1.2.201308091728 Ti SDK : 3.1.2.v20130814110620 Mac OSX : 10.8.4 Alloy : 1.2.0-alpha6 CLI - 3.1.2-alpha win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88

JSON Source