-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Cross compiling for ARM on travis? #360
Comments
it appears to be definitely possible, see: travis-ci/travis-ci#3376 just involves some set up work. this we could then use to build for 32bit linux as well! cc @mafintosh |
Any update? I'm using leveldown on ARM servers, and it takes a long time everytime installing leveldown. |
No updates sorry. |
https://github.com/zeromq/zeromq.js/ is doing arm cross compilation with |
According to travis-ci/travis-ci#2790, only cross-compiling to Android is available out of the box. https://github.com/Pi4J/pi4j/blob/master/.travis.yml is an example showing it's possible to cross-compile for Pi with a downloaded " As per Running Travis CI tests on ARM architecture | tomaz.me, it's also possible to run tests with Finally, https://bennuttall.com/piwheels-building-a-faster-python-package-repository-for-raspberry-pi-users/ and https://www.piwheels.hostedpi.com/ say that the piwheels project compile everything from PyPI (though, if the latter is correct, only for py3.4 and py3.5 -- looks strange, maybe the info is outdated). So all we need to do is provide an |
in case it's useful or interesting, i experimented with |
hi @staltz, when you build for mobile devices, do you know what target is being compiled? (by "target", i mean a target triplet like here, or a gnu triple like here.) for example, in |
another confusing thing i discovered is that Node's |
There's a thread discussing similar things for This prebuild/prebuild#174 (comment) sounds especially interesting. |
@ralphtheninja i'm not sure the arm version is enough. i have a feeling that if we want to support arm prebuilds for both a raspberry pi and an android phone, we need to distinguish between arm for linux and arm for android. |
@ahdinosaur I agree. So how can we do this? I guess it's easy to know this when you're building the binary, since you know the exact system by default. Which means it's also easy to encode this into e.g. the file name of the resulting binary. The most immediate problem we have is when resolving the binary with Is there any other way that we can get this information from the system? Since it seems just using node isn't adequate enough. |
For distinguishing arm flavors, It's missing differentiation of android vs linux. Could it be combined with |
Assuming we can do this. And checking
Where This would mean a new major version of |
okay, i did the thing and re-wrote |
Made @ralphtheninja I used "armv" as prefix rather than "arm", for compat with |
|
Would it be possible to trigger prebuilts on travis that cross compile to arm?
See #300
cc @juliangruber
The text was updated successfully, but these errors were encountered: