[TIMOB-14463] BlackBerry: CLI for native module support needs to load shared libraries
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-08-14T16:58:04.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | 2013 Sprint 15 API, 2013 Sprint 15, Release 3.1.2, Release 3.2.0 |
| Components | BlackBerry |
| Labels | blackberry-console, qe-3.1.2, qe-nfc, qe-testadded |
| Reporter | Russell McMahon |
| Assignee | Pedro Enrique |
| Created | 2013-07-02T17:29:31.000+0000 |
| Updated | 2013-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.
git pr: https://github.com/appcelerator/titanium_mobile_blackberry/pull/133
Test by following the instructions below: Follow the instructions in TIMOB-14467 to create and build a native module. Copy the module folder to
Adding the module in the project in studio & building from studio & CLI is throwing the following errors:
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.88Path 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'https://github.com/appcelerator/titanium_mobile_blackberry/pull/161
Back port to 3.1.x PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/162
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