본문 바로가기

프로그래밍/Android

jni 할때 Edit Configuration 꼭 할 것

jni 할때 Edit Configuration 꼭 할 것


AndroidNDK_javah


${env_var:JAVA_HOME}/bin/javah.exe


${workspace_loc:/magicScan/bin/classes}


-d ${workspace_loc:/magicScan/jni} -classpath

${env_var:ANDROID_SDK}/platforms/android-17/android.jar;

miso.ux_proj.magicscan.MagicScan


magicScan : project name

miso.ux_proj.magicscan.MagicScan : jni 할 class name


주의!!



${CYGWIN_HOME}/bin/bash 


${NDKROOT}/ndk-build NDK_DEBUG=1 V=1


${NDKROOT}/platforms/android-9/arch-arm/usr/include

${NDKROOT}/sources/cxx-stl/gnu-libstdc++/4.6/include

${NDKROOT}/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/include

C:/NVPACK/OpenCV-2.4.5-Tegra-sdk/sdk/native/jni/include


${env_var:JAVA_HOME}/bin/javah.exe


${workspace_loc:/magicScan/bin/classes}


-d ${workspace_loc:/magicScan/jni} -classpath

${env_var:ANDROID_SDK}/platforms/android-17/android.jar;

mono.jni.magicscan.MagicScan