Thanks Yi...

I try this..

On Mon, May 11, 2009 at 10:47 AM, Yi Sun <beyo...@gmail.com> wrote:

>
> I assume you are going to use bionic. You can do this in a simpler way,
> just take a look on the Android.mk system/core/libcutil, you will find
> out how to do this in a better way.
> On Sun, 2009-05-10 at 22:10 -0700, kiran wrote:
> > Hi All,
> >
> >       I am new to Android and started porting native C application to
> > Android. It worked. Then started with shared objects. I am getting 'No
> > such file / directory' error. Here is the procedure.
> >
> > 1. Created Shared object with arm-none-linux-gnueabi toolkit.
> > 2. For creating binary, I used
> >                     $arm-none-linux-gnueabi-gcc filename.c -o file -L.
> > -lfile
> >  This works fine. But, as we need to create static executable, if I
> > use static option for this, it gives me linking error throwing an
> > error "Unable to find the specified library".
> >
> > Any guesses?
> >
> > Also, when I use the following options specified in ,
> >
> http://honeypod.blogspot.com/2007/12/shared-library-hello-world-for-android.html
> ,
> >
> > $arm-none-linux-gnueabi-ld --dynamic-linker /system/bin/linker -
> > nostdlib -rpath /system/lib -rpath ~/tmp/android/system/lib -L . -L ~/
> > tmp/android/system/lib -lc -lhello -o hello2 start.o main.o
> >
> >  I am getting "cannot find -lc option" and executable is not
> > generated.
> >
> > --
> >
> > Regards,
> > Kiran Kumar.
> > >
>
>
> >
>


-- 

Regards,
Kiran Kumar.

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to