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

Looking for help on android #515

Closed
yaronyg opened this issue Oct 15, 2014 · 6 comments
Closed

Looking for help on android #515

yaronyg opened this issue Oct 15, 2014 · 6 comments

Comments

@yaronyg
Copy link

yaronyg commented Oct 15, 2014

I'm building node.js for android (http://www.goland.org/nodejsonandroid/) but now I need to use NPM with node-gyp but I want to cross-compile for Android. Looking around the node-gyp code base the make files seem to want to support this. But I haven't even managed yet to figure out how to force '-f android' during Configure. I actually did this manually on the command line and it caused an 'undefined variable os_include' error down in snappy. Rather than trying to reverse engineer node-gyp's support of Android is there a 'hello world' anywhere that shows how to use node-gyp to compile on Linux a package that is targeted at Android? What parameters to pass in? What environment variables are needed? Etc.

Thanks!

@yaronyg
Copy link
Author

yaronyg commented Oct 16, 2014

Near as I can tell there is literally no way to pass "-f android" in via a call to node-gyp. Only single words can be passed through. Anything else (like "-f android") will be marked as a command line argument by nopt and will therefore be turned into a python environment variable and so won't be used in the eventual call to Configure.

So how is someone supposed to call node-gyp but specify that Android bindings are to be used?

@yaronyg
Copy link
Author

yaronyg commented Oct 31, 2014

Anyone?

@yaronyg
Copy link
Author

yaronyg commented Nov 1, 2014

O.k. so I did finally figure out that the android.py file comes from gyp and not node-gyp which is probably why nobody around here has been very helpful in understanding it. Sigh.

@tk120404
Copy link

@yaronyg Can you please close this issue if this is not an issue any more?

@yaronyg
Copy link
Author

yaronyg commented Mar 14, 2018

I left this work behind a long time ago.

@yaronyg yaronyg closed this as completed Mar 14, 2018
@tk120404
Copy link

👍

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

2 participants