Compile skia for android on Mac Lion

http://www.seniorsafehomes.com/computer-networking-master-thesis-germany/ computer networking master thesis germany Some time ago I started to look at skia as possible solution for graphics 2D editing for a native android project I was developing.
Well, even if skia is part of the android system and it’s used everywhere by android itself, trying to include skia in my project was quite an hell..
Looking for resources I just found old examples and tips, and every try was just a failure.. but since android uses skia internally to do graphics operations I decided to look into the android project.

argumentative essay topics 6th grade

research paper on high school dropouts After downloading the skia module from the android git repository I just realized it couldn’t be compiled by itself because it has external dependencies. So next step was to download and compile the whole android source code. Easy task? not at all, at least if you’re on a mac running Lion!

best levitra prices At the end I managed to compile everything and build the skia module as static module, in this way now my project can link the skia library and include correctly the skia headers.

http://russianchicagomag.com/primary-homework-help-egypt/ primary homework help egypt Ok, I don’t have the whole procedure step by step here, first of all because it depends on the android version you’re going to compiled, second and most important because I didn’t write down all the steps 🙂 So this is more a sort of list of notes about compiling android on Lion and a reminder for myself too. ( I was trying to compile android 2.2 using “generic-user” as lunch configuration )

admission paper for sale bracelets Build Android: http://source.android.com/source/initializing.html

levitra cost in mexico To get rid of clearsilver errors: http://code.google.com/p/android/issues/detail?id=993#c27

http://iaaesthetics.org/?online-professional-resume-writing-services-perth online professional resume writing services perth Java 1.5 version complaining: http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard

admission essay help Well, the first time you’ll try to “ do my homework history make” everything probably you’ll get this error:

1
./external/elfutils/config-compat-darwin.h:42: error: static declaration of ‘strnlen’ follows non-static declaration

uga essay help http://www.ldjcleaning.com/custom-writing-essays-custom-written-essays/ custom writing essays custom written essays modify ./external/elfutils/config-compat-darwin.h.
replace:

1
2
3
4
5
6
7
static inline size_t strnlen (const char *__string, size_t __maxlen)
{
int len = 0;
while (__maxlen-- && *__string++)
len++;
return len;
}

http://www.telmohenriquesstudio.com/homework-help-4th/ homework help 4th with:

1
2
3
4
5
6
7
8
9
#if 0
static inline size_t strnlen (const char *__string, size_t __maxlen)
{
int len = 0;
while (__maxlen-- && *__string++)
len++;
return len;
}
#endif

phd thesis plant pathology Well, at the end of the process I just edited the Android.mk makefile into external/skia adding a new entry for BUILD_STATIC_LIBRARY and the next command was simply:

1
mmm external/skia

microsoft office visio professional 2010 32 bit uk which produced the required libskia.a file to be linked in my project.