Closed stuaxo closed 9 years ago
I tried adding pyliblo like
requirements = kivy,mido,pyliblo
it doesn't seem to build - is that because it's a binding on the C library 'liblo' ? - any idea if I can get it to work ?
$ buildozer android debug deploy run # 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.17.25 (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 /mnt/data/home/stu/.virtualenvs/3d/bin/cython # Search for Java compiler (javac) # -> found at /usr/lib/jvm/java-8-oracle/bin/javac # Search for Java keytool (keytool) # -> found at /usr/lib/jvm/java-8-oracle/jre/bin/keytool # Install platform # Apache ANT found at /home/stu/.buildozer/android/platform/apache-ant-1.9.4 # Android SDK found at /home/stu/.buildozer/android/platform/android-sdk-20 # Android NDK found at /home/stu/.buildozer/android/platform/android-ndk-r10d # Check application requirements # Run './distribute.sh -l' # Cwd /mnt/data/home/stu/projects/mine/apc-thingy/apcmm/apcminimu/.buildozer/android/platform/python-for-android Available modules: android apsw audiostream bidi boost cherrypy c_igraph cprotobuf cymunk django docutils ecdsa enum34 evdev ffmpeg ffmpeg2 ffpyplayer freetype gevent greenlet harfbuzz hostpython igraph jpeg kivent_core kivent_cymunk kivy leveldb libevent libpq libsodium libswift libtorrent libxml2 libxslt libyaml lxml m2crypto midistream msgpack mysql_connector netifaces numpy opencv openssl paramiko pil plyer plyvel png polygon protobuf psutil psycopg2 pyasn1 pycrypto pygame pyjnius pylibpd pyopenssl pyparsing pyqrcode python pyyaml sdl setuptools six sqlalchemy sqlite3 storm swift thrift twisted txws wokkel zeroconf zope # Remove directory and subdirectory /mnt/data/home/stu/projects/mine/apc-thingy/apcmm/apcminimu/.buildozer/applibs # Create directory /mnt/data/home/stu/projects/mine/apc-thingy/apcmm/apcminimu/.buildozer/applibs # Run 'bash -c "source venv/bin/activate && env"' # Cwd /mnt/data/home/stu/projects/mine/apc-thingy/apcmm/apcminimu/.buildozer LC_PAPER=en_GB.UTF-8 XDG_VTNR=7 LC_ADDRESS=en_GB.UTF-8 XDG_SESSION_ID=c2 CLUTTER_IM_MODULE=xim VIRTUALENVWRAPPER_SCRIPT=/usr/local/bin/virtualenvwrapper.sh VIRTUALENVWRAPPER_PROJECT_FILENAME=.project XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/stu LC_MONETARY=en_GB.UTF-8 SESSION=gnome GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1 GEM_HOME=/mnt/data/home/stu/.virtualenvs/3d/gems VTE_VERSION=3803 SHELL=/bin/bash XDG_MENU_PREFIX=gnome- TERM=xterm DERBY_HOME=/usr/lib/jvm/java-8-oracle/db GJS_DEBUG_OUTPUT=stderr LC_NUMERIC=en_GB.UTF-8 WINDOWID=71303179 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1811 GNOME_KEYRING_CONTROL= GJS_DEBUG_TOPICS=JS ERROR;JS LOG GTK_MODULES=overlay-scrollbar USER=stu LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36: LC_TELEPHONE=en_GB.UTF-8 DEBEMAIL=stu.axon@gmail.com XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh SESSION_MANAGER=local/beezlebub:@/tmp/.ICE-unix/2144,unix/beezlebub:/tmp/.ICE-unix/2144 DEFAULTS_PATH=/usr/share/gconf/gnome.default.path VIRTUAL_ENV=/mnt/data/home/stu/projects/mine/apc-thingy/apcmm/apcminimu/.buildozer/venv LIBVIRT_DEFAULT_URI=qemu:///system WORKON_HOME=/home/stu/.virtualenvs DSSI_PATH=/home/stu/.dssi:/usr/lib/dssi:/usr/local/lib/dssi XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/usr/share/upstart/xdg:/etc/xdg PATH=/mnt/data/home/stu/projects/mine/apc-thingy/apcmm/apcminimu/.buildozer/venv/bin:/home/stu/.buildozer/android/platform/apache-ant-1.9.4/bin:/mnt/data/home/stu/.virtualenvs/3d/bin:/home/stu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/android-sdk/platform-tools:/home/stu/bin:/home/stu/go/bin:/usr/games:/usr/local/android-ndk:/usr/local/android-sdk/tools:/mnt/data/home/stu/.virtualenvs/3d/gems/bin:/mnt/data/home/stu/.virtualenvs/3d/node/bin:/usr/lib/python2.7/dist-packages/gtk-2.0:/usr/lib/python2.7/dist-packages/:/usr/lib/python2.7/dist-packages/glib:/usr/lib/python2.7/dist-packages/cairo:/usr/lib/python2.7/dist-packages/panda3d:/usr/lib/python2.7/dist-packages/pygame:/usr/lib/python2.7/dist-packages/gobject:/usr/lib/python2.7/dist-packages/gi:/usr/lib/python2.7/dist-packages/wx-3.0-gtk2:/usr/lib/python2.7/dist-packages/PyQt4 DESKTOP_SESSION=gnome QT_IM_MODULE=ibus VIRTUALENVWRAPPER_HOOK_DIR=/home/stu/.virtualenvs ANDROIDAPI=19 QT_QPA_PLATFORMTHEME=appmenu-qt5 LC_IDENTIFICATION=en_GB.UTF-8 JOB=dbus PWD=/mnt/data/home/stu/projects/mine/apc-thingy/apcmm/apcminimu/.buildozer XDG_SESSION_TYPE=x11 JAVA_HOME=/usr/lib/jvm/java-8-oracle XMODIFIERS=@im=ibus LANG=en_GB.UTF-8 ANDROID_SDK=/usr/local/android-sdk GNOME_KEYRING_PID= GDM_LANG=en_US MANDATORY_PATH=/usr/share/gconf/gnome.mandatory.path LC_MEASUREMENT=en_GB.UTF-8 LV2_PATH=/home/stu/.lv2:/usr/lib/lv2:/usr/local/lib/lv2 NODE_PATH= ANDROIDNDK=/home/stu/.buildozer/android/platform/android-ndk-r10d IM_CONFIG_PHASE=1 PS1=(venv) PAPERSIZE=a4 GDMSESSION=gnome JAVA_TOOL_OPTIONS=-javaagent:/usr/share/java/jayatanaag.jar PACKAGES_PATH=/home/stu/.buildozer/android/packages CADENCE_AUTO_STARTED=true SESSIONTYPE=gnome-session HOME=/home/stu SHLVL=2 XDG_SEAT=seat0 SUIL_MODULE_DIR=/opt/kxstudio/lib/suil-0 LANGUAGE=en_GB:en GNOME_DESKTOP_SESSION_ID=this-is-deprecated ANDROID_CMAKE_DIR=/home/stu/projects/external/android-cmake DRI_PRIME=1 XDG_SESSION_DESKTOP=gnome ANDROIDSDK=/home/stu/.buildozer/android/platform/android-sdk-20 LOGNAME=stu LESS= -R GEM_PATH= DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-UlxI49GqAc QT4_IM_MODULE=xim J2SDKDIR=/usr/lib/jvm/java-8-oracle VST_PATH=/home/stu/.vst:/usr/lib/vst:/usr/local/lib/vst DEBFULLNAME=Stuart Axon LESSOPEN=| /usr/share/source-highlight/src-hilite-lesspipe.sh %s PROMPT_COMMAND=_update_ps1; VIRTUALENVWRAPPER_WORKON_CD=1 ANDROID_NDK=/usr/local/android-ndk ANDROIDNDKVER=r10d INSTANCE= DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/1000 LADSPA_PATH=/home/stu/.ladspa:/usr/lib/ladspa:/usr/local/lib/ladspa XDG_CURRENT_DESKTOP=GNOME GTK_IM_MODULE=ibus J2REDIR=/usr/lib/jvm/java-8-oracle/jre LESSCLOSE=/usr/bin/lesspipe %s %s LC_TIME=en_GB.UTF-8 NODE_HOME=/mnt/data/home/stu/.virtualenvs/3d/node LC_NAME=en_GB.UTF-8 XAUTHORITY=/home/stu/.Xauthority _=/usr/bin/env # Install distribute # Run 'curl http://python-distribute.org/distribute_setup.py | venv/bin/python' # Cwd /mnt/data/home/stu/projects/mine/apc-thingy/apcmm/apcminimu/.buildozer % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 # Install requirement mido in virtualenv # Run 'pip install --download-cache=/home/stu/.buildozer/cache --target=/mnt/data/home/stu/projects/mine/apc-thingy/apcmm/apcminimu/.buildozer/applibs mido' # Cwd /mnt/data/home/stu/projects/mine/apc-thingy/apcmm/apcminimu/.buildozer Downloading/unpacking mido Using download cache from /home/stu/.buildozer/cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2F2.7%2Fm%2Fmido%2Fmido-1.1.14-py2.py3-none-any.whl Installing collected packages: mido Successfully installed mido Cleaning up... # Install distribute # Run 'curl http://python-distribute.org/distribute_setup.py | venv/bin/python' # Cwd /mnt/data/home/stu/projects/mine/apc-thingy/apcmm/apcminimu/.buildozer % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 # Install requirement pyliblo in virtualenv # Run 'pip install --download-cache=/home/stu/.buildozer/cache --target=/mnt/data/home/stu/projects/mine/apc-thingy/apcmm/apcminimu/.buildozer/applibs pyliblo' # Cwd /mnt/data/home/stu/projects/mine/apc-thingy/apcmm/apcminimu/.buildozer Downloading/unpacking pyliblo Storing download in cache at /home/stu/.buildozer/cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fp%2Fpyliblo%2Fpyliblo-0.9.2.tar.gz Running setup.py (path:/tmp/pip-build-Z0rBEE/pyliblo/setup.py) egg_info for package pyliblo Installing collected packages: pyliblo Running setup.py install for pyliblo building 'liblo' extension /bin/false -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/liblo.c -o build/temp.linux-x86_64-2.7/src/liblo.o -fno-strict-aliasing -Werror-implicit-function-declaration -Wfatal-errors error: command '/bin/false' failed with exit status 1 Complete output from command /mnt/data/home/stu/projects/mine/apc-thingy/apcmm/apcminimu/.buildozer/venv/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-Z0rBEE/pyliblo/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-VYnaAb-record/install-record.txt --single-version-externally-managed --compile --install-headers /mnt/data/home/stu/projects/mine/apc-thingy/apcmm/apcminimu/.buildozer/venv/include/site/python2.7 --home=/tmp/tmpAbvaLU: running install running build running build_ext building 'liblo' extension creating build creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/src /bin/false -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/liblo.c -o build/temp.linux-x86_64-2.7/src/liblo.o -fno-strict-aliasing -Werror-implicit-function-declaration -Wfatal-errors error: command '/bin/false' failed with exit status 1 ---------------------------------------- Cleaning up... Command /mnt/data/home/stu/projects/mine/apc-thingy/apcmm/apcminimu/.buildozer/venv/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-Z0rBEE/pyliblo/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-VYnaAb-record/install-record.txt --single-version-externally-managed --compile --install-headers /mnt/data/home/stu/projects/mine/apc-thingy/apcmm/apcminimu/.buildozer/venv/include/site/python2.7 --home=/tmp/tmpAbvaLU failed with error code 1 in /tmp/pip-build-Z0rBEE/pyliblo Storing debug log for failure in /home/stu/.pip/pip.log # Command failed: pip install --download-cache=/home/stu/.buildozer/cache --target=/mnt/data/home/stu/projects/mine/apc-thingy/apcmm/apcminimu/.buildozer/applibs pyliblo # # 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
Yes, this module apparently requires some compilation so you'll need to write a recipe for it in python-for-android.
I tried adding pyliblo like
requirements = kivy,mido,pyliblo
it doesn't seem to build - is that because it's a binding on the C library 'liblo' ? - any idea if I can get it to work ?