akhilesh kumar <akhipa...@...> writes:

> 
> 
> Hi All, I have compiled my simple "hello world"  application from android arm 
tool chain (mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin) $ agcc 
hello.c -o helloNow I  am trying to run hello world application on android 
emulator form using sdcard mount . and I am getting the following error # sh 
/sdcard/hello/sdcard/hello: 1: Syntax error: word unexpected (expecting 
")")please guide me how to resolve this problem.   -- Thanks,Akhilesh 
> 

First of all, just in case, compile your programs with -static like so:
./agcc.pl -static -o hello hello.c

Then, on the android device, the file needs to be moved to a directory where it 
can be exected from; /system/xbin for example:
mv /mnt/sdcard/hello /system/xbin/hello

Now do the chmod wizardry:
chmod +x /system/xbin/hello

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to