Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not build on OSX #387

Closed
rmprosser opened this issue Jun 1, 2015 · 10 comments
Closed

Does not build on OSX #387

rmprosser opened this issue Jun 1, 2015 · 10 comments

Comments

@rmprosser
Copy link

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.
@tito
Copy link
Member

tito commented Jun 1, 2015

@kived ?

@kived
Copy link
Contributor

kived commented Jun 1, 2015

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.

@rmprosser
Copy link
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.

@rmprosser
Copy link
Author

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

@kived
Copy link
Contributor

kived commented Jun 2, 2015

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.

@rmprosser
Copy link
Author

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

./distribute.sh -f -m openssl kivy

I'm getting the same error...

@kived
Copy link
Contributor

kived commented Jun 2, 2015

The module list needs to be a single argument:

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

@rmprosser
Copy link
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?

@kived
Copy link
Contributor

kived commented Jun 2, 2015

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.

@rmprosser
Copy link
Author

Thanks! Got it working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants