Where to start?

1)  Read the documentation.  http://developer.android.com/sdk/ndk/index.html
2)  Ask on the right mailing list.  http://groups.google.com/group/android-ndk
3)  Get replies publicly so that the information can help other
people.  Asking to have people personally email you answers does not
help others in the same boat.

You provided no information for anyone to help so I'm guessing you are
in windows.  Install cygwin, do what the documentation says, enjoy
your shared object binary.

On Jan 6, 10:14 pm, Rocky <rkjhaw1...@gmail.com> wrote:
> Hi,
>
> but i'm not able to run make command.
>
> can u give me step by step procedure upto this point....
>
> u can send me at rkjhaw1...@gmail.com
>
> thanks in advance..
>
> On Wed, Dec 29, 2010 at 3:13 PM, Anshuman Tripathi <
>
>
>
>
>
>
>
>
>
> anshuman.tripat...@gmail.com> wrote:
> > I am new guy for android. I am trying to use NDK in my Test Project.
> > After getting MAKE APP successfully. I will get .so file but when I
> > started my Test project
> > its not able to load the file. It showing the error like "unsatisfied
> > link error" .
>
> > logcat message like
>
> > : >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
> > D/AndroidRuntime(  275): CheckJNI is ON
> > D/AndroidRuntime(  275): --- registering native functions ---
> > I/ActivityManager(   65): Starting activity: Intent
> > { act=android.intent.action.MAIN
> > cat=[android.intent.category.LAUNCHER] flg=0x10000000
> > cmp=cem.net.NDKDem/.NDKDem }
> > D/AndroidRuntime(  275): Shutting down VM
> > I/AndroidRuntime(  275): NOTE: attach of thread 'Binder Thread #3'
> > failed
> > D/jdwp    (  275): adbd disconnected
> > W/ActivityManager(   65): Activity pause timeout for
> > HistoryRecord{43fa6198 com.android.launcher/
> > com.android.launcher2.Launcher}
> > I/ActivityManager(   65): Start proc cem.net.NDKDem for activity
> > cem.net.NDKDem/.NDKDem: pid=282 uid=10036 gids={}
> > W/dalvikvm(  282): Exception Ljava/lang/UnsatisfiedLinkError; thrown
> > during Lcem/net/NDKDem/NativeLib;.<clinit>
> > D/AndroidRuntime(  282): Shutting down VM
> > W/dalvikvm(  282): threadid=1: thread exiting with uncaught exception
> > (group=0x4001d800)
> > E/AndroidRuntime(  282): FATAL EXCEPTION: main
> > E/AndroidRuntime(  282): java.lang.ExceptionInInitializerError
> > E/AndroidRuntime(  282):        at
> > cem.net.NDKDem.NDKDem.onCreate(NDKDem.java:21)
> > E/AndroidRuntime(  282):        at
> > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> > 1047)
> > E/AndroidRuntime(  282):        at
> > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> > 2627)
> > E/AndroidRuntime(  282):        at
> > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> > 2679)
> > E/AndroidRuntime(  282):        at android.app.ActivityThread.access
> > $2300(ActivityThread.java:125)
> > E/AndroidRuntime(  282):        at android.app.ActivityThread
> > $H.handleMessage(ActivityThread.java:2033)
> > E/AndroidRuntime(  282):        at
> > android.os.Handler.dispatchMessage(Handler.java:99)
> > E/AndroidRuntime(  282):        at android.os.Looper.loop(Looper.java:123)
> > E/AndroidRuntime(  282):        at
> > android.app.ActivityThread.main(ActivityThread.java:4627)
> > E/AndroidRuntime(  282):        at
> > java.lang.reflect.Method.invokeNative(Native Method)
> > E/AndroidRuntime(  282):        at
> > java.lang.reflect.Method.invoke(Method.java:521)
> > E/AndroidRuntime(  282):        at com.android.internal.os.ZygoteInit
> > $MethodAndArgsCaller.run(ZygoteInit.java:868)
> > E/AndroidRuntime(  282):        at
> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
> > E/AndroidRuntime(  282):        at dalvik.system.NativeStart.main(Native
> > Method)
> > E/AndroidRuntime(  282): Caused by: java.lang.UnsatisfiedLinkError:
> > Library ndk_dem not found
> > E/AndroidRuntime(  282):        at
> > java.lang.Runtime.loadLibrary(Runtime.java:461)
> > E/AndroidRuntime(  282):        at
> > java.lang.System.loadLibrary(System.java:
> > 557)
> > E/AndroidRuntime(  282):        at
> > cem.net.NDKDem.NativeLib.<clinit>(NativeLib.java:6)
> > E/AndroidRuntime(  282):        ... 14 more
> > W/ActivityManager(   65):   Force finishing activity
> > cem.net.NDKDem/.NDKDem
> > W/ActivityManager(   65): Activity pause timeout for
> > HistoryRecord{43e3b3b8 cem.net.NDKDem/.NDKDem}
> > I/ActivityManager(   65): Displayed activity com.android.launcher/
> > com.android.launcher2.Launcher: 108535 ms (total 108535 ms)
> > W/ActivityManager(   65): Activity destroy timeout for
> > HistoryRecord{43e3b3b8 cem.net.NDKDem/.NDKDem}
> > D/KeyguardViewMediator(   65): pokeWakelock(5000)
> > I/ARMAssembler(   65): generated
> > scanline__00000077:03515104_00000000_00000000 [ 33 ipp] (47 ins) at
> > [0x330a80:0x330b3c] in 3010726 ns
> > I/Process (  282): Sending signal. PID: 282 SIG: 9
> > I/ActivityManager(   65): Process cem.net.NDKDem (pid 282) has died.
> > I/ARMAssembler(   65): generated
> > scanline__00000177:03515104_00001001_00000000 [ 91 ipp] (114 ins) at
> > [0x330e60:0x331028] in 2971458 ns
> > D/dalvikvm(  125): GC_EXTERNAL_ALLOC freed 1053 objects / 58696 bytes
> > in 187ms
> > I/ActivityManager(   65): Starting activity: Intent
> > { act=android.intent.action.MAIN
> > cat=[android.intent.category.LAUNCHER] flg=0x10200000
> > cmp=net.cem.HelloTest/.HelloTest }
> > I/ActivityManager(   65): Start proc net.cem.HelloTest for activity
> > net.cem.HelloTest/.HelloTest: pid=289 uid=10032 gids={}
> > I/ActivityManager(   65): Displayed activity
> > net.cem.HelloTest/.HelloTest: 2208 ms (total 2208 ms)
> > D/dalvikvm(  125): GC_EXPLICIT freed 211 objects / 10200 bytes in
> > 181ms
> > W/KeyCharacterMap(  289): No keyboard for id 0
> > W/KeyCharacterMap(  289): Using default keymap: /system/usr/keychars/
> > qwerty.kcm.bin
> > I/ActivityManager(   65): Starting activity: Intent
> > { act=android.intent.action.MAIN cat=[android.intent.category.HOME]
> > flg=0x10200000 cmp=com.android.launcher/
> > com.android.launcher2.Launcher }
> > D/dalvikvm(  138): GC_EXPLICIT freed 1170 objects / 84960 bytes in
> > 332ms
> > I/ActivityManager(   65): Starting activity: Intent
> > { act=android.intent.action.MAIN
> > cat=[android.intent.category.LAUNCHER] flg=0x10200000
> > cmp=cem.net.HelloGallery/.HelloGallery }
> > I/ActivityManager(   65): Start proc cem.net.HelloGallery for activity
> > cem.net.HelloGallery/.HelloGallery: pid=295 uid=10035 gids={}
> > I/ActivityManager(   65): Displayed activity
> > cem.net.HelloGallery/.HelloGallery: 3342 ms (total 3342 ms)
> > D/dalvikvm(   65): GREF has increased to 301
> > I/ActivityManager(   65): Starting activity: Intent
> > { act=android.intent.action.MAIN cat=[android.intent.category.HOME]
> > flg=0x10200000 cmp=com.android.launcher/
> > com.android.launcher2.Launcher }
> > I/ActivityManager(   65): Starting activity: Intent
> > { act=android.intent.action.MAIN cat=[android.intent.category.HOME]
> > flg=0x10200000 cmp=com.android.launcher/
> > com.android.launcher2.Launcher }
> > D/dalvikvm(  138): GC_EXPLICIT freed 146 objects / 7560 bytes in 198ms
> > I/ActivityManager(   65): Starting activity: Intent
> > { act=android.intent.action.MAIN
> > cat=[android.intent.category.LAUNCHER] flg=0x10200000
> > cmp=cem.net.NDKDem/.NDKDem }
> > I/ActivityManager(   65): Start proc cem.net.NDKDem for activity
> > cem.net.NDKDem/.NDKDem: pid=303 uid=10036 gids={}
> > D/dalvikvm(   32): GC_EXPLICIT freed 265 objects / 10144 bytes in
> > 840ms
> > D/dalvikvm(   32): GC_EXPLICIT freed 27 objects / 1184 bytes in 343ms
> > D/dalvikvm(   32): GC_EXPLICIT freed 2 objects / 64 bytes in 491ms
> > W/dalvikvm(  303): Exception Ljava/lang/UnsatisfiedLinkError; thrown
> > during Lcem/net/NDKDem/NativeLib;.<clinit>
> > D/AndroidRuntime(  303): Shutting down VM
> > W/dalvikvm(  303): threadid=1: thread exiting with uncaught exception
> > (group=0x4001d800)
> > E/AndroidRuntime(  303): FATAL EXCEPTION: main
> > E/AndroidRuntime(  303): java.lang.ExceptionInInitializerError
> > E/AndroidRuntime(  303):        at
> > cem.net.NDKDem.NDKDem.onCreate(NDKDem.java:21)
> > E/AndroidRuntime(  303):        at
> > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> > 1047)
> > E/AndroidRuntime(  303):        at
> > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> > 2627)
> > E/AndroidRuntime(  303):        at
> > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> > 2679)
> > E/AndroidRuntime(  303):        at android.app.ActivityThread.access
> > $2300(ActivityThread.java:125)
> > E/AndroidRuntime(  303):        at android.app.ActivityThread
> > $H.handleMessage(ActivityThread.java:2033)
> > E/AndroidRuntime(  303):        at
> > android.os.Handler.dispatchMessage(Handler.java:99)
> > E/AndroidRuntime(  303):        at android.os.Looper.loop(Looper.java:123)
> > E/AndroidRuntime(  303):        at
> > android.app.ActivityThread.main(ActivityThread.java:4627)
> > E/AndroidRuntime(  303):        at
> > java.lang.reflect.Method.invokeNative(Native Method)
> > E/AndroidRuntime(  303):        at
> > java.lang.reflect.Method.invoke(Method.java:521)
> > E/AndroidRuntime(  303):        at com.android.internal.os.ZygoteInit
> > $MethodAndArgsCaller.run(ZygoteInit.java:868)
> > E/AndroidRuntime(  303):        at
> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
> > E/AndroidRuntime(  303):        at dalvik.system.NativeStart.main(Native
> > Method)
> > E/AndroidRuntime(  303): Caused by: java.lang.UnsatisfiedLinkError:
> > Library ndk_dem not found
> > E/AndroidRuntime(  303):        at
> > java.lang.Runtime.loadLibrary(Runtime.java:461)
> > E/AndroidRuntime(  303):        at
> > java.lang.System.loadLibrary(System.java:
> > 557)
> > E/AndroidRuntime(  303):        at
> > cem.net.NDKDem.NativeLib.<clinit>(NativeLib.java:6)
> > E/AndroidRuntime(  303):        ... 14 more
> > W/ActivityManager(   65):   Force finishing activity
> > cem.net.NDKDem/.NDKDem
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com<android-developers%2Bunsubs 
> > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Thanks & Regards
>
> Rakesh

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to