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

Updates matplotlib, fixes an issue related to shared libc++ #2645

Merged
merged 2 commits into from
Aug 16, 2022

Conversation

misl6
Copy link
Member

@misl6 misl6 commented Jul 30, 2022

  • ✅ Bump matplotlib to 3.5.2
  • ✅ Bump cppy to 1.1.0 (is not the latest version available as will need an updated setuptools, which is currently incompatible with kivy)
  • ✅ Bump kiwisolver to 1.3.2 (not the latest version available as will need an updated setuptools, which is currently incompatible with kivy)
  • ⚠️ Removed (previously needed) CPPFLAGS, CXXFLAGS , CFLAGS, LIBS, LDFLAGS for linking c++_shared.
  • pandas had the same issue, and looks got fixed via this PR (See: Upgrade from NDK 19b to 23b causes problems with Pandas library #2654)

As for Build System Maintainers Guide (Android):

Build systems should prefer to let Clang link the STL. If not using Clang, the version scripts should be used. Linking libc++ and its dependencies manually should only be used as a last resort.

Note: Linking libc++ and its dependencies explicitly may be necessary to defend against exception unwinding bugs caused by improperly built dependencies (see Issue 379). If not dependent on stack unwinding (the usual reason being that the application does not make use of C++ exceptions) or if no dependencies were improperly built, this is not necessary. If needed, link the libraries as listed in the linker script and be sure to follow the instructions in Unwinding.

⚠️ WIP: DO NOT MERGE (YET). It may need some cleanup

@misl6 misl6 changed the title [WIP] Updates matplotlib, fixes an issue related to shared libc++ Updates matplotlib, fixes an issue related to shared libc++ Aug 2, 2022
@misl6 misl6 requested a review from AndreMiras August 2, 2022 19:13
@misl6 misl6 merged commit 17395de into kivy:develop Aug 16, 2022
@misl6 misl6 deleted the fix/matplotlib branch August 16, 2022 13:54
@zaheerkzz
Copy link

@misl6 I tried all the above mentioned, changed versions, im not using pandas. however the issue remains. I tried NDK version to 19b but there is compatibility issues, and remains the same error:

ImportError: dlopen failed: TLS symbol "_ZZN8gwp_asan15getThreadLocalsEvE6Locals" 

@misl6
Copy link
Member Author

misl6 commented Aug 25, 2022

@misl6 I tried all the above mentioned, changed versions, im not using pandas. however the issue remains. I tried NDK version to 19b but there is compatibility issues, and remains the same error:

ImportError: dlopen failed: TLS symbol "_ZZN8gwp_asan15getThreadLocalsEvE6Locals" 

Did you cleaned your previous build?

Otherwise, please join us on Discord and ping me on #android-support

misl6 added a commit that referenced this pull request Sep 5, 2022
* Add option for copying arbitratry xml files to src/main/res/xml without touching manifest

* handle the case of getting list as res_xml

* Remove stray - in output file name

The final component in the package name is just the extension, so
prefixing it with a - means the output file ends in -.<ext>.

* Resolve absolute path to local recipes (#2640)

This is necessary when using patches in a local recipe since
`Recipe.apply_patch` assumes the recipe directory is absolute and uses
`patch -d` to change directories. It could just be fixed there, but this
ensures that recipe directories are always absolute.

Closes: #2623

* Fix webview Back button behaviour (#2636)

* Fixes TypeError: str.join() takes exactly one argument (2 given) in hostpython3/__init__.py", line 69 (#2642)

* Update __init__.py

.buildozer/android/platform/python-for-android/pythonforandroid/recipes/hostpython3/__init__.py", line 69, in get_recipe_env
    env["PKG_CONFIG_PATH"] = os.pathsep.join(
TypeError: str.join() takes exactly one argument (2 given)

* according of 

#2642 (review)

* RTSP support for ffmpeg

Added UDP and TCP protocols to "--enable-procol" to supporting RTSP streams over each.

Added RTSP to "--enable-demuxer" to supporting RTSP with ffmpeg.

* Fixes some E275 - assert is a keyword. (#2647)

* Add icon-bg and icon-fg to fix_args + adds a missing folder in webview dir template (#2633)

* Add icon-bg and icon-fg to fix_args

Fix the icon-bg and icon-fg arguments and also create the folder
mipmap-anydpi-v26 if it doesn't exists before trying to create a file
inside.

* Use existing ensure_dir function to create anydpi_dir

* Add mipmap-anydpi-v26 to bootstrap template

This makes available the directory in the final template so it's not
needed to check the directory exists.

* Updates matplotlib, fixes an issue related to shared libc++ (#2645)

* Updates matplotlib, fixes an issue related to shared libc++

* Cleanup

* Update supported Python versions (#2656)

* Remove six and enum34 dependency (#2657)

* Force --platform=linux/amd64 in Dockerfile (#2660)

* Use p4a_install instead of install, as a file named INSTALL is already present. (#2663)

* Update CHANGELOG.md & change version for release 2022.09.04

Co-authored-by: Eero af Heurlin <[email protected]>
Co-authored-by: Dan Nicholson <[email protected]>
Co-authored-by: Andre Miras <[email protected]>
Co-authored-by: Andy Trofimov <[email protected]>
Co-authored-by: Akshay Arora <[email protected]>
Co-authored-by: --=FurtiF™=-- <[email protected]>
Co-authored-by: alickc <[email protected]>
Co-authored-by: danigm <[email protected]>
shyamnathp pushed a commit to shyamnathp/python-for-android that referenced this pull request Feb 17, 2023
* Updates matplotlib, fixes an issue related to shared libc++

* Cleanup
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

Successfully merging this pull request may close these issues.

2 participants