Android ndk-build command does nothing -
i have similar question posted here:
android ndk: why ndk-build doesn't generate .so file , new libs folder in eclipse?
...though running windows 7, not mac os. ndk-build command run, gives no error doesn't create .so file (also, since i'm on windows should create .dll , not .so?). tried running command root, jni, src folders etc. got same result; cmd returns prompter after few seconds. ran again jni folder ndk_log=1 parameter see happening. here portion of transcript of log results after running ndk-build in jni folder (after identified platform, etc.)...
android ndk: looking jni/android.mk in /workspace/ndkfooactivity/jni
android ndk: looking jni/android.mk in /workspace/ndkfooactivity
android ndk: found !
android ndk: found project path: /workspace/ndkfooactivity
android ndk: ouput path: /workspace/ndkfooactivity/obj
android ndk: parsing /cygdrive/c/android-ndk-r8/build/core/default-application.mk
android ndk: found app_platform=android-15 in /workspace/ndkfooactivity/project.properties
android ndk: application local targets unknown platform 'android-15'
android ndk: switching android-14
android ndk: using build script /workspace/ndkfooactivity/jni/android.mk
android ndk: application 'local' not debuggable
android ndk: selecting release optimization mode (app not debuggable)
android ndk: adding import directory: /cygdrive/c/android-ndk-r8/sources
android ndk: building application 'local' abi 'armeabi'
android ndk: using target toolchain 'arm-linux-androideabi-4.4.3' 'armeabi' abi
android ndk: looking imported module tag 'cxx-stl/system'
android ndk: probing /cygdrive/c/android-ndk-r8/sources/cxx-stl/system/android.mk
android ndk: found in /cygdrive/c/android-ndk-r8/sources/cxx-stl/system
android ndk: cygwin dependency file conversion script:
...after point runs script mentioned in last line, terminates. ideas? thanks!
set builder. refer following article how that:
http://maxters.net/2011/02/android-ndk-builder-for-eclipse-in-windows/
there "small" change beginning ndk r8 – cygwin not necessary anymore , had trouble when building native libraries cygwin , ndk r8 – there error message cxx-stl...
almost in link above ok, leave arguments in main tab blank , change location to:
${env_var:android_ndk_root}/ndk-build.cmd
i use system variable path android_ndk_root
, can provide full path ndk-build.cmd. also, there no need set variable in environment tab.
set builder way , fine.
just note, android built on top of linux os, if on windows linux libraries .so extension.
Comments
Post a Comment