Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13395] Android: native modules broken with android-ndk-r8e

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-04-05T22:54:05.000+0000
Affected Version/sRelease 3.0.0, Release 3.0.1, Release 3.0.2, Release 3.1.0
Fix Version/sRelease 3.1.0, 2013 Sprint 07 Core, 2013 Sprint 07
ComponentsAndroid
Labelsqe-closed-3.1.3
ReporterMatt Langston
AssigneeMatt Langston
Created2013-04-05T04:59:08.000+0000
Updated2014-06-19T12:42:51.000+0000

Description

Google made a change to their build system in NDK version r8e (released March 21st, 2013) which exposed a bug in support/module/android/generated/Android.mk This will affect all customers who upgrade to NDK version r8e on any release of TIMOB going back to 2011-12-06. The fix is simple and I have already submitted a pull request.

Comments

  1. Matt Langston 2013-04-05

    Pull request for master: https://github.com/appcelerator/titanium_mobile/pull/4093
  2. Matt Langston 2013-04-05

    Pull request for backport to 3_1_X: https://github.com/appcelerator/titanium_mobile/pull/4098
  3. Matt Langston 2013-04-05

    To test this fix install android-ndk-r8e and try to build a native Android module - use the template from Studio. It will fail with this error if you build with ant from the command line (you won't see this error in Studio; you'll still get a module build error though):
       
            [exec] In file included from /usr/include/sys/_types.h:33:0,
            [exec]                  from /usr/include/_types.h:27,
            [exec]                  from /usr/include/../include/stddef.h:69,
            [exec]                  from /Users/matt/Documents/Android/android-ndk-r8e/sources/cxx-stl/stlport/stlport/stddef.h:34,
            [exec]                  from /Users/matt/Library/Application Support/Titanium/mobilesdk/osx/3.1.0/android/native/include/v8stdint.h:33,
            [exec]                  from /Users/matt/Library/Application Support/Titanium/mobilesdk/osx/3.1.0/android/native/include/v8.h:41,
            [exec]                  from /Users/matt/Library/Application Support/Titanium/mobilesdk/osx/3.1.0/android/native/include/Proxy.h:11,
            [exec]                  from jni/com.mattlangston.timob_13359_module.ExampleProxy.h:12,
            [exec]                  from jni/com.mattlangston.timob_13359_module.ExampleProxy.cpp:10:
       
    When the fix is applied then the module will build without error.
  4. Olga Romero 2013-09-19

    Closing as fixed for android-ndk-8e Tested with: Appcelerator Studio, build: 3.1.3.201309132456 CLI 1.3.2
       BUILD SUCCESSFUL
       Total time: 9 seconds
       

JSON Source