Closed deeprotype closed 2 years ago
Confirming the issue with the latest pandas recipe.
For me, commenting out this line: env['LDFLAGS'] += ' -L{}'.format(arch.ndk_lib_dir)
from recipe.py fixes the problem.
This functionality is used for any need_stl_shared
recipe, and not sure exactly what the impact would be removing it on other recipes. Someone with more knowledge may please weigh in? Is this line a relic of a previous NDK and no longer needed? Somehow compilation and runtime works without the above mentioned line.
Hi @mzakharo, happy to see you back!
I guess that https://github.com/kivy/python-for-android/pull/2645 also fixes the issue on pandas
, as looks like to be pretty the same.
Into the PR, I've added an extract from the "Build System Maintainers Guide (Android)" which explains why we need to avoid to manually link libc++ and its dependencies.
And @deeprotype, you you also try to use PR #2645 as explained here: https://github.com/kivy/python-for-android/issues/2643#issuecomment-1200158073 ?
Having another confirmation may help the testing process, and speed up the merge (real-world use cases are way better than minimum reproducible examples).
Hi @mzakharo and @misl6,
thank you very much for your quick reply. The suggestions look promising! :) I'll test the approaches and get back to you with the results.
Thanks guys! The solution of @misl6 works for me.
I will now close the issue! :)
@deeprotype , please consider that just after the PR is merged (it may happen today), I will remove the related branch, and you will need to target the develop
branch from kivy
fork.
Changing p4a.branch from master to develop helped me get a simple Pandas apk working. I was getting the same error "ImportError: dlopen failed: TLS symbol "_ZZN8gwp_asan15getThreadLocalsEvE6Locals""
Checklist
p4a.branch = develop
)Versions
Description
Hello everyone,
since the upgrade from NDK 19b to 23b the library Pandas cannot be used anymore. My current applied commit is: 654448b (Branch: Master). -> same thing on the develop brunch
Although the build process is done with buildozer without any problems, the app crashes after loading the library. Does anyone know why this is happening and how I can fix the problem?
Thanks a lot for your help!
Best regards, Manuel
buildozer.spec
Command:
Used Code:
Spec file:
Logs