executable with NDK build -?

12 views
Skip to first unread message

chcat

unread,
Sep 25, 2010, 7:13:34 AM9/25/10
to android-ndk
Would it be possible to build native executable with NDK build ?

Chris Stratton

unread,
Sep 25, 2010, 11:23:31 AM9/25/10
to android-ndk
With ndk build system? No. With the ndk's gcc, yes.

Please do some web searching for instructions, it's been discussed
many times in many places

It is also not really compatible with the android vision of things
(native code should be a library, not an executable) but it does work
at the moment.

Chris M

unread,
Sep 26, 2010, 2:30:17 PM9/26/10
to android-ndk
Yes. In Android.mk, change the $include (BUILD_STATIC_LIBRARY) to
$include (BUILD_EXECUTABLE).

Once that is done, use 'adb push src dst' to push the executable to
your device/emulator.

Chris
Reply all
Reply to author
Forward
0 new messages