Build Transmission for ARM
This is part of a series describing how I got Transmission compiled and running for Snappy Ubuntu Core.
Snappy in a Raspberry Pi 2
You can get Snappy Ubuntu Core running in a Raspberry Pi 2 by following the instructions here: https://developer.ubuntu.com/en/snappy/start/raspberry-pi-2/
Our plan will be to compile Transmission from source there, and get our ARM binaries.
As mentioned in the first post of this series, we don’t have the usual tools and packages available in Snappy. We could compile the ARM binaries using something different, but let’s see how we can get a “classic Ubuntu” inside Snappy itself through LXD.
What is LXD?
LXD is a container “hypervisor”, built on top of LXC, and it is available in the Snappy store. Then, the idea is to create a container for an Ubuntu 14.04 LTS running in Snappy where we can build Transmission as we did it before.
Assuming you are already logged in in your RPi2 Snappy instance, to get LXD installed:
You can get familiar with LXD checking its documentation.
Compiling Transmission in Snappy on ARM using Ubuntu 14.04 container
First, we will create our container:
There we are, inside a full Ubuntu 14.04 LTS inside Snappy!
At this point we can replicate the steps described in Build Transmission from source (we may need to install wget: apt-get install wget
). All dependencies, and Transmission itself, are ready to be compiled in ARM architecture.
It will take a little longer to compile, but we will get our ARM binaries that will allow us to extend our snap package to support a new architecture.
Coming next
And that’s it, we have compiled Transmission for ARM. Next steps will be:
- Build multi-architecture snap package
- Build Transmission using snapcraft
Comments