-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to compile. #1710
Comments
There're two different commands and two different errors here.
So it looks like The other error when you build via |
where to find |
Command: p4a apk --private /home/vladislav/coding/python/0 --package=org.example.myapp --name "My application" --version 0.1 --bootstrap=sdl2 --requirements=python3,kivy file main.py:import kivy
kivy.require('1.10.1')
from kivy.app import App
from kivy.uix.button import Button
class DummyApp(App):
def build(self):
return Button(text="Hello World")
if __name__ == '__main__':
DummyApp().run() Logs
|
I'm even more confused now. That's again a different log right?
So it looks like it's trying to compile p4a apk --private /home/vladislav/coding/python/0 --package=org.example.myapp --name "My application" --version 0.1 --bootstrap=sdl2 --requirements=python3,kivy Isn't this a big confusing? But yes these |
@Watashis did you use |
Did you ever figure out the libtinfo issue on this problem. Seems I have a similar issue. Did you install libtinfo.so.5 -- I am running a 64 bit system, so I already have a 64 bit version of libtinfo.so.5 on my system, but it doesn't find that. Kind of wondering if you installed the libtinfo.so.5 on a 32 bit system? Or did you somehow install it in the toolchain directory? Any help appreciated! |
Silly enough, even though I found that the missing libtinfo.so.5 is really part of ncurses, on Fedora it is not part of ncurses or ncurses-devel (which is where I expected them). I think it is part of ncurses-compat or ncurses-static or one of the non-installed ncurses libraries. Even though there is a 64 bit version, that is not the one it is looking for. Hence, you need to install one of the others. |
Hi! I am trying to compile a kivy app that uses sympy, but the compilation fails with the below log Run 'dpkg --version' Cwd NoneDebian 'dpkg' package management program version 1.19.7 (amd64). Search for Git (git)-> found at /usr/bin/gitSearch for Cython (cython)-> found at /home/sephanayer/.local/bin/cythonSearch for Java compiler (javac)-> found at /usr/lib/jvm/java-8-openjdk-amd64/bin/javacSearch for Java keytool (keytool)-> found at /usr/lib/jvm/java-11-openjdk-amd64/bin/keytoolInstall platformRun '/usr/bin/python3.7 -m pip install -q --user 'appdirs' 'colorama>=0.3.3' 'jinja2' 'six' 'enum34; python_version<"3.4"' 'sh>=1.10; sys_platform!="nt"' 'pep517' 'pytoml' 'virtualenv''Cwd NoneApache ANT found at /home/sephanayer/.buildozer/android/platform/apache-ant-1.9.4Android SDK found at /home/sephanayer/.buildozer/android/platform/android-sdkAndroid NDK found at /home/sephanayer/.buildozer/android/platform/android-ndk-r17cCheck application requirementsCheck garden requirementsCompile platformRun '/usr/bin/python3.7 -m pythonforandroid.toolchain create --dist_name=tipanapp --bootstrap=sdl2 --requirements=python3,kivy,sqlite3,fractions,os,errno,sys,time,webbrowser,string,secrets,re,requests,threading,queue,numpy,matplotlib,mpmath,sympy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/sephanayer/Tipan-Application/.buildozer/android/platform/build" --ndk-api=21'Cwd /home/sephanayer/Tipan-Application/.buildozer/android/platform/python-for-android/home/sephanayer/Tipan-Application/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py:85: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses RAN: /home/sephanayer/Tipan-Application/.buildozer/android/platform/build/build/other_builds/hostpython3/desktop/hostpython3/native-build/python setup.py install -O2 --root=/home/sephanayer/Tipan-Application/.buildozer/android/platform/build/build/python-installs/tipanapp --install-lib=. STDOUT: STDERR: Traceback (most recent call last): RAN: /home/sephanayer/Tipan-Application/.buildozer/android/platform/build/build/other_builds/hostpython3/desktop/hostpython3/native-build/python setup.py install -O2 --root=/home/sephanayer/Tipan-Application/.buildozer/android/platform/build/build/python-installs/tipanapp --install-lib=. STDOUT: STDERR: Command failed: /usr/bin/python3.7 -m pythonforandroid.toolchain create --dist_name=tipanapp --bootstrap=sdl2 --requirements=python3,kivy,sqlite3,fractions,os,errno,sys,time,webbrowser,string,secrets,re,requests,threading,queue,numpy,matplotlib,mpmath,sympy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/sephanayer/Tipan-Application/.buildozer/android/platform/build" --ndk-api=21Buildozer failed to execute the last commandThe error might be hidden in the log above this errorPlease read the full log, and search for it beforeraising an issue with buildozer itself.In case of a bug report, please add a full log with log_level = 2This is my buildozer.spec file [app] (str) Title of your applicationtitle = Tipan Application (str) Package namepackage.name = tipanapp (str) Package domain (needed for android/ios packaging)package.domain = org.test (str) Source code where the main.py livesource.dir = . (list) Source files to include (let empty to include all the files)source.include_exts = py,png,jpg,kv,atlas,ico,db (list) List of inclusions using pattern matching#source.include_patterns = assets/,images/.png (list) Source files to exclude (let empty to not exclude anything)#source.exclude_exts = spec (list) List of directory to exclude (let empty to not exclude anything)source.exclude_dirs = tests, bin (list) List of exclusions using pattern matching#source.exclude_patterns = license,images//.jpg (str) Application versioning (method 1)version = 1 (str) Application versioning (method 2)version.regex = version = '"['"]version.filename = %(source.dir)s/main.py(list) Application requirementscomma separated e.g. requirements = sqlite3,kivyrequirements = python3,kivy,sqlite3,fractions,os,errno,sys,time,webbrowser,string,secrets,re,requests,threading,queue,numpy,matplotlib,mpmath,sympy (str) Custom source folders for requirementsSets custom source for any requirements with recipesrequirements.source.kivy = ../../kivy(list) Garden requirements#garden_requirements = (str) Presplash of the application#presplash.filename = %(source.dir)s/data/presplash.png (str) Icon of the application#icon.filename = %(source.dir)s/data/icon.png (str) Supported orientation (one of landscape, sensorLandscape, portrait or all)orientation = portrait (list) List of service to declare#services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY OSX Specificauthor = © Copyright Infochange the major version of python used by the apposx.python_version = 3 Kivy version to useosx.kivy_version = 1.9.1 Android specific(bool) Indicate if the application should be fullscreen or notfullscreen = 0 (string) Presplash background color (for new android toolchain)Supported formats are: #RRGGBB #AARRGGBB or one of the following names:red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,olive, purple, silver, teal.#android.presplash_color = #FFFFFF (list) Permissions#android.permissions = INTERNET (int) Target Android API, should be as high as possible.#android.api = 27 (int) Minimum API your APK will support.#android.minapi = 21 (int) Android SDK version to use#android.sdk = 20 (str) Android NDK version to use#android.ndk = 17c (int) Android NDK API to use. This is the minimum API your app will support, it should usually match android.minapi.#android.ndk_api = 21 (bool) Use --private data storage (True) or --dir public storage (False)#android.private_storage = True (str) Android NDK directory (if empty, it will be automatically downloaded.)#android.ndk_path = (str) Android SDK directory (if empty, it will be automatically downloaded.)#android.sdk_path = (str) ANT directory (if empty, it will be automatically downloaded.)#android.ant_path = (bool) If True, then skip trying to update the Android sdkThis can be useful to avoid excess Internet downloads or save timewhen an update is due and you just want to test/build your packageandroid.skip_update = False(bool) If True, then automatically accept SDK licenseagreements. This is intended for automation only. If set to False,the default, you will be shown the license when first runningbuildozer.android.accept_sdk_license = False(str) Android entry point, default is ok for Kivy-based app#android.entrypoint = org.renpy.android.PythonActivity (list) Pattern to whitelist for the whole projectandroid.whitelist = unittest/* (str) Path to a custom whitelist file#android.whitelist_src = (str) Path to a custom blacklist file#android.blacklist_src = (list) List of Java .jar files to add to the libs so that pyjnius can accesstheir classes. Don't add jars that you do not need, since extra jars can slowdown the build process. Allows wildcards matching, for example:OUYA-ODK/libs/*.jar#android.add_jars = foo.jar,bar.jar,path/to/more/*.jar (list) List of Java files to add to the android project (can be java or adirectory containing the files)#android.add_src = (list) Android AAR archives to add (currently works only with sdl2_gradlebootstrap)#android.add_aars = (list) Gradle dependencies to add (currently works only with sdl2_gradlebootstrap)#android.gradle_dependencies = (list) Java classes to add as activities to the manifest.#android.add_activites = com.example.ExampleActivity (str) python-for-android branch to use, defaults to master#p4a.branch = master (str) OUYA Console category. Should be one of GAME or APPIf you leave this blank, OUYA support will not be enabled#android.ouya.category = GAME (str) Filename of OUYA Console icon. It must be a 732x412 png image.#android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png (str) XML file to include as an intent filters in tag#android.manifest.intent_filters = (str) launchMode to set for the main activity#android.manifest.launch_mode = standard (list) Android additional libraries to copy into libs/armeabi#android.add_libs_armeabi = libs/android/.so (bool) Indicate whether the screen should stay onDon't forget to add the WAKE_LOCK permission if you set this to True#android.wakelock = False (list) Android application meta-data to set (key=value format)#android.meta_data = (list) Android library project to add (will be added in theproject.properties automatically.)#android.library_references = (str) Android logcat filters to use#android.logcat_filters = *:S python:D (bool) Copy library instead of making a libpymodules.so#android.copy_libs = 1 (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86android.arch = armeabi-v7a Python for android (p4a) specific(str) python-for-android git clone directory (if empty, it will be automatically cloned from github)#p4a.source_dir = (str) The directory in which python-for-android should look for your own build recipes (if any)#p4a.local_recipes = (str) Filename to the hook for p4a#p4a.hook = (str) Bootstrap to use for android buildsp4a.bootstrap = sdl2(int) port number to specify an explicit --port= p4a argument (eg for bootstrap flask)#p4a.port = iOS specific(str) Path to a custom kivy-ios folder#ios.kivy_ios_dir = ../kivy-ios Alternately, specify the URL and branch of a git checkout:ios.kivy_ios_url = https://github.com/kivy/kivy-ios Another platform dependency: ios-deployUncomment to use a custom checkout#ios.ios_deploy_dir = ../ios_deploy Or specify URL and branchios.ios_deploy_url = https://github.com/phonegap/ios-deploy (str) Name of the certificate to use for signing the debug versionGet a list of available identities: buildozer ios list_identities#ios.codesign.debug = "iPhone Developer: ()" (str) Name of the certificate to use for signing the release version#ios.codesign.release = %(ios.codesign.debug)s [buildozer] (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))log_level = 2 (int) Display warning if buildozer is run as root (0 = False, 1 = True)warn_on_root = 1 (str) Path to build artifact storage, absolute or relative to spec filebuild_dir = ./.buildozer(str) Path to build output (i.e. .apk, .ipa) storagebin_dir = ./bin-----------------------------------------------------------------------------List as sectionsYou can define all the "list" as [section:key].Each line will be considered as a option to the list.Let's take [app] / source.exclude_patterns.Instead of doing:#[app] This can be translated into:#[app:source.exclude_patterns] -----------------------------------------------------------------------------ProfilesYou can extend section / key with a profileFor example, you want to deploy a demo version of your application withoutHD content. You could first change the title to add "(demo)" in the nameand extend the excluded directories to remove the HD content.#[app@demo] #[app:source.exclude_patterns@demo] Then, invoke the command line with the "demo" profile:#buildozer --profile demo android debug Thanks for any help |
Closing for inactivity. |
Versions
Description
I can't get it to compile.
buildozer.spec
Command:
p4a apk --private /home/vladislav/coding/python/0 --package=org.example.myapp --name "My application" --version 0.1 --bootstrap=sdl2 --requirements=python2,sdl2
Spec file:
p4a
Logs
buildozer
Command:
Logs
Immediately I apologize, I am bad in all this, so I do not quite understand everything.
The text was updated successfully, but these errors were encountered: