arm architecture support example

Alexander Sack asac at canonical.com
Thu Jan 21 11:19:13 UTC 2016


Hi,

cross compilation of nodejs with snapcraft is tricky. If you manually
build/assemble your stuff you can try the instructions on cross
compiling you can find on the web, but for snapcraft the best way is
to go for native building on your pi2...

For snappy 15.04 you can get a developer ubuntu experience by using
lxd. For snappy 16.04 you can "sudo snappy enable-classic" mode and
then switch into a convenient ubuntu shell where you can apt-get
install etc. with "sudo snappy shell classic"

My etherpad-lite snap builds nicely that way. See
https://github.com/asac/etherpad-lite/tree/snap-support/bin/snappy...

 - Alexander

On Thu, Jan 21, 2016 at 12:07 PM, Luca Capra <luca.capra at gmail.com> wrote:
> Hello,
>
> I've built a service snap out of a nodejs module and would like to cross
> compile it to armv7 for RPi2
>
> At this page [1] there is a sample for go but it's unclear to me what's the
> point of it (compile snappy for arm?)
>
> Do you have a suggestion/example on how to cross compile snap for nodejs and
> handle compiled dependencies (like with node-gyp)?
>
> Thanks, Luca
>
> [1] https://developer.ubuntu.com/en/snappy/guides/cross-building/
>
> --
> snappy-app-devel mailing list
> snappy-app-devel at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/snappy-app-devel
>



More information about the snappy-app-devel mailing list