I haven't looked into this, but one observation is that I haven't
actually tested the freetype recipe so maybe that doesn't work (though
it might not be the only issue even if so).
On 28/10/15 00:31, mung kie wrote:
> Thanks for the reply, I am a total newbie with p4a so not sure I have
> the recipe correctly, I post it below so others can check it:
>
> |
> defbuild_armeabi(self):
> arch =ArchAndroid(self.ctx)
> env =self.get_recipe_env(arch)
> env['CFLAGS']=env['CFLAGS']+' -I{jni_path}/png -I{jni_path}/jpeg
> -I{jni_path}/freetype/include/freetype'.format(jni_path=join(self.ctx.bootstrap.build_dir,'jni'))
> env['CFLAGS']=env['CFLAGS']+' -DHAVE_LIBZ -DHAVE_LIBJPEG '
> env['LDFLAGS']=env['LDFLAGS']+' -L{libs_path}
> -L{src_path}/obj/local/{arch} -lm
> -lz'.format(libs_path=self.ctx.libs_dir,src_path=self.ctx.bootstrap.build_dir,arch=env['ARCH'])
> env['LDSHARED']=join(self.ctx.root_dir,'tools','liblink')
> withcurrent_directory(self.get_build_dir('armeabi')):
> info('hostpython is '+self.ctx.hostpython)
> hostpython =sh.Command(self.ctx.hostpython)
> shprint(hostpython,'setup.py','install','-O2',_env=env)
>
> info('strip is '+env['STRIP'])
> build_lib =glob.glob('./build/lib*')
> assertlen(build_lib)==1
> print('stripping pil')
> shprint(sh.find,build_lib[0],'-name','*.o','-exec',
> env['STRIP'],'{}',';')
> python_install_path =join(self.ctx.build_dir,'python-install')
> (4178):find_library(linker.cpp:901):"/data/data/net.org.pid/files/lib/python2.7/site-packages/PIL/_imaging.so"failed
> to load previously
> I/python (4178):[INFO ][Image
> ]Providers:img_tex,img_dds,img_gif,img_pygame,img_pil (img_ffpyplayer
> ignored)
> I/python (4178):2015-10-2800:20:02,717INFO:kivy:[Image
> ]Providers:img_tex,img_dds,img_gif,img_pygame,img_pil (img_ffpyplayer
> ignored)
> I/python (4178):Unableto importlibraries fromPIL
> I/python (4178):Unableto importlibraries fromPIL
> I/python (4178): Traceback(most recent call last):
> I/python (4178):2015-10-2800:20:03,324WARNIN
> |
>
> I hope someone can offer some help or suggestions on how to trace what
> is causing the error.
>
>
>
> On Tuesday, October 27, 2015 at 5:37:46 PM UTC, Alexander Taylor wrote:
>
> libz.so will be in the android ndk, so it should automatically be
> linkable (i.e. in a normal filepath).
>
> You can check the old-toolchain pil recipe to see how it works.
>
> On Tuesday, 27 October 2015 16:35:08 UTC, mung kie wrote:
>
>
> I want to use pil and it requires zlib decode and thus libz, how
> can I get recipe to link to android zlib or compile zlib for
> inclusion in the p4a apk?
>
> This is using the new build system.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Kivy users support" group.
> To unsubscribe from this topic, visit
>
https://groups.google.com/d/topic/kivy-users/-Bo2MTOmVEc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
>
kivy-users+...@googlegroups.com
> <mailto:
kivy-users+...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.