KivyComplete VM 0.2

127 views
Skip to first unread message

ZenCODE

unread,
Dec 8, 2017, 7:50:46 AM12/8/17
to Kivy users support
Hi

This serves to announce the availability of the KivyComplete VM 0.2. This is now hosted on a faster, more secure server (thanks to Stas and BrainTrainerPlus).

About: https://github.com/Zen-CODE/kivybits/tree/master/KivyCompleteVM

Download: http://kivy.braintrainerplus.com/Kivy_Complete_VM_0.2.ova

MD5 Checksum: 18a3d0fccf9a66173ae79ed72db26b7a

Peace out
Zen-CODE

Cláudio

unread,
Dec 11, 2017, 1:54:38 AM12/11/17
to Kivy users support
Hi.

The line 4 and 5 have a concatenation problem in the script "download_crystax.py"

1. print("Extracting files..")
2. tar = tarfile.open(full_name)
3. tar.extractall(dest)
4. print("Done. Files extracted to {0}".join(dest, file_name))
5. print("Please remember to set your android.sdk value to {0}".format(
    join(dest, file_name)))

Is very simple to solve, but you only discovery this issue after wait the download file completed :D

Thank very much, this version to work very better !!

ZenCODE

unread,
Dec 11, 2017, 4:14:06 AM12/11/17
to Kivy users support
Thanks. Will fix :-)

Cláudio

unread,
Dec 11, 2017, 1:50:51 PM12/11/17
to kivy-...@googlegroups.com
ZZen, I had more some problems.

1) Was necessary to execute the instruction with sudo 
2) In the spec file the name of param "android.ndk_path" is "crystax-ndk" but the folder name that script python created have this name: "crystax-ndk-10.3.2"

------

For me, with python2 all work good, but with python3 a cant to make a bundle when I add the requirement ffmpeg or ffpyplayer.

When I try to build python3crystax with ffmpeg/ffpyplayer crash. Have some problem knowed? I only add ffmpeg / ffpyplayer in the buildozer.spec file in the "/home/kivy/Repos/Python3/kivy/examples/demo/touchtracer" folder and dont build.





