Does anyone know how to build snap for ARM architecture?

XiaoGuo Liu xiaoguo.liu at canonical.com
Wed Aug 24 06:12:09 UTC 2016


Hi Simon,

Thanks a lot for your reply. On 15.04, I installed docker, and inside
docker, I installed a Ubuntu Server so that I can compile for armhf. A lot
of developers may not have the luxury to have two arm devices. I am
thinking your second option could be more realistic. I do not have a Ubuntu
Core device yet. So, the right command is:

$ snap install --devmode --edge classic

In this case, it enters to the classic ubuntu mode, rightt?

By the way, how to exit the mode? Previously, I saw some instructions like:

$ sudo snappy enable-classic
$ snappy shell classic
$ sudo snappy destroy-classic

I think they were for the 15.04 Ubuntu core.

Thanks & best regards,
XiaoGuo


On Wed, Aug 24, 2016 at 1:44 PM, Simon Fels <simon.fels at canonical.com>
wrote:

> On 24.08.2016 07:34, XiaoGuo Liu wrote:
> > Hi,
> >
> > I just now successfully used launchpad.net <http://launchpad.net> to
> > build snaps for ARM architecture. However, the precondition is that it
> > works on my desktop well. I am thinking whether there is an alternative
> > way to compile snaps for armhf in view of the fact that raspberry is now
> > supporting the architecture. I used to come with a docker solution to it
> > for 15.04. Now docker snap is not there any more. Can anyone tell me how
> > to build for armhf snaps?
>
> I've installed Ubuntu Server for that purpose on one of my pi2 machines
> and doing all builds there. The classic snap from the store (not sure
> how far that is, but installing with snap install --devmode --edge
> classic should work) would be another possible way to build on an arm
> device as it gives you a full apt-get'able system on an all-snap one.
>
> regards,
> Simon
>
>
> --
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>



-- 
XiaoGuo, Liu (刘晓国)
Mobile: +86-13911181302
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20160824/8fbe383a/attachment.html>


More information about the Snapcraft mailing list