[TIMOB-11763] Android module with JNI won't build
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-11-28T18:34:39.000+0000 |
Affected Version/s | Release 2.1.2, Release 2.1.3, Release 2.1.4 |
Fix Version/s | Release 3.0.0, Release 3.1.0, 2012 Sprint 24, 2012 Sprint 24 Core |
Components | Android |
Labels | android, jni, module |
Reporter | Eric Herrmann |
Assignee | Max Stepanov |
Created | 2012-09-24T11:24:56.000+0000 |
Updated | 2017-03-22T00:12:18.000+0000 |
Description
TC-1041 is not a duplicate of TC-994. I'm having the same problem. The build of an NDK project works with 2.0.2.GA (as shown in TC-994) but not with 2.1.2.GA. It's reproducible using the steps in TC-1041:
https://github.com/fstephany/Titanium-JNI-demo
Clone the repo, modify build.properties and create a 'lib' directory.
ant
Results in:
ndk.build.local:
[mkdir] Created dir: /Projects/Sofi/Lanica/GitHub/Titanium-JNI-demo/build/generated/jni-local
[copy] Copying 2 files to /Projects/Sofi/Lanica/GitHub/Titanium-JNI-demo/build/generated/jni-local
[mkdir] Created dir: /var/folders/3r/zx0k85mm8xj1sk001s7ptkz00000gr/T/eherrman/headphones-generated
[copy] Copying 2 files to /var/folders/3r/zx0k85mm8xj1sk001s7ptkz00000gr/T/eherrman/headphones-generated
[exec] Android NDK: There is no Android.mk under /var/folders/3r/zx0k85mm8xj1sk001s7ptkz00000gr/T//eherrman/headphones-generated/jni
[exec] Android NDK: If this is intentional please define APP_BUILD_SCRIPT to point
[exec] Android NDK: to a valid NDK build script.
[exec] /Projects/android-ndk-r8b/build/core/add-application.mk:49: /var/folders/3r/zx0k85mm8xj1sk001s7ptkz00000gr/T//eherrman/headphones-generated/Application.mk: No such file or directory
[exec] /Projects/android-ndk-r8b/build/core/add-application.mk:143: *** Android NDK: Aborting... . Stop.
BUILD FAILED
/Users/eherrman/Library/Application Support/Titanium/mobilesdk/osx/2.1.2.GA/module/android/build.xml:409: The following error occurred while executing this line:
/Users/eherrman/Library/Application Support/Titanium/mobilesdk/osx/2.1.2.GA/module/android/build.xml:317: exec returned: 2
PR https://github.com/appcelerator/titanium_mobile/pull/3472
Bill is reviewing the PR.
Master PR is merged. Ready for a 3.0.X PR.
Resolving per master merge, but also awaiting 3_0_X.
Closing ticket as fixed.