kivy@kivy-complete:~/Repos/Python3/kivy/examples/demo/touchtracer$ buildozer android debug deploy
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Run 'dpkg --version'
# Cwd None
Debian 'dpkg' package management program version 1.18.4 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
# Search for Git (git)
#  -> found at /usr/bin/git
# Search for Cython (cython)
#  -> found at /usr/local/bin/cython
# Search for Java compiler (javac)
#  -> found at /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
#  -> found at /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytool
# Install platform
# Run 'pip install -q --user "appdirs" "colorama>=0.3.3" "sh>=1.10,<1.12.5" "jinja2" "six"'
# Cwd None
# Apache ANT found at /home/kivy/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/kivy/.buildozer/android/platform/android-sdk-23
# Android NDK found at /home/kivy/.buildozer/crystax-ndk-10.3.2
# Check application requirements
# Check garden requirements
# Compile platform
# Run '/usr/bin/python -m pythonforandroid.toolchain create --dist_name=touchtracer --bootstrap=sdl2 --requirements=python3crystax,kivy,ffmpeg --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build'
# Cwd /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI
[INFO]:    Available Android APIs are (19)
[INFO]:    Requested API target 19 is available, continuing.
[INFO]:    Found NDK dir in $ANDROIDNDK
[INFO]:    Got NDK version from $ANDROIDNDKVER
[WARNING]: NDK version was set as r8c, but checking the NDK dir claims it is 10.3.2.
[WARNING]: The build will try to continue, but it may fail and you should check that your setting is correct.
[WARNING]: If the NDK dir result is correct, you don't need to manually set the NDK ver.
[INFO]:    Using Crystax NDK r8c
[INFO]:    Found virtualenv at /usr/local/bin/virtualenv
[INFO]:    ccache is missing, the build will not be optimized in the future.
[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.
[INFO]:    Found a single valid recipe set: ['hostpython3crystax', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', u'python3crystax', 'sdl2', 'six', u'ffmpeg', 'pyjnius', u'kivy']
[INFO]:    The selected bootstrap is sdl2_gradle
[INFO]:    # Creating dist with sdl2_gradle bootstrap
[INFO]:    Dist will have name touchtracer and recipes (python3crystax, kivy, ffmpeg)
[INFO]:    Dist will also contain modules () installed from pip
[INFO]:    -> running cp -r /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/pl...(and 211 more)
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax
[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Recipe build order is ['hostpython3crystax', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', u'python3crystax', 'sdl2', 'six', u'ffmpeg', 'pyjnius', u'kivy']
[INFO]:    # Downloading recipes 
[INFO]:    Downloading hostpython3crystax
[INFO]:    Skipping hostpython3crystax download as no URL is set
[INFO]:    Downloading sdl2_image
[INFO]:    -> running mkdir -p /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android...(and 35 more)
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/packages/sdl2_image
[INFO]:    sdl2_image download already cached, skipping
[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Downloading sdl2_mixer
[INFO]:    -> running mkdir -p /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android...(and 35 more)
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/packages/sdl2_mixer
[INFO]:    sdl2_mixer download already cached, skipping
[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Downloading sdl2_ttf
[INFO]:    -> running mkdir -p /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android...(and 33 more)
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/packages/sdl2_ttf
[INFO]:    sdl2_ttf download already cached, skipping
[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Downloading python3crystax
[INFO]:    -> running mkdir -p /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android...(and 39 more)
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/packages/python3crystax
[INFO]:    -> running basename 
[INFO]:    -> running rm -f .mark-
[INFO]:    -> running touch .mark-
[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Downloading sdl2
[INFO]:    -> running mkdir -p /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android...(and 29 more)
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/packages/sdl2
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.4.tar.gz
                                                         [INFO]:    sdl2 download already cached, skipping                          
[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Downloading six
[INFO]:    -> running mkdir -p /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android...(and 28 more)
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/packages/six
[INFO]:    six download already cached, skipping
[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Downloading ffmpeg
[INFO]:    -> running mkdir -p /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android...(and 31 more)
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/packages/ffmpeg
[INFO]:    -> running basename http://ffmpeg.org/releases/ffmpeg-3.3.3.tar.bz2
[INFO]:    ffmpeg download already cached, skipping
[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Downloading pyjnius
[INFO]:    -> running mkdir -p /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android...(and 32 more)
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/packages/pyjnius
[INFO]:    pyjnius download already cached, skipping
[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Downloading kivy
[INFO]:    -> running mkdir -p /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android...(and 29 more)
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/packages/kivy
[INFO]:    -> running basename https://github.com/kivy/kivy/archive/1.10.0.zip
           working: 1.10.0.zip                                                                                        [INFO]:    kivy download already cached, skipping
[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    # Building all recipes for arch armeabi-v7a
[INFO]:    # Unpacking recipes
[INFO]:    Unpacking hostpython3crystax for armeabi-v7a
[INFO]:    Skipping hostpython3crystax unpack as no URL is set
[INFO]:    Unpacking sdl2_image for armeabi-v7a
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax/jni
[INFO]:    -> running tar tf /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/p...(and 57 more)
           working: SDL2_image-2.0.1/acinclude/lt~obsolete.m4       [INFO]:    -> running mv SDL2_image-2.0.1 /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildo...(and 91 more)
[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Unpacking sdl2_mixer for armeabi-v7a
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax/jni
[INFO]:    -> running tar tf /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/p...(and 57 more)
           working: SDL2_mixer-2.0.1/acinclude/smpeg2.m4                                                                 [INFO]:    -> running mv SDL2_mixer-2.0.1 /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildo...(and 91 more)
[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Unpacking sdl2_ttf for armeabi-v7a
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax/jni
[INFO]:    -> running tar tf /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/p...(and 54 more)
           working: SDL2_ttf-2.0.14/acinclude/ltsugar.[INFO]:    -> running mv SDL2_ttf-2.0.14 /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildoz...(and 88 more)
[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Unpacking python3crystax for armeabi-v7a
[INFO]:    -> running basename 
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/build/other_builds/python3crystax-version3.5/armeabi-v7a
[INFO]:    -> running cp -Rv /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/p...(and 206 more)
[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Unpacking sdl2 for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.4.tar.gz
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax/jni
                                                                                                                      [INFO]:    -> running tar tf /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/p...(and 45 more)
           working: SDL2-2.0.4/acinclude/ltoptions.m4         [INFO]:    -> running mv SDL2-2.0.4 /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/an...(and 78 more)
[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Unpacking six for armeabi-v7a
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/build/other_builds/six-python3crystax/armeabi-v7a
[INFO]:    -> running tar tf /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/p...(and 43 more)
           working: six-1.9.0/setup.cfg                                                                               [INFO]:    -> running mv six-1.9.0 /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/and...(and 73 more)
[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Unpacking ffmpeg for armeabi-v7a
[INFO]:    -> running basename http://ffmpeg.org/releases/ffmpeg-3.3.3.tar.bz2
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/build/other_builds/ffmpeg/armeabi-v7a
[INFO]:    -> running tar tf /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/p...(and 50 more)
           working: ffmpeg-3.3.3/cmdutils_opencl.c                                                 [INFO]:    -> running mv ffmpeg-3.3.3 /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/...(and 67 more)
[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Unpacking pyjnius for armeabi-v7a
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/build/other_builds/pyjnius-python3crystax-sdl2/armeabi-v7a
[INFO]:    -> running mv pyjnius-master /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildoze...(and 91 more)
[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Unpacking kivy for armeabi-v7a
[INFO]:    -> running basename https://github.com/kivy/kivy/archive/1.10.0.zip
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/build/other_builds/kivy-python3crystax-sdl2/armeabi-v7a
           working: 1.10.[INFO]:    -> running mv kivy-1.10.0 /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/a...(and 82 more)
[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    # Prebuilding recipes
[INFO]:    Prebuilding hostpython3crystax for armeabi-v7a
[INFO]:    hostpython3crystax has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding sdl2_image for armeabi-v7a
[INFO]:    sdl2_image has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2_image[armeabi-v7a]
[INFO]:    Applying patch toggle_jpg_png_webp.patch
[INFO]:    -> running patch -t -d /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/andr...(and 262 more)
[INFO]:    Applying patch extra_cflags.patch
[INFO]:    -> running patch -t -d /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/andr...(and 255 more)
[INFO]:    Applying patch fix_with_ndk_15_plus.patch
[INFO]:    -> running patch -t -d /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/andr...(and 263 more)
           working: patching file external/jpeg-9/Android.mk                           [INFO]:    -> running touch /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/pl...(and 86 more)
[INFO]:    Prebuilding sdl2_mixer for armeabi-v7a
[INFO]:    sdl2_mixer has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2_mixer[armeabi-v7a]
[INFO]:    Applying patch toggle_modplug_mikmod_smpeg_ogg.patch
[INFO]:    -> running patch -t -d /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/andr...(and 274 more)
[INFO]:    -> running touch /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/pl...(and 86 more)
[INFO]:    Prebuilding sdl2_ttf for armeabi-v7a
[INFO]:    sdl2_ttf has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding python3crystax for armeabi-v7a
[INFO]:    python3crystax has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding sdl2 for armeabi-v7a
[INFO]:    sdl2 has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2[armeabi-v7a]
[INFO]:    Applying patch add_nativeSetEnv.patch
[INFO]:    -> running patch -t -d /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/andr...(and 246 more)
[INFO]:    -> running touch /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/pl...(and 79 more)
[INFO]:    Prebuilding six for armeabi-v7a
[INFO]:    six has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding ffmpeg for armeabi-v7a
[INFO]:    Applying patches for ffmpeg[armeabi-v7a]
[INFO]:    Applying patch patches/fix-libshine-configure.patch
[INFO]:    -> running patch -t -d /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/andr...(and 249 more)
            [INFO]:    -> running touch /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/pl...(and 66 more)
[INFO]:    Applying patches for ffmpeg[armeabi-v7a]
[INFO]:    ffmpeg already patched, skipping
[INFO]:    Prebuilding pyjnius for armeabi-v7a
[INFO]:    pyjnius has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for pyjnius[armeabi-v7a]
[INFO]:    Applying patch sdl2_jnienv_getter.patch
[INFO]:    -> running patch -t -d /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/andr...(and 260 more)
[INFO]:    -> running touch /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/pl...(and 88 more)
[INFO]:    Prebuilding kivy for armeabi-v7a
[INFO]:    kivy has no prebuild_armeabi_v7a, skipping
[INFO]:    # Building recipes
[INFO]:    Building hostpython3crystax for armeabi-v7a
[INFO]:    Building sdl2_image for armeabi-v7a
[INFO]:    Building sdl2_mixer for armeabi-v7a
[INFO]:    Building sdl2_ttf for armeabi-v7a
[INFO]:    Building python3crystax for armeabi-v7a
[INFO]:    Building sdl2 for armeabi-v7a
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax/jni
[INFO]:    -> running ndk-build V=1
           working: /home/k[INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Building six for armeabi-v7a
[INFO]:    six apparently isn't already in site-packages
[INFO]:    Installing six into site-packages
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/build/other_builds/six-python3crystax/armeabi-v7a/six
[INFO]:    -> running python3.5 setup.py install -O2 --root=/home/kivy/Repos/Python3/kivy/examples/demo/t...(and 94 more)
           working: writing manifest file 'six.egg-info/SOURCES.txt'                [INFO]:    <- directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master
[INFO]:    Building ffmpeg for armeabi-v7a
[INFO]:    -> directory context /home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build/build/other_builds/ffmpeg/armeabi-v7a/ffmpeg
[INFO]:    -> running configure --disable-everything --enable-parser=aac,ac3,h261,h264,mpegaudio,mpeg4vid...(and 729 more)
           working: License: GPL version 2 or later                                                                     [INFO]:    -> running make -j4
xception in thread background thread for pid 17616:t 'libavformat/network.o' failed                                                 
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/kivy/.local/lib/python2.7/site-packages/sh.py", line 2170, in background_thread
    handle_exit_code(exit_code)
  File "/home/kivy/.local/lib/python2.7/site-packages/sh.py", line 1929, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/home/kivy/.local/lib/python2.7/site-packages/sh.py", line 672, in handle_command_exit_code
    raise exc
ErrorReturnCode_2: 

  RAN: /usr/bin/make -j4

  STDOUT:
CC libavdevice/alldevices.o
CC libavdevice/avdevice.o
CC libavdevice/utils.o
CC libavformat/aacdec.o
CC libavformat/allformats.o
CC libavformat/apetag.o
CC libavformat/avc.o
CC libavformat/avio.o
CC libavformat/aviobuf.o
CC libavformat/cutils.o
CC libavformat/dump.o
CC libavformat/file.o
libavformat/dump.c: In function 'dump_stream_format':
libavformat/dump.c:462:5: warning: 'codec' is deprecated [-Wdeprecated-declarations]
     avctx->properties = st->codec->properties;
     ^
In file included from libavformat/dump.c:37:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
libavformat/dump.c:463:5: warning: 'codec' is deprecated [-Wdeprecated-declarations]
     avctx->codec      = st->codec->codec;
     ^
In file included from libavformat/dump.c:37:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
libavformat/dump.c:464:5: warning: 'codec' is deprecated [-Wdeprecated-declarations]
     avctx->qmin       = st->codec->qmin;
     ^
In file included from libavformat/dump.c:37:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
libavformat/dump.c:465:5: warning: 'codec' is deprecated [-Wdeprecated-declarations]
     avctx->qmax       = st->codec->qmax;
     ^
In file included from libavformat/dump.c:37:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
libavformat/dump.c:466:5: warning: 'codec' is deprecated [-Wdeprecated-declarations]
     avctx->coded_width  = st->codec->coded_width;
     ^
In file included from libavformat/dump.c:37:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
libavformat/dump.c:467:5: warning: 'codec' is deprecated [-Wdeprecated-declarations]
     avctx->coded_height = st->codec->coded_height;
     ^
In file included from libavformat/dump.c:37:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
libavformat/dump.c:502:9: warning: 'codec' is deprecated [-Wdeprecated-declarations]
         int tbc = st->codec->time_base.den && st->codec->time_base.num;
         ^
In file included from libavformat/dump.c:37:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
libavformat/dump.c:502:9: warning: 'codec' is deprecated [-Wdeprecated-declarations]
         int tbc = st->codec->time_base.den && st->codec->time_base.num;
         ^
In file included from libavformat/dump.c:37:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
libavformat/dump.c:514:13: warning: 'codec' is deprecated [-Wdeprecated-declarations]
             print_fps(1 / av_q2d(st->codec->time_base), "tbc");
             ^
In file included from libavformat/dump.c:37:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
CC libavformat/format.o
CC libavformat/golomb_tab.o
CC libavformat/h264dec.o
CC libavformat/hevc.o
CC libavformat/http.o
CC libavformat/httpauth.o
CC libavformat/id3v1.o
CC libavformat/id3v2.o
CC libavformat/img2.o
CC libavformat/isom.o
CC libavformat/log2_tab.o
CC libavformat/m4vdec.o
CC libavformat/metadata.o
CC libavformat/mov.o
CC libavformat/mov_chan.o
CC libavformat/movenc.o
CC libavformat/movenccenc.o
CC libavformat/movenchint.o
CC libavformat/mpegvideodec.o
CC libavformat/mux.o
CC libavformat/network.o
In file included from libavformat/network.h:29:0,
                 from libavformat/network.c:22:
libavformat/os_support.h:67:32: error: expected declaration specifiers or '...' before '(' token
 #  define lseek(f,p,w) lseek64((f), (p), (w))
                                ^
libavformat/os_support.h:67:37: error: expected declaration specifiers or '...' before '(' token
 #  define lseek(f,p,w) lseek64((f), (p), (w))
                                     ^
libavformat/os_support.h:67:42: error: expected declaration specifiers or '...' before '(' token
 #  define lseek(f,p,w) lseek64((f), (p), (w))
                                          ^
common.mak:60: recipe for target 'libavformat/network.o' failed
make: *** [libavformat/network.o] Error 1
make: *** Waiting for unfinished jobs....


  STDERR:


Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 978, in <module>
    main()
  File "/home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 975, in main
    ToolchainCL()
  File "/home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 512, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 149, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 193, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx)
  File "pythonforandroid/build.py", line 573, in build_recipes
  File "/home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/python-for-android-master/pythonforandroid/recipes/ffmpeg/__init__.py", line 128, in build_arch
    shprint(sh.make, '-j4', _env=env)
  File "pythonforandroid/logger.py", line 175, in shprint
  File "/home/kivy/.local/lib/python2.7/site-packages/sh.py", line 720, in next
    self.wait()
  File "/home/kivy/.local/lib/python2.7/site-packages/sh.py", line 651, in wait
    self.handle_command_exit_code(exit_code)
  File "/home/kivy/.local/lib/python2.7/site-packages/sh.py", line 672, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_2: 

  RAN: /usr/bin/make -j4

  STDOUT:
CC libavdevice/alldevices.o
CC libavdevice/avdevice.o
CC libavdevice/utils.o
CC libavformat/aacdec.o
CC libavformat/allformats.o
CC libavformat/apetag.o
CC libavformat/avc.o
CC libavformat/avio.o
CC libavformat/aviobuf.o
CC libavformat/cutils.o
CC libavformat/dump.o
CC libavformat/file.o
libavformat/dump.c: In function 'dump_stream_format':
libavformat/dump.c:462:5: warning: 'codec' is deprecated [-Wdeprecated-declarations]
     avctx->properties = st->codec->properties;
     ^
In file included from libavformat/dump.c:37:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
libavformat/dump.c:463:5: warning: 'codec' is deprecated [-Wdeprecated-declarations]
     avctx->codec      = st->codec->codec;
     ^
In file included from libavformat/dump.c:37:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
libavformat/dump.c:464:5: warning: 'codec' is deprecated [-Wdeprecated-declarations]
     avctx->qmin       = st->codec->qmin;
     ^
In file included from libavformat/dump.c:37:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
libavformat/dump.c:465:5: warning: 'codec' is deprecated [-Wdeprecated-declarations]
     avctx->qmax       = st->codec->qmax;
     ^
In file included from libavformat/dump.c:37:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
libavformat/dump.c:466:5: warning: 'codec' is deprecated [-Wdeprecated-declarations]
     avctx->coded_width  = st->codec->coded_width;
     ^
In file included from libavformat/dump.c:37:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
libavformat/dump.c:467:5: warning: 'codec' is deprecated [-Wdeprecated-declarations]
     avctx->coded_height = st->codec->coded_height;
     ^
In file included from libavformat/dump.c:37:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
libavformat/dump.c:502:9: warning: 'codec' is deprecated [-Wdeprecated-declarations]
         int tbc = st->codec->time_base.den && st->codec->time_base.num;
         ^
In file included from libavformat/dump.c:37:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
libavformat/dump.c:502:9: warning: 'codec' is deprecated [-Wdeprecated-declarations]
         int tbc = st->codec->time_base.den && st->codec->time_base.num;
         ^
In file included from libavformat/dump.c:37:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
libavformat/dump.c:514:13: warning: 'codec' is deprecated [-Wdeprecated-declarations]
             print_fps(1 / av_q2d(st->codec->time_base), "tbc");
             ^
In file included from libavformat/dump.c:37:0:
libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^
CC libavformat/format.o
CC libavformat/golomb_tab.o
CC libavformat/h264dec.o
CC libavformat/hevc.o
CC libavformat/http.o
CC libavformat/httpauth.o
CC libavformat/id3v1.o
CC libavformat/id3v2.o
CC libavformat/img2.o
CC libavformat/isom.o
CC libavformat/log2_tab.o
CC libavformat/m4vdec.o
CC libavformat/metadata.o
CC libavformat/mov.o
CC libavformat/mov_chan.o
CC libavformat/movenc.o
CC libavformat/movenccenc.o
CC libavformat/movenchint.o
CC libavformat/mpegvideodec.o
CC libavformat/mux.o
CC libavformat/network.o
In file included from libavformat/network.h:29:0,
                 from libavformat/network.c:22:
libavformat/os_support.h:67:32: error: expected declaration specifiers or '...' before '(' token
 #  define lseek(f,p,w) lseek64((f), (p), (w))
                                ^
libavformat/os_support.h:67:37: error: expected declaration specifiers or '...' before '(' token
 #  define lseek(f,p,w) lseek64((f), (p), (w))
                                     ^
libavformat/os_support.h:67:42: error: expected declaration specifiers or '...' before '(' token
 #  define lseek(f,p,w) lseek64((f), (p), (w))
                                          ^
common.mak:60: recipe for target 'libavformat/network.o' failed
make: *** [libavformat/network.o] Error 1
make: *** Waiting for unfinished jobs....


  STDERR:

# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=touchtracer --bootstrap=sdl2 --requirements=python3crystax,kivy,ffmpeg --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/kivy/Repos/Python3/kivy/examples/demo/touchtracer/.buildozer/android/platform/build
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2
kivy@kivy-complete:~/Repos/Python3/kivy/examples/demo/touchtracer$ 



You know what is the problem?

Thanks!!










Em segunda-feira, 11 de dezembro de 2017 07:14:06 UTC-2, ZenCODE escreveu:
Thanks. Will fix :-)

ZenCODE

unread,
Dec 13, 2017, 2:45:23 PM12/13/17
to Kivy users support
It looks like a cython issue compiling libavformat. Try using different Cython versions? Or you say it works with Python2? Then it's more likely a python 3 incompatibility in libavformat. Unfortunately I cannot really help you here...

As for the directories,strange, in testing it did unpack to 'crystax-ndk'. Will double check that....

Thansk

ZenCODE

unread,
Dec 14, 2017, 4:20:12 AM12/14/17
to Kivy users support
@Cláudio

1. The 'download_crystax.py' does not require 'sudo', but does save the initial download to your current folder, so perhaps you were in a folder that your user did not have write access to? I have fixed this for the next version, which will download into the 'Downloads' folder.

2. The output of the above script and the readme does indicate the 'android.sdk' should be  to '/home/kivy/.buildozer/crystax-ndk-10.3.2'? Where does it say otherwise?

Thanks


On Monday, December 11, 2017 at 8:50:51 PM UTC+2, Cláudio wrote:
Reply all
Reply to author
Forward
0 new messages