[TIMOB-6553] Android: Modules: Unable to build Bump module
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-12-13T16:43:56.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | Sprint 2011-50, Release 1.8.0.1, Release 2.0.0 |
Components | Android |
Labels | branch-v8, merge-1.8.0.1, verified-1.8.0.1 |
Reporter | Jeff English |
Assignee | Bill Dawson |
Created | 2011-12-09T17:52:02.000+0000 |
Updated | 2012-10-17T14:53:58.000+0000 |
Description
Building the Bump 2.0 module for Android throws an error during the build.
The build output is as follows:
JEnglish-MBP:bump jenglish$ ant
Buildfile: /Users/jenglish/titanium_mobile_modules/android/bump/build.xml
init:
[mkdir] Created dir: /Users/jenglish/titanium_mobile_modules/android/bump/build/classes
[mkdir] Created dir: /Users/jenglish/titanium_mobile_modules/android/bump/dist
process.annotations:
[mkdir] Created dir: /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/json
[javac] Compiling 2 source files to /Users/jenglish/titanium_mobile_modules/android/bump/build/classes
[javac] Note: [KrollBindingGen] Running Kroll binding generator.
[javac] Note: [KrollBindingGen] No binding data found, creating new data file: org.appcelerator.titanium.bindings/bump.json
[javac] Note: [KrollBindingGen] Found binding for module bump
[javac] Note: [KrollBindingGen] Generating JSON: /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/json/org/appcelerator/titanium/bindings/bump.json
[javac] warning: The following options were not recognized by any processor: '[kroll.checkTiContext]'
[javac] Note: /Users/jenglish/titanium_mobile_modules/android/bump/src/ti/modules/titanium/bump/BumpModule.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
generate.rhino.bindings:
[java] Generating /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/java/ti/bump/BumpModulePrototype.java
[java] Generating /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/java/bumpGeneratedBindings.java
generate.rhino.idswitch:
[echo] Generating IDs for /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/java/bumpGeneratedBindings.java
[echo] Generating IDs for /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/java/ti/bump/BumpModulePrototype.java
generate.v8.bindings:
[java] Generating /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/jni/ti.bump.BumpModule.h
[java] Generating /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/jni/ti.bump.BumpModule.cpp
generate.bindings:
pre.compile:
ndk.build:
[copy] Copying 1 file to /Users/jenglish/titanium_mobile_modules/android/bump/build/generated
[copy] Copying 1 file to /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/jni
[exec] jni/Android.mk:24: warning: overriding commands for target /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/KrollGeneratedBindings.cpp'
[exec] jni/Android.mk:24: warning: ignoring old commands for target
/Users/jenglish/titanium_mobile_modules/android/bump/build/generated/KrollGeneratedBindings.cpp'
[exec] jni/Android.mk:27: warning: overriding commands for target /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/BootstrapJS.cpp'
[exec] jni/Android.mk:27: warning: ignoring old commands for target
/Users/jenglish/titanium_mobile_modules/android/bump/build/generated/BootstrapJS.cpp'
[exec] Compile++ thumb : ti.bump <= ti.bump.BumpModule.cpp
[exec] gperf -L C++ -E -t "/Users/jenglish/titanium_mobile_modules/android/bump/build/generated/KrollGeneratedBindings.gperf" > "/Users/jenglish/titanium_mobile_modules/android/bump/build/generated/KrollGeneratedBindings.cpp"
[exec] "/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/module/android/js2c.py" "/Users/jenglish/titanium_mobile_modules/android/bump/build/generated/BootstrapJS.cpp" "/Users/jenglish/titanium_mobile_modules/android/bump/build/generated/bootstrap.js"
[exec] Compile++ thumb : ti.bump <= BumpBootstrap.cpp
[exec] In file included from jni/../BumpBootstrap.cpp:17:
[exec] /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/KrollGeneratedBindings.gperf:13: warning: declaration 'struct titanium::bindings::BindEntry' does not declare anything
[exec] jni/../BumpBootstrap.cpp: In function 'v8::Handle<v8::Value> Bump_getBinding(const v8::Arguments&)':
[exec] jni/../BumpBootstrap.cpp:47: error: '::BumpBindings' has not been declared
[exec] jni/../BumpBootstrap.cpp: In function 'void Bump_dispose()':
[exec] jni/../BumpBootstrap.cpp:92: error: '::BumpBindings' has not been declared
[exec] make: *** [/Users/jenglish/titanium_mobile_modules/android/bump/build/generated/obj/local/armeabi/objs/ti.bump/__/BumpBootstrap.o] Error 1
BUILD FAILED
/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/module/android/build.xml:226: exec returned: 2
Tested with OSX 10.6.8 with 1.8.0.1.RC3, Builds Successfully, need to verify in 1.9.0 before closing
Closing bug. Already verified fix on 1.8.0.1
Any ideas what I could be doing wrong if I am still experiencing this error with SDK 2.1.2 (Android V8) on windows 7 ? This is the log from building my module:
I built the same module code against SDK 2.0.2 and it built fine. strange.