Skip to content

Does not build on OSX #387

Closed
Closed

Description

@rmprosser

Running:

./distribute.sh -m openssl

I get (after some time):

Leaving ARM environment
./distribute.sh: line 669: $envrestore: ambiguous redirect
grep: option requires an argument -- f
usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
    [-e pattern] [-f file] [--binary-files=value] [--color=when]
    [--context[=num]] [--directories=action] [--label] [--line-buffered]
    [--null] [pattern] [file ...]
Entering in ARM environment
Compiler found at /Users/markprosser/Library/Android/ndk//toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin//arm-linux-androideabi-gcc
Biglink create /private/tmp/p/python-for-android/build/libs/libpymodules.so library
Biglink arguments:
arm-linux-androideabi-gcc: fatal error: no input files
compilation terminated.

Activity

  1. tito commented on Jun 1, 2015

    @tito
    Member
  2. kived commented on Jun 1, 2015

    @kived
    Contributor

    mktemp works differently on OS X, which I did not know when adding that feature. There was a PR (#344) which fixed usage on OS X, which was previously merged, but I ended up reverting it (#349) because it broke Linux builds. I asked the author of that PR to make it work on both Linux and OS X, but that never happened.

    I don't have access to OS X and can't test it, otherwise I'd fix it myself.

  3. rmprosser commented on Jun 2, 2015

    @rmprosser
    Author

    I tried the patch from that pull request, but I still get:

    Leaving ARM environment
    Entering in ARM environment
    Compiler found at /Users/markprosser/Library/Android/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin//arm-linux-androideabi-gcc
    Biglink create /private/tmp/p/python-for-android/build/libs/libpymodules.so library
    Biglink arguments:
    arm-linux-androideabi-gcc: fatal error: no input files
    compilation terminated.
    
  4. rmprosser commented on Jun 2, 2015

    @rmprosser
    Author

    Just tried on an Ubuntu machine and I get a very similar error

  5. kived commented on Jun 2, 2015

    @kived
    Contributor

    Ubuntu is my primary platform, I can assure you that p4a works there. You must include kivy in the module list when you build your distribution. And that is a different issue than the original issue, which is with the envsave/envrestore functionality.

  6. rmprosser commented on Jun 2, 2015

    @rmprosser
    Author

    @kived I was not including kivy. When I change to running:

    ./distribute.sh -f -m openssl kivy
    

    I'm getting the same error...

  7. kived commented on Jun 2, 2015

    @kived
    Contributor

    The module list needs to be a single argument:

    ./distribute.sh -f -m 'openssl kivy'

  8. rmprosser commented on Jun 2, 2015

    @rmprosser
    Author

    @kived thanks! I think I'm most of the way there. Getting "Error compiling Cython file" several times now, followed by:

    kivy/graphics/vbo.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 'ccache' failed with exit status 1
    

    Could it be my cython is a bad version?

  9. kived commented on Jun 2, 2015

    @kived
    Contributor

    If you are using Cython 0.22, then yes. :) This will be the case if you installed via pip, in which case you can run sudo pip install -I Cython==0.21.2 to fix it.

  10. rmprosser commented on Jun 2, 2015

    @rmprosser
    Author

    Thanks! Got it working.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions