# Additionally you can build and send it directly to your device and run it with # Well after changing and saving it you should run (in terminal): # (int) Log level (0 = error only, 1 = info, 2 = debug (with command output)) This is optional but useful if you want to see whats going on ( any errors if it fails and so on ) # (str) ANT directory (if empty, it will be automatically downloaded.)Īndroid. # (str) Android SDK directory (if empty, it will be automatically downloaded.) # (str) Android NDK directory (if empty, it will be automatically downloaded.)Īndroid. # (list) List of directory to exclude (let empty to not exclude anything) There are more optional options like app name, version, an so on. # Notice that here are only parts that you should change. # Now its time to edit your buildozer.spec file in /home/YOUR_USERNAME/PycharmProjects/YOUR_PROJECT_FOLDER/ # To start building your app just do (in terminal): Remember this is virtualenv buildozer works only in this virtualenv this is so that you can keep your main python clean and basically untouched. # Download apache ant 1.10.3 and extract it # Download CrystaX NDK 10.3.2 (64bit) and extract it # Install necessary tools (notice that yes in front of command auto accepts licenses there may be delay so it seems like your stuck with license waiting for answer just wait your not really stuck) Unzip ~/tools_r25.2.5-linux.zip -d ~/android-sdk # Download android-sdk r25.2.5 and unzip it # Next part for android-sdk, crystax ndk and apache ant.Įverything will be downloaded into /home/YOUR_USERNAME/ # Edit it as follows (line numbers may not be 100% accurate couple lines up or downwards)Ĭp -r /usr/include/GL/ ~/PycharmProjects/YOUR_PROJECT_FOLDER/venv/include/ # Open android.py file found in /home/YOUR_USERNAME/PycharmProjects/YOUR_PROJECT_FOLDER/venv/lib64/python3.5/site-packages/buildozer-0.35.dev0-p圓.5.egg/buildozer/targets/ # 3 will make buildozer to work in virtualenv apk file to be in /home/YOUR_USERNAME/PycharmProjects/YOUR_PROJECT_FOLDERYOUR_PROJECT_FOLDER/bin/ Sudo apt-get install -y autoconf automake lib32z1 libtool ccache libncurses5:i386 libstdc++6:i386 libgtk2.0-0:i386 libpangox-1.0-0:i386 libpangoxft-1.0-0:i386 libidn11:i386 unzip zlib1g-dev zlib1g:i386 pkg-config Pip install -upgrade colorama sh appdirs jinja2 six # Needed by buildozer (install and upgrade colorama, sh, appdirs, jinja2, six) Pip install -upgrade pip virtualenv setuptools Source ~/PycharmProjects/YOUR_PROJECT_FOLDER/venv/bin/activate YOUR_PROJECT_FOLDER = your project name you chose when created new project in P圜harm Install Pycharm Community Edition (easiest way through software center)Ĭreate an project in P圜harm with New environment using Virtualenv and Base interpreter as /usr/bin/python3.5 # Add user to vboxsf group to access shared folders # You can skip this part if you dont need to access shared folders. # Open up terminal and type (assuming that guest additions are "VBox_GAs_5.2.8") # Install guest additions! Click devices on top of screen and choose Insert Guest Additions CD image YOUR_USERNAME = username you choosed when you installed xubuntu You can do this whatever way you are comfortable with.ĭownload xubuntu LTS release: 16.04, Xenial Xerus from Im using Pycharm Community Edition in this tutorial (im using it anyway) to create virtualenv. Preinstalled android sdk, crystax ndk, apache ant Ubuntu LTS release: 16.04, Xenial Xerus (64bit)Ĥ. Xubuntu LTS release: 16.04, Xenial Xerus (64bit) Ok so i spent some time to help out anyone who struggles to get this to work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |