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

Building Android app on macOS Catalina gives zlib headers error #1334

Closed
dogadogan opened this issue Jun 21, 2021 · 4 comments
Closed

Building Android app on macOS Catalina gives zlib headers error #1334

dogadogan opened this issue Jun 21, 2021 · 4 comments

Comments

@dogadogan
Copy link

dogadogan commented Jun 21, 2021

Versions

  • Python: 3.8.3
  • OS: macOS Catalina 10.15.7
  • Buildozer: 1.2

Description

When I try to build the app, I keep getting the following error:
zlib headers must be installed, run: sudo apt-get install zlib1g-dev

I did some extensive search online and tried multiple ways to include the headers (e.g., https://donatstudios.com/MojaveMissingHeaderFiles#Comment223071, or #1262 (comment)) but nothing seems to work.

I appreciate your help. Thank you!

buildozer.spec

Command:

buildozer android debug 

Logs

# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Run 'dpkg --version'
# Cwd None
Debian 'dpkg' package management program version 1.20.9 (darwin-amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
# Check configuration tokens
# zlib headers must be installed, run: sudo apt-get install zlib1g-dev
@watermelonDrip
Copy link

@dogadogan same error, have you solved this? Thanks : )

@dogadogan
Copy link
Author

No :/ I ended up using another software library for my task. It would be nice if someone could provide a solution to this though!

@akash5193
Copy link

Any updates on this please? Facing same issue, tried many workaround mentioned on various hosts, but exactly same error.

Debian 'dpkg' package management program version 1.21.7 (darwin-amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.

Check configuration tokens

# zlib headers must be installed, run: sudo apt-get install zlib1g-dev

@misl6
Copy link
Member

misl6 commented Jul 21, 2022

The issue seems fixed in the recently released python-for-android (as dependencies are now automatically handled on macOS), feel free to re-open the issue if it persists on your side.

@misl6 misl6 closed this as completed Jul 21, 2022
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

4 participants