Skip to content

Compilation Error at ARM Environment #352

Closed

Description

@kiok46

This error shows up when i type " ./distribute.sh -m "kivy" "command.
I am at the ARM environment.
I have tried everything to fix this error, but now I need help.

Note: If you want me to edit something, please let me know.

"ERROR"

creating Makefile
./configure --host=arm-eabi OPT= --prefix=/home/kd/python-for-android/build/python-install --enable-shared --disable-toolbox-glue --disable-framework
make -j5 HOSTPYTHON=/home/kd/python-for-android/build/python/Python-2.7.2/hostpython HOSTPGEN=/home/kd/python-for-android/build/python/Python-2.7.2/hostpgen CROSS_COMPILE_TARGET=yes INSTSONAME=libpython2.7.so
cp: cannot stat ‘HOSTPYTHON=/home/kd/python-for-android/build/python/Python-2.7.2/hostpython’: No such file or directory
First install (failing..)
./Modules/zlibmodule.c:8:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make: *** [Modules/zlibmodule.o] Error 1
make: *** Waiting for unfinished jobs....

second install
/usr/bin/install -c -m 644 ./Include/cStringIO.h /home/kd/python-for-android/build/python-install/include/python2.7
./Modules/zlibmodule.c:8:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make: *** [Modules/zlibmodule.o] Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/install -c -m 644 ./Include/cellobject.h /home/kd/python-for-android/build/python-install/include/python2.7

/usr/bin/install -c -m 644 pyconfig.h /home/kd/python-for-android/build/python-install/include/python2.7/pyconfig.h
Leaving ARM environment
cp: cannot create regular file ‘/home/kd/python-for-android/build/python-install/bin/python.host’: No such file or directory

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Activity

  1. asdri commented on Apr 2, 2015

    @asdri

    Help please I have the same issue..

  2. asdri commented on Apr 2, 2015

    @asdri

    This is what I get when compiling with buildozer -v android debug or buildozer android debug :

    ./Modules/zlibmodule.c:8:18: fatal error: zlib.h: No such file or directory
    compilation terminated.
    make: *** [Modules/zlibmodule.o] Error 1
    make: *** Waiting for unfinished jobs....
    Leaving ARM environment
    cp: cannot create regular file ‘/home/asdri/testapp/.buildozer/android/platform/python-for-android/build/python-install/bin/python.host’: No such file or directory
    # Command failed: ./distribute.sh -m "kivy" -d "myapp"
    # 
    # 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.
    
  3. asdri commented on Apr 2, 2015

    @asdri

    I just got a simple "Hello World" type snippet which's the following:

    import kivy
    kivy.require('1.9.0')
    
    from kivy.app import App
    from kivy.uix.button import Button
    
    print dir(Button)
    
    class Index(App):
        def build(self):
            return Button(text='Click me')
    
    Index().run()
    
  4. olymk2 commented on Apr 2, 2015

    @olymk2
    Contributor

    usually this is down to the version of cython your using you need a different version of cython for 1.8 and 1.9 try changing distribute to kivy==master to use 1.9 i cant remember the exact version you need for 1.8 but google around and you should find the answer.

    see if that helps

  5. asdri commented on Apr 2, 2015

    @asdri

    @olymk2 Tried that now. I also tried uninstalling + purging everything and following the official installation step by step http://kivy.org/docs/installation/installation.html without any change.

    Where it seems to hiccup is in this part of the compilation process:

    ./Modules/zlibmodule.c:8:18: fatal error: zlib.h: No such file or directory
    compilation terminated.
    make: *** [Modules/zlibmodule.o] Error 1
    make: *** Waiting for unfinished jobs....
    

    It is weird because I can import and use Zlib from within Python without any issue..

    The hostpython as a result is not being untarred with a tar: write error: /home/asdri/.buildozer/android/packages/hostpython and that's why there is no python-install directory found.

  6. olymk2 commented on Apr 2, 2015

    @olymk2
    Contributor

    did you try kivy==master ? for me it will not compile kivy 1.8 probably because my cython is to new what is your version ?

    if it is actually a missing file thats not caused by the build then i dont know perhaps someone else will

  7. asdri commented on Apr 2, 2015

    @asdri

    @olymk2 Do you mean pip install kivy==master? I tried that and it tells me there's no master version available:

    Collecting kivy==master
    Could not find a version that satisfies the requirement kivy==master (from versions: 1.0.1a0, 1.0.2a0, 1.0.3a0, 1.0.4b0, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0, 1.1.1, 1.2.0, 1.3.0, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.9.0)
    No distributions matching the version for kivy==master
    
  8. olymk2 commented on Apr 2, 2015

    @olymk2
    Contributor

    nope ./distribute.sh -m "kivy" or in buildozer.spec change kivy to kivy==master and see if it works. if you use kivy you get 1.8 if you use kivy==master you get 1.9 which is just about to be released by looks of it :)

  9. Kozubi commented on Jul 8, 2015

    @Kozubi

    I encountered same problem and for me this helped:

    # (int) Android API to use
    android.api = 19
    
  10. hvorovk commented on Dec 3, 2016

    @hvorovk

    Nothing here is not helping me. How do I fix it? I even hello world I can not build.

    /Modules/zlibmodule.c:8:18: fatal error: zlib.h: No such file or directory
    compilation terminated.
    
  11. hvorovk commented on Dec 11, 2016

    @hvorovk

    this does not work!
    Useless tool!

  12. inclement commented on Dec 11, 2016

    @inclement
    Member

    @hvorovk Your error seems to indicate you don't have zlib. Make sure you install it, including a -dev package if available, as you need the zlib.h file. You may also need the 32 bit version.

  13. inclement commented on Sep 29, 2017

    @inclement
    Member

    Closing as this issue relates to the old toolchain which is no longer supported. Please open a new issue if you experience this problem with the current master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions