Open magowiz opened 3 weeks ago
Maybe you try to play with linking flags in get_recipe_env
and add -lstdc++
.
Something like:
def get_recipe_env(self, arch, **kwargs):
env = super().get_recipe_env(arch, **kwargs)
env['LDFLAGS'] += ' -lstdc++'
return env
Hi @T-Dynamos, thanks for the hint, I changed the recipe in this way, like you suggested:
from pythonforandroid.recipe import RustCompiledComponentsRecipe
class ShazamIoCoreRecipe(RustCompiledComponentsRecipe):
version = "1.0.7"
url = (
f"https://github.com/shazamio/shazamio-core/archive/refs/tags/{version}.tar.gz"
)
site_packages = "shazamio_core"
def get_recipe_env(self, arch, **kwargs):
env = super().get_recipe_env(arch, **kwargs)
env['LDFLAGS'] += ' -lstdc++'
return env
recipe = ShazamIoCoreRecipe()
I deleted buildozer home and build folders and built again, with new recipe, it builds successfully, but I still get same behavior: app crashes and on log there is same error.
Hi, mantainer provided in a release in github some whl files https://github.com/shazamio/shazamio-core/releases , for example this: https://github.com/shazamio/shazamio-core/releases/download/1.0.7/shazamio_core-1.0.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
How can I create a recipe that install from there ?
@magowiz This can't be used, as it's compiled for glibc, but android is bionic.
(Only wheels compiled with android-ndk will work)
I believe this error can be easily solved, I will try work on it ASAP.
thank you very much!
I believe this error can be easily solved, I will try work on it ASAP.
Hi, is there news about it?
Checklist
p4a.branch = develop
)Versions
Description
I was trying to add to my project a
shazamio-core
recipe which is a rust project, so I used the recipe classRustCompiledComponentsRecipe
and wrote my own recipe, which is this:It compiles fine, but in android, when I launch my app I get this import error:
then the app crashes
buildozer.spec
Command:
Spec file:
Logs
no errors on building