Skip to content

SDL Error: ... could not load library "libpython2.7.so" ... on Android 4.2.2 #1290

@EinExperte

Description

@EinExperte

Hi folks,

today I finally managed to produce my first apk using the latest p4a code from the master branch ...

pip install git+https://github.com/kivy/python-for-android.git
(I ran into a lot of problems with the pip install python-for-android variant)

... and I was happy to install it on my Fairphone 1 (Android 4.2.2) ... just to see it crash on startup :-(
A popup tells me:

SDL Error

An Error occured while trying to start the application. Please try again and/or reinstall.

Error: Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library "libpython2.7.so" needed by "libmain.so"; caused by find_library(linker.cpp:889): "libpython2.7.so" failed to load previously

Exit

(Typos possible, I copied by hand)

The same apk works fine (or at least does not crash) on a newer device (Android 7.0).

I built with the following command:
p4a apk --private $HOME/temp/tjapp --package=org.example.taskjuggler --name "Task Juggler" --version 0.3 --bootstrap=sdl2 --requirements=python2,kivy --dist_name=tjapp

API Version: 16
NDK Version: r10e-rc4
Build-Tools Version: 26.0.2

Any advice?

Thanks,
Christoph

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions