--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
Regards,
Nalin
>> android-ndk...@googlegroups.com<android-ndk%2Bunsu...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/android-ndk?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "android-ndk" group.
> To post to this group, send email to andro...@googlegroups.com.
> To unsubscribe from this group, send email to
> android-ndk...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/android-ndk?hl=en.
>
>
--
Sent from my mobile device
The next slot of between projects time I have... I am going to boost
mplayer's code...
Thanks and Regards,
Nalin
>> <android-ndk%2Bunsu...@googlegroups.com<android-ndk%252Buns...@googlegroups.com>
>> >
>> >> .
>> >> For more options, visit this group at
>> >> http://groups.google.com/group/android-ndk?hl=en.
>> >>
>> >>
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "android-ndk" group.
>> > To post to this group, send email to andro...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > android-ndk...@googlegroups.com<android-ndk%2Bunsu...@googlegroups.com>
>> .
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-ndk?hl=en.
>> >
>> >
>>
>> --
> How to get it to work ?
First, you could try to configure it with something like the following. You
certainly want to adjust the CPPFLAGS according to you Android target, and add
some --disable-* parameters.
./configure \
--host=arm-eabi \
CC=arm-eabi-gcc \
CPPFLAGS="-I$NDK/build/platforms/android-3/arch-arm/usr/include/" \
CFLAGS="-nostdlib" \
LDFLAGS="-Wl,-rpath-link=$NDK/build/platforms/android-3/arch-arm/usr/lib/ \
-L$NDK/build/platforms/android-3/arch-arm/usr/lib/" \
LIBS="-lc "
Configuring this way should help, creating config.h, etc...
But then, you can't rely on the usual make command. You need to read mplayer's
makefiles, and manually write an Android.mk file according to these, so that you
can build mplayer with ndk-build.
HTH
--
Olivier
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
That should help you understand how it all works, and make it much easier to
write an Android.mk for existing libs.
Olivier
On 07/12/2010 11:22 AM, Ngo Van Luyen wrote:
> Anyone got this work?
>
> I'm trying to convert my projects to Android, but the big problem is
> creating Android Makefile. Because I'm using some opensource lib, I am
> not familiar with GNU Makefile (I works on M$ Visual Studio C,C++)
>
>
>
> 2010/7/9 Olivier Guilyardi <li...@samalyse.com <mailto:li...@samalyse.com>>
>
> > On Thu, Jul 8, 2010 at 10:01 AM, Nalin Savara <nsn...@gmail.com
> <mailto:nsn...@gmail.com>
> <mailto:andro...@googlegroups.com>.
> To unsubscribe from this group, send email to
> android-ndk...@googlegroups.com
> <mailto:android-ndk%2Bunsu...@googlegroups.com>.