我正在努力让buildozer在我的系统上工作
第一个问题发生在
<my package>/.buildozer/android/platform/build/build/other_builds/pyjnius-python3-sdl2/armeabi-v7a__ndk_target_21/pyjnius/setup.py
因为找不到Cython。我将该目录附加到setup.py中的sys.path中,并且不再收到此错误。
但是,同一程序仍然失败并显示错误:
jnius/jnius.c: In function '__Pyx_ExceptionSwap':
jnius/jnius.c:48173:22: error: 'PyThreadState' has no member named 'exc_type'
tmp_type = tstate->exc_type;
^
jnius/jnius.c:48174:23: error: 'PyThreadState' has no member named 'exc_value'
tmp_value = tstate->exc_value;
^
jnius/jnius.c:48175:20: error: 'PyThreadState' has no member named 'exc_traceback'
tmp_tb = tstate->exc_traceback;
^
jnius/jnius.c:48176:11: error: 'PyThreadState' has no member named 'exc_type'
tstate->exc_type = *type;
^
jnius/jnius.c:48177:11: error: 'PyThreadState' has no member named 'exc_value'
tstate->exc_value = *value;
^
jnius/jnius.c:48178:11: error: 'PyThreadState' has no member named 'exc_traceback'
tstate->exc_traceback = *tb;
^
error: command '/usr/bin/ccache' failed with exit status 1
运行以下命令时似乎会出现问题:
# create the extension
setup(
cmdclass={'build_ext': build_ext},
install_requires=INSTALL_REQUIRES,
ext_modules=[
Extension(
'jnius', [join('jnius', x) for x in FILES],
libraries=LIBRARIES,
library_dirs=LIBRARY_DIRS,
include_dirs=INCLUDE_DIRS,
extra_link_args=EXTRA_LINK_ARGS
)
],
**SETUP_KWARGS
)
参数为:
INSTALL_REQUIRES ['six>=1.7.0', 'cython']
FILES ['jni.pxi', 'jnius_compat.pxi', 'jnius_conversion.pxi', 'jnius_export_class.pxi', 'jnius_export_func.pxi', 'jnius_jvm_android.pxi', 'jnius_jvm_desktop.pxi', 'jnius_jvm_dlopen.pxi', 'jnius_localref.pxi', 'jnius.pyx', 'jnius_utils.pxi']
LIBRARIES []
LIBRARY_DIRS []
INCLUDE_DIRS ['/usr/lib/jvm/java-8-openjdk-amd64/include', '/usr/lib/jvm/java-8-openjdk-amd64/include/linux']
EXTRA_LINK_ARGS []
有人可以给我一些可能造成这种情况的帮助吗?