Kivy install, and pack apk on Ubuntu

Source: Internet
Author: User
Tags pack

Kivy-Open Source Python library for rapid development
Applications that use innovative user interfaces, such as multi-touch applications
1 python pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew2 python pip ins Tall Kivy.deps.gstreamer
-Kivy

-kivy_examples

Test:

python share\kivy-examples\demo\showcase\main. PY (where the share file is in the Python file root directory)

The next question is how to package the program into APK:

Because I was previously installing a VM, importing Kivy officially produced an image of that virtual machine when the import failed because E:\Python\kivydev64v1.0.ova did not pass the OVF specification conformance or virtual hardware compliance checks.

Solution:

After you download the Ovftool 4.1 installation, the files under the installation directory will be overwritten in the Ovftools directory under the VMware Workstation installation directory.

You're ready to see this.

1. Go to/home/kivydev//test is the test directory, the directory of py2apk is PY27 packaging, py3apk is py35 packaging, these two versions of the difference is only different version of the py configuration file, in this directory of the py file, You must use the main.py name to package , and then compile the main.py in that directory to see if it can be executed successfully: Python3 main.py

2. After a successful compilation, the following package commands are executed in the directory py2apk or py3apk:

p4a apk

You can generate the APK file in this directory;

Kivy install, and pack apk on Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.