|
From: | Lee Fisher |
Subject: | Re: [gnugo-devel] gnugo for Android |
Date: | Thu, 04 Feb 2010 09:30:06 -0800 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 |
Porting to android == completely rewrite the thing. Android apps are Java and GnuGo is written in C. No knowledge of Linux needed. Androis has just Linux Kernel but not directly exposed to developers. Only through Java API, which is androids own API
There are 2 ways to program to Android, SDK and NDK. For the Android SDK, the target is Java, and not C, so the above advice is true, rewrite it.
The other way is to use the Android NDK, which is for native (C, C++) code, for UNBLOCKED Android systems that can handle NDK-generated code. For that case, it means porting GnuGo's C code to the NDK env, perhaps mainly ensuring it works with the 'BIONIC' C runtime (not GLibC). Then you have a command line Go, and you can get a terminal app and use it. You might want to go further and add a Java UI/GUI, that'll probably require some Binder IPC wrappers from your native code for the Java app to call.
http://developer.android.com/sdk/ndk/1.5_r1/index.html#overview http://groups.google.com/group/android-ndk Hope this helps.
[Prev in Thread] | Current Thread | [Next in Thread] |