[android-porting] Hello World C program using Android Toolchain Issue

2010-05-25 Thread akhilesh kumar
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 hello *Now I am trying to run hello world application on android emulator form using sdcard mount . and I am getting the followin

Re: [android-porting] Hello World C program using Android Toolchain Issue

2010-05-25 Thread Rogério de Souza Moraes
Hi Akhilesh, Post the code that is in the hello.c, it make easier to help you. You can try to compile the program statically: *agcc hello.c -static -o hello* In this way you avoid to have wrong library links. Regards, Rogerio 2010/5/25 akhilesh kumar > > Hi All, > > I have compiled my simpl

Re: [android-porting] Hello World C program using Android Toolchain Issue

2010-05-25 Thread Ashwin Bihari
Why are you trying to execute a C program using SH? That's not going to work, ensure that the /sdcard/hello has the execute permission set, if not, do "chmod 755 /sdcard/hello" and then execute it just as "/sdcard/hello".. Regards -- Ashwin 2010/5/25 Rogério de Souza Moraes : > Hi Akhilesh, > >

Re: [android-porting] Hello World C program using Android Toolchain Issue

2010-05-25 Thread Nils Faerber
akhilesh kumar wrote: > Hi All, Hi! > 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 hello "-Wall -O2" as additional options do in most cases not hurt ;) > *Now I am trying to r

Re: [android-porting] Hello World C program using Android Toolchain Issue

2010-05-25 Thread akhilesh kumar
Hi Ashwin, Thanks for your reply. when Iam trying to run the hello program without SH, it is giving below error. **# /sdcard/hello /sdcard/hello: permission denied so I tried using SH. If i check about execution permissions. it is having. # ls -l /sdcard/hello rwxr-x system sdcard_rw 6

Re: [android-porting] Hello World C program using Android Toolchain Issue

2010-05-25 Thread akhilesh kumar
Hi Rogerio, Thank you for your reply, when iam trying to build my hello program as a static one it is giving the below error. #agcc -o hello hello.c -static /home/naveen/akhilesh/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/../lib/gcc/arm-eabi/4.2.1/../../../../arm-eabi/bin/ld: ca

Re: [android-porting] Hello World C program using Android Toolchain Issue

2010-05-26 Thread Jerome Duval
Your toolchain does not have a static c library, or the linker cannot find it. You either need to specify the path to libc.a or you cannot link statically. In the first example, you tried to execute hello through the shell, which is why you got the missing ')'. You should just do "/sdcard/hel