6 messages in com.googlegroups.android-internalsRe: [android-internals] The system va...
FromSent OnAttachments
Diluka Moratuwage21 Jan 2008 03:26 
chenwayne21 Jan 2008 07:03 
Diluka Moratuwage21 Jan 2008 07:22 
chenwayne21 Jan 2008 07:48 
Digit21 Jan 2008 08:42 
Diluka Moratuwage21 Jan 2008 08:51 
Subject:Re: [android-internals] The system variable for android ?
From:chenwayne (dato@gmail.com)
Date:01/21/2008 07:03:46 AM
List:com.googlegroups.android-internals

hi, Diluka Moratuwage: i'v run posix c/c++ program under android platform. if you want to compile c/c++ source for android, you can check the following links: http://www.codesourcery.com/gnu_toolchains/arm/download.html here, you can download the toolchains(select ARM GNU/Linux target, and the platform both dos or linux are all right). compile commands looked like this: $ arm-none-linux-gnueabi-gcc -static hello.c -o hello

copy the binary into the emulator: $ adb push hello/hello data/hello

try to run it manually: $adb shell data/hello Hello, Android!

you can remove the app under the shell: #cd data #rm hello

Diluka Moratuwage wrote:

Hi all, I'm curios about the value (name) of the system, that the compiler is using when building C applications for android. For example, the compiler for windoes, uses WIN32 to specify that the compiling program is for windoes, and so on. (HPUX, as400). So that, inside include files, I need to include system specific header files. Anybody has any ideas ? Thank you.

Thanks, Diluka.