已有183人关注
使用虚拟机打包失败,
发表在Python图书答疑 2021-10-12 《Python+Kivy(App 开发)从入门到实践》第6章 打包 7页-10页
是否精华
版块置顶:

你好!

       我购买的图书是 Python+Kivy (APP)开发,安装图书介绍使用笔者配置好的虚拟机,在Win7系统上无法打包:

kivydev@kivydev-VirtualBox:~/test/py3apk$ p4a clean_dists

[INFO]:    Reading .p4a configuration

[INFO]:    Recipe python3crystax: version "3.6" requested

kivydev@kivydev-VirtualBox:~/test/py3apk$ p4a apk

[INFO]:    Reading .p4a configuration

[INFO]:    Recipe python3crystax: version "3.6" requested

[INFO]:    Will compile for the following archs: armeabi-v7a

[INFO]:    Getting Android API version from user argument

[INFO]:    Available Android APIs are (19, 23, 27)

[INFO]:    Requested API target 27 is available, continuing.

[INFO]:    Getting NDK dir from from user argument

[INFO]:    Got NDK version from $ANDROIDNDKVER

[INFO]:    Got Android NDK version from the NDK dir: it is 10.3.2

[INFO]:    Using Crystax NDK 10.3.2

[INFO]:    Found virtualenv at /usr/bin/virtualenv

[INFO]:    Found the following toolchain versions: ['4.9', '5', 'clang3.6', 'clang3.7']

[INFO]:    Picking the latest gcc toolchain, here 5

[INFO]:    No existing dists meet the given requirements!

[INFO]:    No dist exists that meets your requirements, so one will be built.

。。。。

                 from /home/kivydev/.local/share/python-for-android/build/bootstrap_builds/sdl2_gradle-python3crystax/jni/SDL/src/SDL_error.c:25:

/home/kivydev/andr/crystax-ndk-10.3.2/sources/crystax/include/sys/cdefs.h:34:38: fatal error: crystax/google/sys/cdefs.h: No such file or directory

compilation terminated.

/home/kivydev/andr/crystax-ndk-10.3.2/build/core/build-binary.mk:496: recipe for target '/home/kivydev/.local/share/python-for-android/build/bootstrap_builds/sdl2_gradle-python3crystax/obj/local/armeabi-v7a/objs/SDL2/src/SDL_error.o' failed

make: *** [/home/kivydev/.local/share/python-for-android/build/bootstrap_builds/sdl2_gradle-python3crystax/obj/local/armeabi-v7a/objs/SDL2/src/SDL_error.o] Error 1


另外请问,笔者这个虚拟机的用户密码是多少?(没有密码很多功能无法拓展)

分享到:
精彩评论 1
首页上一页 1 下一页尾页 1 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照