Il 06/09/2012 04:51, Jon C ha scritto:
> I was building with the android directory, like using
> ../android/bin/android_make, with the environment variables. I think
> I know what the problem was now, for my ndk build, I wasn't including
> the same preprocessor flags as what the skia build had, only -DSK_, so
> I think the sizes of certain things were different, and the return
> address was getting overwritten as a result when I tried to initialize
> SkCanvas. After declaring the same preprocessor variables in the ndk,
> skia behaves correctly.
hi Jon, I'm running into the same issue, could you please give me
informations on how you actually understand which flags were used and
which to add to the android application's makefile?
Are they the ones found in any of the generated makefiles in
trunk/out/gyp? In that case, do I need the ones defined in
"DEFS_debug/DEFS_release" only, or the "CFLAGS_debug/CFLAGS_release"
ones as well?
Also, what do I have to modify to get a "fat" .a file?
One more question, slightly off-topic: I also need gpu acceleration, so
I need to build and include in libskia.a the sources related to gpu. I
tried to add gpu.gyp and gpu.gypi in the include section of skia.gyp,
but it didn't work. Do you (or anyone reading this) know what I can try?
Thanks!
athos