Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cryptography recipe does not compile #766

Closed
pythonic64 opened this issue Jun 7, 2016 · 1 comment
Closed

Cryptography recipe does not compile #766

pythonic64 opened this issue Jun 7, 2016 · 1 comment

Comments

@pythonic64
Copy link
Contributor

pythonic64 commented Jun 7, 2016

I'm trying to build Kivy app with:

  • sdl2 bootstrap
  • recipes python2,kivy,cryptography
  • buildozer 0.32
  • latest python-for-android master branch

In libffi recipe I had to replace line with:
shprint(sh.Command('autoreconf'), '-vif', _env=env).
Without that change p4a was raising sh.CommandNotFound error.

Now running buildozer android_new debug produces the following error log: http://pastebin.com/22qjBJwL
buildozer.spec file: http://pastebin.com/aLe7nLHG
main.py file: http://pastebin.com/xSReYe6u

@brussee
Copy link
Contributor

brussee commented Jun 21, 2016

I ran into the same issue which was introduced in #735.
By editing the same line as you did it works for me. I don't use buildozer though...

The log suggests setting PKG_CONFIG_PATH to point to libffi, so this may work for you in the libffi recipe:

    def get_recipe_env(self, arch):
        env = super(LibffiRecipe, self).get_recipe_env(arch)
        cfg = join(Recipe.get_recipe('hostpython2', self.ctx).get_build_dir(), 'libffi')
        print cfg #DEBUG
        key = 'PKG_CONFIG_PATH'
        env[key] = cfg if not key in env else cfg + path.separator + env[key]
        return env

Because libffi.pc can be found in this folder:
/home/paul/.local/share/python-for-android/build/other_builds/hostpython2/desktop/hostpython2/build/temp.linux-x86_64-2.7/libffi/libffi.pc

And after this point also in:
/home/paul/.local/share/python-for-android/build/other_builds/libffi/armeabi-v7a/libffi/arm-unknown-linux-androideabi/libffi.pc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants