Hello,
Can I use NDK to build a native executable (not a library)?
I want to port an existing code that compiles to an executable. I am
not the writer of this code. So, digging into it and export functions
I need in a library isn't an easy task for me.
> Hello,
> Can I use NDK to build a native executable (not a library)?
> I want to port an existing code that compiles to an executable. I am
> not the writer of this code. So, digging into it and export functions
> I need in a library isn't an easy task for me.
> sure you can, read the NDK hello world doc to getting started.
> On Sep 5, 6:58 am, Mina Shokry <minasho...@gmail.com> wrote:
> > Hello,
> > Can I use NDK to build a native executable (not a library)?
> > I want to port an existing code that compiles to an executable. I am
> > not the writer of this code. So, digging into it and export functions
> > I need in a library isn't an easy task for me.
but I still can not run the resulted executable on emulator.
I used "adb push" to move the executable to the sdcard and I tried to
run it but I got a "permission denied" message. The file doesn't have
an executable permission. chmod didn't help!
Is this because sdcard is formatted as FAT32? so, what a directory I
can move the file to to try?
thanks again.
On Sep 7, 6:41 am, Bytes <toyvenu.t...@gmail.com> wrote:
> On Sep 7, 8:53 am, Pan <pan.gaoy...@gmail.com> wrote:
> > sure you can, read the NDK hello world doc to getting started.
> > On Sep 5, 6:58 am, Mina Shokry <minasho...@gmail.com> wrote:
> > > Hello,
> > > Can I use NDK to build a native executable (not a library)?
> > > I want to port an existing code that compiles to an executable. I am
> > > not the writer of this code. So, digging into it and export functions
> > > I need in a library isn't an easy task for me.
You cannot run executables from the SD Card's FAT partition. Very
intentionally I might add.
You need to copy the file to another location (/data/misc maybe?)
On Tue, Sep 8, 2009 at 1:09 AM, Mina Shokry <minasho...@gmail.com> wrote:
> Thank you, it works.
> but I still can not run the resulted executable on emulator.
> I used "adb push" to move the executable to the sdcard and I tried to
> run it but I got a "permission denied" message. The file doesn't have
> an executable permission. chmod didn't help!
> Is this because sdcard is formatted as FAT32? so, what a directory I
> can move the file to to try?
> thanks again.
> On Sep 7, 6:41 am, Bytes <toyvenu.t...@gmail.com> wrote:
> > include $(BUILD_EXECUTABLE)
> > instead of
> > include $(BUILD_SHARED_LIBRARY)
> > On Sep 7, 8:53 am, Pan <pan.gaoy...@gmail.com> wrote:
> > > sure you can, read the NDK hello world doc to getting started.
> > > On Sep 5, 6:58 am, Mina Shokry <minasho...@gmail.com> wrote:
> > > > Hello,
> > > > Can I use NDK to build a native executable (not a library)?
> > > > I want to port an existing code that compiles to an executable. I am
> > > > not the writer of this code. So, digging into it and export functions
> > > > I need in a library isn't an easy task for me.
> You cannot run executables from the SD Card's FAT partition. Very
> intentionally I might add.
> You need to copy the file to another location (/data/misc maybe?)
> On Tue, Sep 8, 2009 at 1:09 AM, Mina Shokry <minasho...@gmail.com> wrote:
> > Thank you, it works.
> > but I still can not run the resulted executable on emulator.
> > I used "adb push" to move the executable to the sdcard and I tried to
> > run it but I got a "permission denied" message. The file doesn't have
> > an executable permission. chmod didn't help!
> > Is this because sdcard is formatted as FAT32? so, what a directory I
> > can move the file to to try?
> > thanks again.
> > On Sep 7, 6:41 am, Bytes <toyvenu.t...@gmail.com> wrote:
> > > include $(BUILD_EXECUTABLE)
> > > instead of
> > > include $(BUILD_SHARED_LIBRARY)
> > > On Sep 7, 8:53 am, Pan <pan.gaoy...@gmail.com> wrote:
> > > > sure you can, read the NDK hello world doc to getting started.
> > > > On Sep 5, 6:58 am, Mina Shokry <minasho...@gmail.com> wrote:
> > > > > Hello,
> > > > > Can I use NDK to build a native executable (not a library)?
> > > > > I want to port an existing code that compiles to an executable. I am
> > > > > not the writer of this code. So, digging into it and export functions
> > > > > I need in a library isn't an easy task for me.