Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2803] Android module with JNI won't build

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2012-07-17T09:11:09.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator Modules
Labelsandroid, jni, module
Reporterjordi domenech
AssigneeMostafizur Rahman
Created2012-07-06T08:01:19.000+0000
Updated2016-03-08T07:47:43.000+0000

Description

Hi, I'm trying to build an Android module with some JNI bindings, but it doesn't build. Build fails in 'ndk.build.local', BTW, it works ok with 2.0.2.GA. It seems like it's trying to find Android.mk inside a 'jni' folder inside the temp folder, look the log: [mkdir] Created dir: /Users/yellow/src/Titanium-JNI-demo/build/generated/jni-local [copy] Copying 2 files to /Users/yellow/src/Titanium-JNI-demo/build/generated/jni-local [mkdir] Created dir: /var/folders/2w/6ng_21751l9806rg7b987rj40000gn/T/yellow/headphones-generated [copy] Copying 2 files to /var/folders/2w/6ng_21751l9806rg7b987rj40000gn/T/yellow/headphones-generated [exec] /opt/android-ndk/build/core/add-application.mk:49: /var/folders/2w/6ng_21751l9806rg7b987rj40000gn/T//yellow/headphones-generatedAndroid NDK: There is no Android.mk under /var/folders/2w/6ng_21751l9806rg7b987rj40000gn/T//yellow/headphones-generated/jni [exec] /Application.mk: No such file or directory [exec] /opt/android-ndk/build/core/add-application.mk:143: *** Android NDK: Aborting... .Android NDK: If this is intentional please define APP_BUILD_SCRIPT to point [exec] Android NDK: to a valid NDK build script. [exec] Stop. Use case: https://github.com/fstephany/Titanium-JNI-demo Clone the repo, modify build.properties and create a 'lib' directory. Hope it helps

Comments

  1. Betty Tran 2012-07-17

JSON Source