buildozer: #error from Cython compilation

Hey folks, I’m running Ubuntu 12.04, and I’ve followed the directions for installation of Cython. After running into this error,

building 'kivy.graphics.shader' extension
arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/dexter/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -DNDEBUG -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/dexter/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -fPIC -I/home/dexter/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm/usr/include -I/home/dexter/Android/Kivy/venv/kivy_android_app_1/.buildozer/android/platform/python-for-android/build/python-install/include/python2.7 -c kivy/graphics/shader.c -o build/temp.linux-i686-2.7/kivy/graphics/shader.o
kivy/graphics/shader.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
 #error Do not use this file, it is the result of a failed Cython compilation.
  ^
 error: command 'arm-linux-androideabi-gcc' failed with exit status 1
# Command failed: ./distribute.sh -m "kivy" -d "kivycrash2"

I ran the following:

sudo pip uninstall buildozer
sudo pip uninstall cython

I deleted the .buildozer directory, then set about installing again:

sudo pip install --upgrade cython
sudo pip install --upgrade buildozer

But I’m still getting the same errors unfortunately.

When I run cython -V I get back Cython version 0.21

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 25 (4 by maintainers)

Most upvoted comments

for others Linux Mint 17.3 x32, python 3.4.3, apt-get install: python-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev zlib1g-dev libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev with Cython==0.27 pip3 install Kivy (1.10.0) … error … svg.c … pip3 install -I Cython==0.25.2

successfully completed

Same here. I got it to work yesterday on a fresh raspbian/raspberry pi 2 with following steps:

apt-get update && apt-get upgrade
apt-get install python-setuptools python-pygame python-opengl python-gst0.10 python-enchant gstreamer0.10-plugins-good python-dev build-essential libgl1-mesa-dev libgles2-mesa-dev python-pip libgstreamer1.0-dev
pip install cython==0.20
pip install kivy

Meanwhile I have installed some additional packages and now I cannot get it to work any more. I think this suggests that the problem is caused by the build env. I think I have installed libgstreamer1.0 meanwhile. And I can also see ‘use_gstreamer = True’ at the beginning of the build. Strange how that would be related to an error in vertex instructions. Maybe it is due to another lib, I don’t remember exactly, but I also installed some sdl packages.