Исправление Невозможно найти "lpython3.7m" во время сборки Android сборки NDK для создания APK - PullRequest
0 голосов
/ 03 июля 2019

Я пытаюсь упаковать скрипт Python Kivy для Android с помощью buildozer.Однако во время запуска сборки Android NDK возникает ошибка, когда не удается найти библиотеку 'lpython3.7m'.

Проблемы не были устранены со следующими параметрами: https://github.com/kivy/buildozer/issues/842

Users/Roy/.buildozer/android/platform/android-ndk-r17c/platforms/android-21/arch-arm/usr/lib -lGLESv1_CM -lGLESv2 -llog -lpython3.7m -lstdc++ -lc -lm -o /Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/libmain.so
/Users/Roy/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lpython3.7m
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:47: error: undefined reference to 'PyModule_Create2'
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:154: error: undefined reference to 'Py_SetProgramName'
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:160: error: undefined reference to 'PyImport_AppendInittab'
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:193: error: undefined reference to 'Py_DecodeLocale'
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:194: error: undefined reference to 'Py_SetPath'
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:205: error: undefined reference to 'Py_Initialize'
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:222: error: undefined reference to 'PyEval_InitThreads'
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:228: error: undefined reference to 'PyRun_SimpleStringFlags'
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:234: error: undefined reference to 'PyRun_SimpleStringFlags'
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:242: error: undefined reference to 'PyRun_SimpleStringFlags'
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:245: error: undefined reference to 'PyRun_SimpleStringFlags'
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:352: error: undefined reference to 'PyRun_SimpleFileExFlags'
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:355: error: undefined reference to 'PyErr_Occurred'
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:357: error: undefined reference to 'PyErr_Print'
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:358: error: undefined reference to 'PySys_GetObject'
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:359: error: undefined reference to 'PyFile_WriteString'
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:361: error: undefined reference to 'PyErr_Clear'
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:388: error: undefined reference to 'Py_FinalizeEx'
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:31: error: undefined reference to '_PyArg_ParseTuple_SizeT'
/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:0: error: undefined reference to '_Py_NoneStruct'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/libmain.so] Error 1


  STDERR:

# Command failed: /usr/local/opt/python/bin/python3.7 -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/Users/Roy/Desktop/HIV/UrfApp/.buildozer/android/platform/build" --ndk-api=21

См. Выше.

...