views:

545

answers:

2

I want to make an Android application using huge third party native libraries which use the Gnu build tools (gnu makefile).

My question is how to write the "Android.mk" files for these libraries in order to build them using the Android build system or the Android NDK.

Thanks in advance

A: 

As far as i understand, you need to convert the makefiles to android format :( and use ndk_buidl to build them

Noam
A: 

Hi,

The only feasible way will be to write the NDK makefiles. Many big libraries has been ported that way. Normally you should run the configure script to generate the config.h and config.mak files. You'll use the config.mak to list your sources. There are tutorials over the net for porting some popular libraries to be built with Android's NDK. I had success with freetype, ffmpeg, SDL, DevIL and more.

ognian