Hi Arun,

Did you see this site
http://android-tricks.blogspot.com/2009/02/hello-world-c-program-on-using-android.html
?

This tells you to do not use the option "*-nostdlib*". Try to compile
without this option.

Regards,

Rogerio

2010/5/27 தங்கமணி அருண் <[email protected]>

> Hi,
>
> I am trying to cross compile one of the Linux source package.
>
> Here is my compiler flags and variables
>
> -------------------------------------------------------------------------------------------------------------------------------------
> export
> PATH=$PATH:/home/arun/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin
>
> LD=arm-eabi-ld
> AR=arm-eabi-ar
> STRIP=arm-eabi-strip
> RANLIB=arm-eabi-ranlib
> CC=arm-eabi-gcc
> CXX=arm-eabi-g++
> CPPFLAGS="-I/home/arun/mydroid/bionic/libstdc++/include
> -I/home/arun/mydroid/bionic/libc/include
> -I/home/arun/mydroid/bionic/libc/arch-arm/include/
> -I/home/arun/mydroid/external/jpeg
> -I/home/arun/mydroid/bionic/libc/kernel/common
> -I/home/arun/mydroid/bionic/libc/kernel/arch-arm
> -I/home/arun/mydroid/bionic/libm/include
> -I/home/arun/mydroid/bionic/libm/include/arch/arm
> -I/home/arun/mydroid/bionic/libm/arm -I/home/arun/mydroid/bionic/libm"
>
> CFLAGS="-nostdlib"
>
> LDFLAGS=-Wl,--entry=main,--no-undefined,-rpath-link="-L/home/arun/mydroid/out/target/product/imx51_BBG/obj/STATIC_LIBRARIES/libjpeg_intermediates/
> -L/home/arun/mydroid/development/ndk/build/platforms/android-3/arch-arm/usr/lib/
> -L/home/arun/mydroid/out/target/product/imx51_BBG/system/lib"
>
> LIBS="-lc -lgcc -lm -ldl -lstdc++
> -L/home/arun/mydroid/out/target/product/imx51_BBG/obj/STATIC_LIBRARIES/libjpeg_intermediates
> -ljpeg"
>
> -------------------------------------------------------------------------------------------------------------------------------------
> Then i execute "*./configure*". It went well.
>
> But while doing "*make*" c and c++ souces are compiled properly.
>
> At the linking stage i got this error
>
> */home/arun/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/../lib/gcc/arm-eabi/4.2.1/../../../../arm-eabi/bin/ld:
> crt0.o: No such file: No such file or directory
> collect2: ld returned 1 exit status*
>
> Kindly help on this. I tried using different options.I have googled and
> tried some solution.but Not proper ending.
>
>
> Thanks
> Arun
>
> --
> அன்புடன்
> அருண்
> ------------------------------
> http://ubuntu-tam.org
> http://lists.ubuntu.com/ubuntu-l10n-tam
> http://lists.ubuntu.com/ubuntu-tam
> ------------------------------
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> [email protected]<android-beginners%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to