Android: cannot locate symbol "pow" referenced by "libpython2.7.so"

173 views
Skip to first unread message

Andreas Heckwolf

unread,
Sep 29, 2015, 3:46:49 AM9/29/15
to Kivy users support
Hello,

after doing a more accidental than intentional "buildozer android update" yesterday, my app causes a runtime error. It fails to load the libpython2.7.so since it seems to refer to "pow". Please see logcat output attached. I am on OSX using python 2.7.10 and Buildozer 0.30dev, kivy 1.9, python-for-android installed from here https://github.com/kivy/python-for-android.

Any help would be appreciated.

Cheers,

Andreas

D/dalvikvm(19287): Trying to load lib /data/app-lib/com.menturagroup.saola-5/libpython2.7.so 0x41e9a9c0

E/dalvikvm(19287): dlopen("/data/app-lib/com.menturagroup.saola-5/libpython2.7.so") failed: dlopen failed: cannot locate symbol "pow" referenced by "libpython2.7.so"...

E/AndroidRuntime(19287): Process: com.menturagroup.saola:python, PID: 19287

E/AndroidRuntime(19287): java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "pow" referenced by "libpython2.7.so"...

E/AndroidRuntime(19287): at org.renpy.android.PythonActivity.run(PythonActivity.java:254)

W/ActivityManager(  867):   Force finishing activity com.menturagroup.saola/org.renpy.android.PythonActivity

D/CrashAnrDetector(  867): processName: com.menturagroup.saola:python

I/ActivityManager(  867): Process com.menturagroup.saola:python (pid 19287) (adj 15) has died.(77,286)

I/WindowState(  867): WIN DEATH: Window{430c9df8 u0 com.menturagroup.saola/org.renpy.android.PythonActivity}

W/WindowManager(  867): Force-removing child win Window{42f733f0 u0 SurfaceView} from container Window{430c9df8 u0 com.menturagroup.saola/org.renpy.android.PythonActivity}

Rahul Ghose

unread,
Feb 6, 2016, 6:45:35 AM2/6/16
to Kivy users support
I am facing the exact same issue. Is there any way to add linking lines to buildozer config?

I think this could be solved by adding the "-lm" line somewhere during build.

Alexander Taylor

unread,
Feb 6, 2016, 8:26:52 PM2/6/16
to Kivy users support
python-for-android should already link with libm.so. Could you try targeting a newer android API, I have a vague memory this could be related.

Sean Zhai

unread,
Apr 13, 2016, 12:25:56 AM4/13/16
to Kivy users support
Could you give some details on the solution please? 
I think that I might be seeing the same problem now on Kivy 1.9.1.

Thank you!
Reply all
Reply to author
Forward
0 new messages