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

apk build error: libtinfo.so.5: cannot open shared object file: No such file or directory #1858

Closed
Fak3 opened this issue Jun 10, 2019 · 5 comments
Labels

Comments

@Fak3
Copy link
Contributor

Fak3 commented Jun 10, 2019

p4a version: git master
os: opensuse tumbleweed

I tried to build apk with command:
p4a apk --private /home/z/pproj/paradox_ssh/ --version=1.7 --bootstrap=sdl2 --local-recipes=./recipes --requirements=python3,kivy-async,openssl,sqlite3,pil,requests,sdl2,plyer --whitelist=./whitelist.txt --permission=CALL_PHONE --permission=INTERNET --orientation=portrait --package=org.spbelect.paradox2 --name="paradox2" --release

got an error about missing lib, which i could not find in my distro:

libtinfo.so.5: cannot open shared object file: No such file or directory

full p4a log: https://gist.github.com/Fak3/c6db4050eca33b9c7571c1e508f54f24

I wonder what is this lib and is there any way to resolve this dependency?

@inclement
Copy link
Member

This is new to me and I'm not sure what would cause it. I don't recognise the dependency, so either it's installed by chance (or I missed it) in our testing environment, or this message really arises from some other issue.

It's probably worth installing the lib if possible, in my distro it comes from the ncurses5-compat-libs package.

@AndreMiras
Copy link
Member

Yes I would definitely just install this system library. On Ubuntu it's via:

sudo apt install libtinfo5

And probably also:

sudo apt install libncurses5-dev libncursesw5-dev

The issue was also described in kivy/buildozer#841
Addressing #1750 should help with this kind of issues.

@Fak3
Copy link
Contributor Author

Fak3 commented Jun 11, 2019

Thanks! I only had libncurses6 installed. It worked after i installed libncurses5.
Perhaps it could be added to the documentation: https://python-for-android.readthedocs.io/en/latest/quickstart/#installing-dependencies only mentions libncurses without version.

@inclement
Copy link
Member

inclement commented Jul 13, 2019

I just hit this myself on a new install, it should definitely be added to the documentation. Perhaps we can also fix the requirement for it, I don't think it's actually necessary for Python to build, it probably thinks it needs the library due to some quirk of the android build environment.

@RMKD
Copy link

RMKD commented Sep 29, 2019

you can also create a symlink so that 5 points to 6 (ln -s /usr/lib/libtinfo.so.6 /usr/lib/libtinfo.so.5) - probably there's a command somewhere that just needs to be more general.

@Julian-O Julian-O added the bug label Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants